UNPKG

@nx/devkit

Version:

The Nx Devkit is used to customize Nx for different technologies and use cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more. Learn more about [extending Nx by

25 lines (24 loc) 576 B
import { Tree } from 'nx/src/devkit-exports'; /** * Returns workspace defaults. It includes defaults folders for apps and libs, * and the default scope. * * Example: * * ```typescript * { appsDir: 'apps', libsDir: 'libs' } * ``` * @param tree - file system tree */ export declare function getWorkspaceLayout(tree: Tree): { appsDir: string; libsDir: string; standaloneAsDefault: boolean; }; /** * Experimental */ export declare function extractLayoutDirectory(directory?: string): { layoutDirectory: string | null; projectDirectory?: string; };