nx 19.0.0-canary.20240423-b37bfdb โ 19.0.0-canary.20240425-cec57c4
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/.eslintrc.json +1 -1
- package/package.json +12 -12
- package/src/command-line/init/implementation/react/index.js +1 -1
- package/src/config/nx-json.d.ts +2 -2
- package/src/core/graph/index.html +1 -2
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/runtime.js +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/daemon/server/project-graph-incremental-recomputation.js +8 -8
- package/src/devkit-exports.d.ts +1 -1
- package/src/devkit-internals.d.ts +2 -0
- package/src/devkit-internals.js +5 -1
- package/src/executors/utils/convert-nx-executor.js +2 -1
- package/src/generators/utils/project-configuration.js +2 -2
- package/src/project-graph/build-project-graph.d.ts +8 -18
- package/src/project-graph/build-project-graph.js +58 -54
- package/src/project-graph/error-types.d.ts +26 -3
- package/src/project-graph/error-types.js +57 -1
- package/src/project-graph/file-utils.js +1 -1
- package/src/project-graph/plugins/internal-api.d.ts +3 -2
- package/src/project-graph/plugins/internal-api.js +3 -0
- package/src/project-graph/plugins/isolation/messaging.d.ts +24 -3
- package/src/project-graph/plugins/isolation/plugin-pool.js +20 -0
- package/src/project-graph/plugins/isolation/plugin-worker.js +16 -0
- package/src/project-graph/plugins/loader.js +13 -5
- package/src/project-graph/plugins/public-api.d.ts +10 -0
- package/src/project-graph/project-graph.js +6 -6
- package/src/project-graph/utils/find-project-for-path.js +2 -3
- package/src/project-graph/utils/normalize-project-nodes.d.ts +1 -1
- package/src/project-graph/utils/normalize-project-nodes.js +8 -8
- package/src/project-graph/utils/project-configuration-utils.d.ts +21 -5
- package/src/project-graph/utils/project-configuration-utils.js +23 -14
- package/src/project-graph/utils/retrieve-workspace-files.d.ts +3 -3
- package/src/core/graph/3rdpartylicenses.txt +0 -785
package/.eslintrc.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "19.0.0-canary.
|
3
|
+
"version": "19.0.0-canary.20240425-cec57c4",
|
4
4
|
"private": false,
|
5
5
|
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
|
6
6
|
"repository": {
|
@@ -66,7 +66,7 @@
|
|
66
66
|
"yargs-parser": "21.1.1",
|
67
67
|
"node-machine-id": "1.1.12",
|
68
68
|
"ora": "5.3.0",
|
69
|
-
"@nrwl/tao": "19.0.0-canary.
|
69
|
+
"@nrwl/tao": "19.0.0-canary.20240425-cec57c4"
|
70
70
|
},
|
71
71
|
"peerDependencies": {
|
72
72
|
"@swc-node/register": "^1.8.0",
|
@@ -81,16 +81,16 @@
|
|
81
81
|
}
|
82
82
|
},
|
83
83
|
"optionalDependencies": {
|
84
|
-
"@nx/nx-darwin-x64": "19.0.0-canary.
|
85
|
-
"@nx/nx-darwin-arm64": "19.0.0-canary.
|
86
|
-
"@nx/nx-linux-x64-gnu": "19.0.0-canary.
|
87
|
-
"@nx/nx-linux-x64-musl": "19.0.0-canary.
|
88
|
-
"@nx/nx-win32-x64-msvc": "19.0.0-canary.
|
89
|
-
"@nx/nx-linux-arm64-gnu": "19.0.0-canary.
|
90
|
-
"@nx/nx-linux-arm64-musl": "19.0.0-canary.
|
91
|
-
"@nx/nx-linux-arm-gnueabihf": "19.0.0-canary.
|
92
|
-
"@nx/nx-win32-arm64-msvc": "19.0.0-canary.
|
93
|
-
"@nx/nx-freebsd-x64": "19.0.0-canary.
|
84
|
+
"@nx/nx-darwin-x64": "19.0.0-canary.20240425-cec57c4",
|
85
|
+
"@nx/nx-darwin-arm64": "19.0.0-canary.20240425-cec57c4",
|
86
|
+
"@nx/nx-linux-x64-gnu": "19.0.0-canary.20240425-cec57c4",
|
87
|
+
"@nx/nx-linux-x64-musl": "19.0.0-canary.20240425-cec57c4",
|
88
|
+
"@nx/nx-win32-x64-msvc": "19.0.0-canary.20240425-cec57c4",
|
89
|
+
"@nx/nx-linux-arm64-gnu": "19.0.0-canary.20240425-cec57c4",
|
90
|
+
"@nx/nx-linux-arm64-musl": "19.0.0-canary.20240425-cec57c4",
|
91
|
+
"@nx/nx-linux-arm-gnueabihf": "19.0.0-canary.20240425-cec57c4",
|
92
|
+
"@nx/nx-win32-arm64-msvc": "19.0.0-canary.20240425-cec57c4",
|
93
|
+
"@nx/nx-freebsd-x64": "19.0.0-canary.20240425-cec57c4"
|
94
94
|
},
|
95
95
|
"nx-migrations": {
|
96
96
|
"migrations": "./migrations.json",
|
@@ -109,7 +109,7 @@ async function reorgnizeWorkspaceStructure(options) {
|
|
109
109
|
}
|
110
110
|
function createTempWorkspace(options) {
|
111
111
|
(0, fs_extra_1.removeSync)('temp-workspace');
|
112
|
-
(0, child_process_1.execSync)(`npx ${options.npxYesFlagNeeded ? '-y' : ''} create-nx-workspace@latest temp-workspace --appName=${options.reactAppName} --preset=react-monorepo --style=css --bundler=${options.isVite ? 'vite' : 'webpack'} --packageManager=${options.packageManager} ${options.nxCloud ? '--nxCloud=yes' : '--nxCloud=skip'} ${options.addE2e ? '--e2eTestRunner=
|
112
|
+
(0, child_process_1.execSync)(`npx ${options.npxYesFlagNeeded ? '-y' : ''} create-nx-workspace@latest temp-workspace --appName=${options.reactAppName} --preset=react-monorepo --style=css --bundler=${options.isVite ? 'vite' : 'webpack'} --packageManager=${options.packageManager} ${options.nxCloud ? '--nxCloud=yes' : '--nxCloud=skip'} ${options.addE2e ? '--e2eTestRunner=playwright' : '--e2eTestRunner=none'}`, { stdio: [0, 1, 2] });
|
113
113
|
output_1.output.log({ title: '๐ Welcome to Nx!' });
|
114
114
|
output_1.output.log({ title: '๐งน Clearing unused files' });
|
115
115
|
(0, fs_extra_1.copySync)((0, path_1.join)('temp-workspace', 'apps', options.reactAppName, 'project.json'), 'project.json');
|
package/src/config/nx-json.d.ts
CHANGED
@@ -395,9 +395,9 @@ export interface NxJsonConfiguration<T = '*' | string[]> {
|
|
395
395
|
useInferencePlugins?: boolean;
|
396
396
|
}
|
397
397
|
export type PluginConfiguration = string | ExpandedPluginConfiguration;
|
398
|
-
export type ExpandedPluginConfiguration = {
|
398
|
+
export type ExpandedPluginConfiguration<T = unknown> = {
|
399
399
|
plugin: string;
|
400
|
-
options?:
|
400
|
+
options?: T;
|
401
401
|
include?: string[];
|
402
402
|
exclude?: string[];
|
403
403
|
};
|