nx 18.2.4 → 18.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/init-local.js +1 -1
- package/bin/post-install.js +7 -5
- package/package.json +12 -12
- package/src/adapter/angular-json.d.ts +2 -1
- package/src/adapter/angular-json.js +1 -0
- package/src/adapter/ngcli-adapter.js +3 -3
- package/src/command-line/generate/generator-utils.js +2 -2
- package/src/command-line/init/implementation/react/index.js +1 -1
- package/src/command-line/run/executor-utils.js +2 -2
- package/src/config/nx-json.d.ts +2 -1
- package/src/config/schema-utils.js +2 -2
- package/src/config/workspace-json-project-json.d.ts +16 -4
- package/src/daemon/server/plugins.d.ts +3 -0
- package/src/daemon/server/plugins.js +22 -0
- package/src/daemon/server/project-graph-incremental-recomputation.js +10 -9
- package/src/daemon/server/shutdown-utils.js +2 -0
- package/src/devkit-exports.d.ts +3 -2
- package/src/executors/run-commands/run-commands.impl.js +1 -1
- package/src/executors/utils/convert-nx-executor.js +4 -1
- package/src/generators/utils/project-configuration.js +2 -2
- package/src/migrations/update-15-1-0/set-project-names.js +4 -2
- package/src/native/assert-supported-platform.js +1 -1
- package/src/plugins/js/index.d.ts +1 -1
- package/src/plugins/js/lock-file/lock-file.d.ts +1 -1
- package/src/plugins/js/lock-file/npm-parser.d.ts +1 -1
- package/src/plugins/js/lock-file/pnpm-parser.d.ts +1 -1
- package/src/plugins/js/lock-file/yarn-parser.d.ts +1 -1
- package/src/plugins/js/project-graph/build-dependencies/build-dependencies.d.ts +1 -1
- package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts +1 -1
- package/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.d.ts +1 -1
- package/src/plugins/package-json-workspaces/create-nodes.d.ts +2 -2
- package/src/plugins/package-json-workspaces/create-nodes.js +24 -31
- package/src/plugins/package-json-workspaces/index.d.ts +1 -0
- package/src/plugins/package-json-workspaces/index.js +2 -0
- package/src/plugins/project-json/build-nodes/package-json-next-to-project-json.d.ts +2 -1
- package/src/plugins/project-json/build-nodes/package-json-next-to-project-json.js +1 -0
- package/src/plugins/project-json/build-nodes/project-json.d.ts +2 -1
- package/src/plugins/project-json/build-nodes/project-json.js +1 -0
- package/src/plugins/target-defaults/symbols.d.ts +17 -0
- package/src/plugins/target-defaults/symbols.js +20 -0
- package/src/plugins/target-defaults/target-defaults-plugin.d.ts +2 -18
- package/src/plugins/target-defaults/target-defaults-plugin.js +5 -20
- package/src/project-graph/affected/locators/project-glob-changes.js +3 -3
- package/src/project-graph/build-project-graph.d.ts +2 -1
- package/src/project-graph/build-project-graph.js +11 -13
- package/src/project-graph/error-types.d.ts +34 -0
- package/src/project-graph/error-types.js +65 -0
- package/src/project-graph/file-utils.js +3 -3
- package/src/project-graph/plugins/index.d.ts +2 -0
- package/src/project-graph/plugins/index.js +8 -0
- package/src/project-graph/plugins/internal-api.d.ts +28 -0
- package/src/project-graph/plugins/internal-api.js +85 -0
- package/src/project-graph/plugins/isolation/index.d.ts +3 -0
- package/src/project-graph/plugins/isolation/index.js +16 -0
- package/src/project-graph/plugins/isolation/messaging.d.ts +94 -0
- package/src/project-graph/plugins/isolation/messaging.js +23 -0
- package/src/project-graph/plugins/isolation/plugin-pool.d.ts +3 -0
- package/src/project-graph/plugins/isolation/plugin-pool.js +189 -0
- package/src/project-graph/plugins/isolation/plugin-worker.d.ts +1 -0
- package/src/project-graph/plugins/isolation/plugin-worker.js +81 -0
- package/src/project-graph/plugins/loader.d.ts +24 -0
- package/src/project-graph/plugins/loader.js +206 -0
- package/src/{utils/nx-plugin.d.ts → project-graph/plugins/public-api.d.ts} +8 -44
- package/src/project-graph/plugins/public-api.js +4 -0
- package/src/project-graph/plugins/utils.d.ts +7 -0
- package/src/project-graph/plugins/utils.js +88 -0
- package/src/project-graph/project-graph-builder.d.ts +1 -1
- package/src/project-graph/project-graph.d.ts +3 -2
- package/src/project-graph/project-graph.js +9 -7
- package/src/project-graph/utils/normalize-project-nodes.d.ts +1 -1
- package/src/project-graph/utils/project-configuration-utils.d.ts +3 -26
- package/src/project-graph/utils/project-configuration-utils.js +89 -151
- package/src/project-graph/utils/retrieve-workspace-files.d.ts +11 -10
- package/src/project-graph/utils/retrieve-workspace-files.js +18 -21
- package/src/tasks-runner/cache.js +1 -1
- package/src/utils/logger.d.ts +1 -0
- package/src/utils/logger.js +5 -0
- package/src/utils/nx-plugin.deprecated.d.ts +2 -2
- package/src/utils/nx-plugin.deprecated.js +5 -7
- package/src/utils/plugins/plugin-capabilities.d.ts +1 -1
- package/src/utils/plugins/plugin-capabilities.js +18 -12
- package/src/utils/nx-plugin.js +0 -309
@@ -1,9 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { ProjectConfiguration } from '
|
4
|
-
import { NxJsonConfiguration
|
5
|
-
import {
|
6
|
-
import { RawProjectGraphDependency } from '../project-graph/project-graph-builder';
|
1
|
+
import { NxPluginV1 } from '../../utils/nx-plugin.deprecated';
|
2
|
+
import { FileMap, ProjectGraph, ProjectGraphExternalNode } from '../../config/project-graph';
|
3
|
+
import { ProjectConfiguration } from '../../config/workspace-json-project-json';
|
4
|
+
import { NxJsonConfiguration } from '../../config/nx-json';
|
5
|
+
import { RawProjectGraphDependency } from '../project-graph-builder';
|
7
6
|
/**
|
8
7
|
* Context for {@link CreateNodesFunction}
|
9
8
|
*/
|
@@ -20,6 +19,7 @@ export interface CreateNodesContext {
|
|
20
19
|
* Used for creating nodes for the {@link ProjectGraph}
|
21
20
|
*/
|
22
21
|
export type CreateNodesFunction<T = unknown> = (projectConfigurationFile: string, options: T | undefined, context: CreateNodesContext) => CreateNodesResult | Promise<CreateNodesResult>;
|
22
|
+
export type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
23
23
|
export interface CreateNodesResult {
|
24
24
|
/**
|
25
25
|
* A map of project root -> project configuration
|
@@ -34,7 +34,7 @@ export interface CreateNodesResult {
|
|
34
34
|
* A pair of file patterns and {@link CreateNodesFunction}
|
35
35
|
*/
|
36
36
|
export type CreateNodes<T = unknown> = readonly [
|
37
|
-
|
37
|
+
projectFilePattern: string,
|
38
38
|
createNodesFunction: CreateNodesFunction<T>
|
39
39
|
];
|
40
40
|
/**
|
@@ -77,49 +77,13 @@ export type NxPluginV2<TOptions = unknown> = {
|
|
77
77
|
* Provides a file pattern and function that retrieves configuration info from
|
78
78
|
* those files. e.g. { '**\/*.csproj': buildProjectsFromCsProjFile }
|
79
79
|
*/
|
80
|
-
createNodes?: CreateNodes
|
80
|
+
createNodes?: CreateNodes<TOptions>;
|
81
81
|
/**
|
82
82
|
* Provides a function to analyze files to create dependencies for the {@link ProjectGraph}
|
83
83
|
*/
|
84
84
|
createDependencies?: CreateDependencies<TOptions>;
|
85
85
|
};
|
86
|
-
export * from './nx-plugin.deprecated';
|
87
86
|
/**
|
88
87
|
* A plugin for Nx
|
89
88
|
*/
|
90
89
|
export type NxPlugin = NxPluginV1 | NxPluginV2;
|
91
|
-
export type LoadedNxPlugin = {
|
92
|
-
plugin: NxPluginV2 & Pick<NxPluginV1, 'processProjectGraph'>;
|
93
|
-
options?: unknown;
|
94
|
-
include?: string[];
|
95
|
-
exclude?: string[];
|
96
|
-
};
|
97
|
-
export declare const nxPluginCache: Map<string, LoadedNxPlugin['plugin']>;
|
98
|
-
export declare function getPluginPathAndName(moduleName: string, paths: string[], projects: Record<string, ProjectConfiguration>, root: string): {
|
99
|
-
pluginPath: string;
|
100
|
-
name: any;
|
101
|
-
};
|
102
|
-
export declare function loadNxPluginAsync(pluginConfiguration: PluginConfiguration, paths: string[], projects: Record<string, ProjectConfiguration>, root: string): Promise<LoadedNxPlugin>;
|
103
|
-
export declare function loadNxPlugins(plugins: PluginConfiguration[], paths?: string[], root?: string, projects?: Record<string, ProjectConfiguration>): Promise<LoadedNxPlugin[]>;
|
104
|
-
export declare function ensurePluginIsV2(plugin: NxPlugin): NxPluginV2;
|
105
|
-
export declare function isNxPluginV2(plugin: NxPlugin): plugin is NxPluginV2;
|
106
|
-
export declare function isNxPluginV1(plugin: NxPlugin): plugin is NxPluginV1;
|
107
|
-
export declare function readPluginPackageJson(pluginName: string, projects: Record<string, ProjectConfiguration>, paths?: string[]): {
|
108
|
-
path: string;
|
109
|
-
json: PackageJson;
|
110
|
-
};
|
111
|
-
export declare function resolveLocalNxPlugin(importPath: string, nxJsonConfiguration: NxJsonConfiguration, projects: Record<string, ProjectConfiguration>, root?: string): {
|
112
|
-
path: string;
|
113
|
-
projectConfig: ProjectConfiguration;
|
114
|
-
} | null;
|
115
|
-
/**
|
116
|
-
* Register swc-node or ts-node if they are not currently registered
|
117
|
-
* with some default settings which work well for Nx plugins.
|
118
|
-
*/
|
119
|
-
export declare function registerPluginTSTranspiler(): void;
|
120
|
-
/**
|
121
|
-
* Unregister the ts-node transpiler if it is registered
|
122
|
-
*/
|
123
|
-
export declare function unregisterPluginTSTranspiler(): void;
|
124
|
-
export declare function getDefaultPlugins(root: string): Promise<LoadedNxPlugin[]>;
|
125
|
-
type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { NxPluginV1 } from '../../utils/nx-plugin.deprecated';
|
2
|
+
import type { CreateNodesResultWithContext, LoadedNxPlugin, NormalizedPlugin } from './internal-api';
|
3
|
+
import type { CreateNodesContext, NxPlugin, NxPluginV2 } from './public-api';
|
4
|
+
export declare function isNxPluginV2(plugin: NxPlugin): plugin is NxPluginV2;
|
5
|
+
export declare function isNxPluginV1(plugin: NxPlugin | LoadedNxPlugin): plugin is NxPluginV1;
|
6
|
+
export declare function normalizeNxPlugin(plugin: NxPlugin): NormalizedPlugin;
|
7
|
+
export declare function runCreateNodesInParallel(configFiles: string[], plugin: NormalizedPlugin, options: unknown, context: CreateNodesContext): Promise<CreateNodesResultWithContext[]>;
|
@@ -0,0 +1,88 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.runCreateNodesInParallel = exports.normalizeNxPlugin = exports.isNxPluginV1 = exports.isNxPluginV2 = void 0;
|
4
|
+
const node_path_1 = require("node:path");
|
5
|
+
const workspaces_1 = require("../../config/workspaces");
|
6
|
+
const globs_1 = require("../../utils/globs");
|
7
|
+
const error_types_1 = require("../error-types");
|
8
|
+
function isNxPluginV2(plugin) {
|
9
|
+
return 'createNodes' in plugin || 'createDependencies' in plugin;
|
10
|
+
}
|
11
|
+
exports.isNxPluginV2 = isNxPluginV2;
|
12
|
+
function isNxPluginV1(plugin) {
|
13
|
+
return 'processProjectGraph' in plugin || 'projectFilePatterns' in plugin;
|
14
|
+
}
|
15
|
+
exports.isNxPluginV1 = isNxPluginV1;
|
16
|
+
function normalizeNxPlugin(plugin) {
|
17
|
+
if (isNxPluginV2(plugin)) {
|
18
|
+
return plugin;
|
19
|
+
}
|
20
|
+
if (isNxPluginV1(plugin) && plugin.projectFilePatterns) {
|
21
|
+
return {
|
22
|
+
...plugin,
|
23
|
+
createNodes: [
|
24
|
+
`*/**/${(0, globs_1.combineGlobPatterns)(plugin.projectFilePatterns)}`,
|
25
|
+
(configFilePath) => {
|
26
|
+
const root = (0, node_path_1.dirname)(configFilePath);
|
27
|
+
return {
|
28
|
+
projects: {
|
29
|
+
[root]: {
|
30
|
+
name: (0, workspaces_1.toProjectName)(configFilePath),
|
31
|
+
targets: plugin.registerProjectTargets?.(configFilePath),
|
32
|
+
},
|
33
|
+
},
|
34
|
+
};
|
35
|
+
},
|
36
|
+
],
|
37
|
+
};
|
38
|
+
}
|
39
|
+
return plugin;
|
40
|
+
}
|
41
|
+
exports.normalizeNxPlugin = normalizeNxPlugin;
|
42
|
+
async function runCreateNodesInParallel(configFiles, plugin, options, context) {
|
43
|
+
performance.mark(`${plugin.name}:createNodes - start`);
|
44
|
+
const promises = configFiles.map((file) => {
|
45
|
+
performance.mark(`${plugin.name}:createNodes:${file} - start`);
|
46
|
+
// Result is either static or a promise, using Promise.resolve lets us
|
47
|
+
// handle both cases with same logic
|
48
|
+
const value = Promise.resolve(plugin.createNodes[1](file, options, context));
|
49
|
+
return value
|
50
|
+
.catch((e) => {
|
51
|
+
performance.mark(`${plugin.name}:createNodes:${file} - end`);
|
52
|
+
return new error_types_1.CreateNodesError({
|
53
|
+
error: e,
|
54
|
+
pluginName: plugin.name,
|
55
|
+
file,
|
56
|
+
});
|
57
|
+
})
|
58
|
+
.then((r) => {
|
59
|
+
performance.mark(`${plugin.name}:createNodes:${file} - end`);
|
60
|
+
performance.measure(`${plugin.name}:createNodes:${file}`, `${plugin.name}:createNodes:${file} - start`, `${plugin.name}:createNodes:${file} - end`);
|
61
|
+
return { ...r, pluginName: plugin.name, file };
|
62
|
+
});
|
63
|
+
});
|
64
|
+
const results = await Promise.all(promises).then((results) => {
|
65
|
+
performance.mark(`${plugin.name}:createNodes - end`);
|
66
|
+
performance.measure(`${plugin.name}:createNodes`, `${plugin.name}:createNodes - start`, `${plugin.name}:createNodes - end`);
|
67
|
+
return results;
|
68
|
+
});
|
69
|
+
const [errors, successful] = partition(results, (r) => r instanceof error_types_1.CreateNodesError);
|
70
|
+
if (errors.length > 0) {
|
71
|
+
throw new error_types_1.AggregateCreateNodesError(plugin.name, errors, successful);
|
72
|
+
}
|
73
|
+
return results;
|
74
|
+
}
|
75
|
+
exports.runCreateNodesInParallel = runCreateNodesInParallel;
|
76
|
+
function partition(arr, test) {
|
77
|
+
const pass = [];
|
78
|
+
const fail = [];
|
79
|
+
for (const item of arr) {
|
80
|
+
if (test(item)) {
|
81
|
+
pass.push(item);
|
82
|
+
}
|
83
|
+
else {
|
84
|
+
fail.push(item);
|
85
|
+
}
|
86
|
+
}
|
87
|
+
return [pass, fail];
|
88
|
+
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* Builder for adding nodes and dependencies to a {@link ProjectGraph}
|
3
3
|
*/
|
4
4
|
import { DependencyType, FileMap, ProjectFileMap, ProjectGraph, ProjectGraphExternalNode, ProjectGraphProjectNode } from '../config/project-graph';
|
5
|
-
import { CreateDependenciesContext } from '
|
5
|
+
import { CreateDependenciesContext } from './plugins';
|
6
6
|
/**
|
7
7
|
* A class which builds up a project graph
|
8
8
|
* @deprecated The {@link ProjectGraphProcessor} has been deprecated. Use a {@link CreateNodes} and/or a {@link CreateDependencies} instead. This will be removed in Nx 19.
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { ProcessDependenciesError, ProcessProjectGraphError } from './build-project-graph';
|
2
2
|
import { ProjectGraph } from '../config/project-graph';
|
3
3
|
import { ProjectConfiguration, ProjectsConfigurations } from '../config/workspace-json-project-json';
|
4
|
-
import { ConfigurationSourceMaps
|
4
|
+
import { ConfigurationSourceMaps } from './utils/project-configuration-utils';
|
5
|
+
import { CreateNodesError, MergeNodesError } from './error-types';
|
5
6
|
import { DaemonProjectGraphError } from '../daemon/daemon-project-graph-error';
|
6
7
|
/**
|
7
8
|
* Synchronously reads the latest cached copy of the workspace's ProjectGraph.
|
@@ -33,7 +34,7 @@ export declare class ProjectGraphError extends Error {
|
|
33
34
|
*/
|
34
35
|
getPartialProjectGraph(): ProjectGraph;
|
35
36
|
getPartialSourcemaps(): ConfigurationSourceMaps;
|
36
|
-
getErrors(): (
|
37
|
+
getErrors(): (CreateNodesError | ProcessDependenciesError | ProcessProjectGraphError)[];
|
37
38
|
}
|
38
39
|
/**
|
39
40
|
* Computes and returns a ProjectGraph.
|
@@ -14,8 +14,8 @@ const workspace_root_1 = require("../utils/workspace-root");
|
|
14
14
|
const perf_hooks_1 = require("perf_hooks");
|
15
15
|
const retrieve_workspace_files_1 = require("./utils/retrieve-workspace-files");
|
16
16
|
const nx_json_1 = require("../config/nx-json");
|
17
|
-
const
|
18
|
-
const
|
17
|
+
const error_types_1 = require("./error-types");
|
18
|
+
const internal_api_1 = require("./plugins/internal-api");
|
19
19
|
/**
|
20
20
|
* Synchronously reads the latest cached copy of the workspace's ProjectGraph.
|
21
21
|
* @throws {Error} if there is no cached ProjectGraph to read from
|
@@ -69,17 +69,17 @@ function readProjectsConfigurationFromProjectGraph(projectGraph) {
|
|
69
69
|
}
|
70
70
|
exports.readProjectsConfigurationFromProjectGraph = readProjectsConfigurationFromProjectGraph;
|
71
71
|
async function buildProjectGraphAndSourceMapsWithoutDaemon() {
|
72
|
-
// Set this globally to allow plugins to know if they are being called from the project graph creation
|
73
72
|
global.NX_GRAPH_CREATION = true;
|
74
73
|
const nxJson = (0, nx_json_1.readNxJson)();
|
75
74
|
perf_hooks_1.performance.mark('retrieve-project-configurations:start');
|
76
75
|
let configurationResult;
|
77
76
|
let projectConfigurationsError;
|
77
|
+
const [plugins, cleanup] = await (0, internal_api_1.loadNxPlugins)(nxJson.plugins);
|
78
78
|
try {
|
79
|
-
configurationResult = await (0, retrieve_workspace_files_1.retrieveProjectConfigurations)(workspace_root_1.workspaceRoot, nxJson);
|
79
|
+
configurationResult = await (0, retrieve_workspace_files_1.retrieveProjectConfigurations)(plugins, workspace_root_1.workspaceRoot, nxJson);
|
80
80
|
}
|
81
81
|
catch (e) {
|
82
|
-
if (e instanceof
|
82
|
+
if (e instanceof error_types_1.ProjectConfigurationsError) {
|
83
83
|
projectConfigurationsError = e;
|
84
84
|
configurationResult = e.partialProjectConfigurationsResult;
|
85
85
|
}
|
@@ -97,7 +97,7 @@ async function buildProjectGraphAndSourceMapsWithoutDaemon() {
|
|
97
97
|
let createDependenciesError;
|
98
98
|
let projectGraphResult;
|
99
99
|
try {
|
100
|
-
projectGraphResult = await (0, build_project_graph_1.buildProjectGraphUsingProjectFileMap)(projects, externalNodes, fileMap, allWorkspaceFiles, rustReferences, cacheEnabled ? (0, nx_deps_cache_1.readFileMapCache)() : null);
|
100
|
+
projectGraphResult = await (0, build_project_graph_1.buildProjectGraphUsingProjectFileMap)(projects, externalNodes, fileMap, allWorkspaceFiles, rustReferences, cacheEnabled ? (0, nx_deps_cache_1.readFileMapCache)() : null, plugins);
|
101
101
|
}
|
102
102
|
catch (e) {
|
103
103
|
if (e instanceof build_project_graph_1.CreateDependenciesError) {
|
@@ -111,9 +111,11 @@ async function buildProjectGraphAndSourceMapsWithoutDaemon() {
|
|
111
111
|
throw e;
|
112
112
|
}
|
113
113
|
}
|
114
|
+
finally {
|
115
|
+
cleanup();
|
116
|
+
}
|
114
117
|
const { projectGraph, projectFileMapCache } = projectGraphResult;
|
115
118
|
perf_hooks_1.performance.mark('build-project-graph-using-project-file-map:end');
|
116
|
-
(0, nx_plugin_1.unregisterPluginTSTranspiler)();
|
117
119
|
delete global.NX_GRAPH_CREATION;
|
118
120
|
const errors = [
|
119
121
|
...(projectConfigurationsError?.errors ?? []),
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ProjectGraphProjectNode } from '../../config/project-graph';
|
2
2
|
import { ProjectGraphBuilder } from '../project-graph-builder';
|
3
3
|
import { ProjectConfiguration, TargetConfiguration } from '../../config/workspace-json-project-json';
|
4
|
-
import { CreateDependenciesContext } from '
|
4
|
+
import { CreateDependenciesContext } from '../plugins';
|
5
5
|
export declare function normalizeProjectNodes(ctx: CreateDependenciesContext, builder: ProjectGraphBuilder): Promise<void>;
|
6
6
|
/**
|
7
7
|
* Apply target defaults and normalization
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { NxJsonConfiguration, TargetDefaults } from '../../config/nx-json';
|
2
2
|
import { ProjectGraphExternalNode } from '../../config/project-graph';
|
3
3
|
import { ProjectConfiguration, TargetConfiguration } from '../../config/workspace-json-project-json';
|
4
|
-
import {
|
5
|
-
import {
|
4
|
+
import { ONLY_MODIFIES_EXISTING_TARGET } from '../../plugins/target-defaults/symbols';
|
5
|
+
import { LoadedNxPlugin } from '../plugins/internal-api';
|
6
6
|
export type SourceInformation = [file: string, plugin: string];
|
7
7
|
export type ConfigurationSourceMaps = Record<string, Record<string, SourceInformation>>;
|
8
8
|
export declare function mergeProjectConfigurationIntoRootMap(projectRootMap: Map<string, ProjectConfiguration>, project: ProjectConfiguration & {
|
@@ -24,32 +24,9 @@ export type ConfigurationResult = {
|
|
24
24
|
* @param workspaceFiles A list of non-ignored workspace files
|
25
25
|
* @param plugins The plugins that should be used to infer project configuration
|
26
26
|
*/
|
27
|
-
export declare function createProjectConfigurations(root: string, nxJson: NxJsonConfiguration,
|
27
|
+
export declare function createProjectConfigurations(root: string, nxJson: NxJsonConfiguration, projectFiles: string[], // making this parameter allows devkit to pick up newly created projects
|
28
28
|
plugins: LoadedNxPlugin[]): Promise<ConfigurationResult>;
|
29
29
|
export declare function readProjectConfigurationsFromRootMap(projectRootMap: Map<string, ProjectConfiguration>): Record<string, ProjectConfiguration>;
|
30
|
-
export declare class ProjectConfigurationsError extends Error {
|
31
|
-
readonly errors: Array<MergeNodesError | CreateNodesError>;
|
32
|
-
readonly partialProjectConfigurationsResult: ConfigurationResult;
|
33
|
-
constructor(errors: Array<MergeNodesError | CreateNodesError>, partialProjectConfigurationsResult: ConfigurationResult);
|
34
|
-
}
|
35
|
-
export declare class CreateNodesError extends Error {
|
36
|
-
file: string;
|
37
|
-
pluginName: string;
|
38
|
-
constructor({ file, pluginName, error, }: {
|
39
|
-
file: string;
|
40
|
-
pluginName: string;
|
41
|
-
error: Error;
|
42
|
-
});
|
43
|
-
}
|
44
|
-
export declare class MergeNodesError extends Error {
|
45
|
-
file: string;
|
46
|
-
pluginName: string;
|
47
|
-
constructor({ file, pluginName, error, }: {
|
48
|
-
file: string;
|
49
|
-
pluginName: string;
|
50
|
-
error: Error;
|
51
|
-
});
|
52
|
-
}
|
53
30
|
/**
|
54
31
|
* Merges two targets.
|
55
32
|
*
|