nx 18.1.0-canary.20240307-84d96cc → 18.1.0-canary.20240309-235ca8c
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 +13 -1
- package/bin/post-install.js +7 -5
- package/package.json +12 -12
- package/src/core/graph/3rdpartylicenses.txt +0 -51
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/polyfills.js +1 -1
- package/src/core/graph/runtime.js +1 -1
- package/src/core/graph/styles.js +1 -1
- 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 +8 -6
- package/src/daemon/server/shutdown-utils.js +2 -0
- package/src/devkit-internals.d.ts +0 -1
- package/src/devkit-internals.js +1 -3
- package/src/executors/utils/convert-nx-executor.js +4 -1
- package/src/migrations/update-15-1-0/set-project-names.js +1 -3
- package/src/migrations/update-17-2-0/move-default-base.d.ts +1 -1
- package/src/migrations/update-17-2-0/move-default-base.js +2 -2
- package/src/project-graph/affected/locators/project-glob-changes.js +2 -1
- package/src/project-graph/build-project-graph.d.ts +2 -1
- package/src/project-graph/build-project-graph.js +5 -9
- package/src/project-graph/plugins/internal-api.d.ts +7 -3
- package/src/project-graph/plugins/internal-api.js +27 -11
- package/src/project-graph/plugins/plugin-pool.d.ts +1 -2
- package/src/project-graph/plugins/plugin-pool.js +38 -62
- package/src/project-graph/plugins/plugin-worker.js +2 -16
- package/src/project-graph/plugins/worker-api.d.ts +8 -6
- package/src/project-graph/plugins/worker-api.js +33 -15
- package/src/project-graph/project-graph.js +19 -12
- package/src/project-graph/utils/project-configuration-utils.js +1 -4
- package/src/project-graph/utils/retrieve-workspace-files.d.ts +4 -10
- package/src/project-graph/utils/retrieve-workspace-files.js +8 -13
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +16 -13
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +8 -7
- package/src/utils/plugins/plugin-capabilities.js +4 -4
package/bin/init-local.js
CHANGED
@@ -99,7 +99,14 @@ function isKnownCommand(command) {
|
|
99
99
|
}
|
100
100
|
function shouldDelegateToAngularCLI() {
|
101
101
|
const command = process.argv[2];
|
102
|
-
const commands = [
|
102
|
+
const commands = [
|
103
|
+
'analytics',
|
104
|
+
'cache',
|
105
|
+
'completion',
|
106
|
+
'config',
|
107
|
+
'doc',
|
108
|
+
'update',
|
109
|
+
];
|
103
110
|
return commands.indexOf(command) > -1;
|
104
111
|
}
|
105
112
|
function handleAngularCLIFallbacks(workspace) {
|
@@ -122,6 +129,11 @@ function handleAngularCLIFallbacks(workspace) {
|
|
122
129
|
For more information, see https://nx.dev/features/integrate-with-editors`);
|
123
130
|
}
|
124
131
|
}
|
132
|
+
else if (process.argv[2] === 'cache') {
|
133
|
+
console.log(`"ng cache" is not natively supported by Nx.
|
134
|
+
To clear the cache, you can delete the ".angular/cache" directory (or the directory configured by "cli.cache.path" in the "nx.json" file).
|
135
|
+
To update the cache configuration, you can directly update the relevant options in your "nx.json" file (https://angular.io/guide/workspace-config#cache-options).`);
|
136
|
+
}
|
125
137
|
else {
|
126
138
|
try {
|
127
139
|
// nx-ignore-next-line
|
package/bin/post-install.js
CHANGED
@@ -12,10 +12,10 @@ const nx_cloud_utils_1 = require("../src/utils/nx-cloud-utils");
|
|
12
12
|
const nx_json_1 = require("../src/config/nx-json");
|
13
13
|
const workspace_context_1 = require("../src/utils/workspace-context");
|
14
14
|
(async () => {
|
15
|
+
const start = new Date();
|
15
16
|
try {
|
16
17
|
(0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
|
17
18
|
if (isMainNxPackage() && (0, fileutils_1.fileExists)((0, path_1.join)(workspace_root_1.workspaceRoot, 'nx.json'))) {
|
18
|
-
const b = new Date();
|
19
19
|
(0, assert_supported_platform_1.assertSupportedPlatform)();
|
20
20
|
try {
|
21
21
|
await client_1.daemonClient.stop();
|
@@ -34,10 +34,6 @@ const workspace_context_1 = require("../src/utils/workspace-context");
|
|
34
34
|
}
|
35
35
|
});
|
36
36
|
}));
|
37
|
-
if (process.env.NX_VERBOSE_LOGGING === 'true') {
|
38
|
-
const a = new Date();
|
39
|
-
console.log(`Nx postinstall steps took ${a.getTime() - b.getTime()}ms`);
|
40
|
-
}
|
41
37
|
}
|
42
38
|
}
|
43
39
|
catch (e) {
|
@@ -45,6 +41,12 @@ const workspace_context_1 = require("../src/utils/workspace-context");
|
|
45
41
|
console.log(e);
|
46
42
|
}
|
47
43
|
}
|
44
|
+
finally {
|
45
|
+
if (process.env.NX_VERBOSE_LOGGING === 'true') {
|
46
|
+
const end = new Date();
|
47
|
+
console.log(`Nx postinstall steps took ${end.getTime() - start.getTime()}ms`);
|
48
|
+
}
|
49
|
+
}
|
48
50
|
})();
|
49
51
|
function isMainNxPackage() {
|
50
52
|
const mainNxPath = require.resolve('nx', {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "18.1.0-canary.
|
3
|
+
"version": "18.1.0-canary.20240309-235ca8c",
|
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": "18.1.0-canary.
|
69
|
+
"@nrwl/tao": "18.1.0-canary.20240309-235ca8c"
|
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": "18.1.0-canary.
|
85
|
-
"@nx/nx-darwin-arm64": "18.1.0-canary.
|
86
|
-
"@nx/nx-linux-x64-gnu": "18.1.0-canary.
|
87
|
-
"@nx/nx-linux-x64-musl": "18.1.0-canary.
|
88
|
-
"@nx/nx-win32-x64-msvc": "18.1.0-canary.
|
89
|
-
"@nx/nx-linux-arm64-gnu": "18.1.0-canary.
|
90
|
-
"@nx/nx-linux-arm64-musl": "18.1.0-canary.
|
91
|
-
"@nx/nx-linux-arm-gnueabihf": "18.1.0-canary.
|
92
|
-
"@nx/nx-win32-arm64-msvc": "18.1.0-canary.
|
93
|
-
"@nx/nx-freebsd-x64": "18.1.0-canary.
|
84
|
+
"@nx/nx-darwin-x64": "18.1.0-canary.20240309-235ca8c",
|
85
|
+
"@nx/nx-darwin-arm64": "18.1.0-canary.20240309-235ca8c",
|
86
|
+
"@nx/nx-linux-x64-gnu": "18.1.0-canary.20240309-235ca8c",
|
87
|
+
"@nx/nx-linux-x64-musl": "18.1.0-canary.20240309-235ca8c",
|
88
|
+
"@nx/nx-win32-x64-msvc": "18.1.0-canary.20240309-235ca8c",
|
89
|
+
"@nx/nx-linux-arm64-gnu": "18.1.0-canary.20240309-235ca8c",
|
90
|
+
"@nx/nx-linux-arm64-musl": "18.1.0-canary.20240309-235ca8c",
|
91
|
+
"@nx/nx-linux-arm-gnueabihf": "18.1.0-canary.20240309-235ca8c",
|
92
|
+
"@nx/nx-win32-arm64-msvc": "18.1.0-canary.20240309-235ca8c",
|
93
|
+
"@nx/nx-freebsd-x64": "18.1.0-canary.20240309-235ca8c"
|
94
94
|
},
|
95
95
|
"nx-migrations": {
|
96
96
|
"migrations": "./migrations.json",
|
@@ -704,57 +704,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
704
704
|
SOFTWARE.
|
705
705
|
|
706
706
|
|
707
|
-
regenerator-runtime
|
708
|
-
MIT
|
709
|
-
MIT License
|
710
|
-
|
711
|
-
Copyright (c) 2014-present, Facebook, Inc.
|
712
|
-
|
713
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
714
|
-
of this software and associated documentation files (the "Software"), to deal
|
715
|
-
in the Software without restriction, including without limitation the rights
|
716
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
717
|
-
copies of the Software, and to permit persons to whom the Software is
|
718
|
-
furnished to do so, subject to the following conditions:
|
719
|
-
|
720
|
-
The above copyright notice and this permission notice shall be included in all
|
721
|
-
copies or substantial portions of the Software.
|
722
|
-
|
723
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
724
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
725
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
726
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
727
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
728
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
729
|
-
SOFTWARE.
|
730
|
-
|
731
|
-
|
732
|
-
tabbable
|
733
|
-
MIT
|
734
|
-
The MIT License (MIT)
|
735
|
-
|
736
|
-
Copyright (c) 2015 David Clark
|
737
|
-
|
738
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
739
|
-
of this software and associated documentation files (the "Software"), to deal
|
740
|
-
in the Software without restriction, including without limitation the rights
|
741
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
742
|
-
copies of the Software, and to permit persons to whom the Software is
|
743
|
-
furnished to do so, subject to the following conditions:
|
744
|
-
|
745
|
-
The above copyright notice and this permission notice shall be included in all
|
746
|
-
copies or substantial portions of the Software.
|
747
|
-
|
748
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
749
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
750
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
751
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
752
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
753
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
754
|
-
SOFTWARE.
|
755
|
-
|
756
|
-
|
757
|
-
|
758
707
|
toggle-selection
|
759
708
|
MIT
|
760
709
|
|