UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

21 lines (20 loc) 1.08 kB
import { NxJsonConfiguration } from '../../config/nx-json'; import { ProjectConfiguration } from '../../config/workspace-json-project-json'; import { PackageJson } from '../../utils/package-json'; import { CreateNodesV2 } from '../../project-graph/plugins'; export declare const createNodesV2: CreateNodesV2; export declare function buildPackageJsonWorkspacesMatcher(workspaceRoot: string, readJson: (string: any) => any): (p: string) => boolean; export declare function createNodeFromPackageJson(pkgJsonPath: string, workspaceRoot: string): { projects: { [x: string]: ProjectConfiguration & { name: string; }; }; }; export declare function buildProjectConfigurationFromPackageJson(packageJson: PackageJson, workspaceRoot: string, packageJsonPath: string, nxJson: NxJsonConfiguration): ProjectConfiguration & { name: string; }; /** * Get the package.json globs from package manager workspaces */ export declare function getGlobPatternsFromPackageManagerWorkspaces(root: string, readJson?: <T extends Object>(path: string) => T): string[];