nx 17.2.0-beta.1 → 17.2.0-beta.3
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/package.json +13 -12
- package/src/command-line/affected/print-affected.js +10 -1
- package/src/command-line/graph/graph.js +2 -2
- package/src/core/graph/3rdpartylicenses.txt +76 -26
- 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/handle-hash-tasks.js +2 -2
- package/src/daemon/server/project-graph-incremental-recomputation.d.ts +4 -0
- package/src/daemon/server/project-graph-incremental-recomputation.js +7 -2
- package/src/executors/run-commands/run-commands.impl.js +9 -2
- package/src/hasher/hash-task.js +6 -0
- package/src/hasher/native-task-hasher-impl.d.ts +19 -0
- package/src/hasher/native-task-hasher-impl.js +35 -0
- package/src/hasher/node-task-hasher-impl.d.ts +49 -0
- package/src/hasher/node-task-hasher-impl.js +431 -0
- package/src/hasher/task-hasher.d.ts +29 -17
- package/src/hasher/task-hasher.js +28 -426
- package/src/native/index.d.ts +41 -3
- package/src/native/index.js +3 -1
- package/src/native/transform-objects.js +2 -0
- package/src/plugins/js/package-json/create-package-json.js +1 -1
- package/src/project-graph/build-project-graph.d.ts +3 -1
- package/src/project-graph/build-project-graph.js +5 -1
- package/src/project-graph/file-map-utils.d.ts +4 -2
- package/src/project-graph/file-map-utils.js +6 -58
- package/src/project-graph/project-graph.js +2 -2
- package/src/project-graph/utils/build-all-workspace-files.d.ts +2 -0
- package/src/project-graph/utils/build-all-workspace-files.js +15 -0
- package/src/project-graph/utils/retrieve-workspace-files.d.ts +4 -3
- package/src/project-graph/utils/retrieve-workspace-files.js +4 -12
- package/src/tasks-runner/run-command.js +2 -6
- package/src/utils/nx-plugin.js +12 -2
- package/src/utils/workspace-context.d.ts +2 -0
- package/src/utils/workspace-context.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "17.2.0-beta.
|
|
3
|
+
"version": "17.2.0-beta.3",
|
|
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": {
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"npm-run-path": "^4.0.1",
|
|
58
58
|
"open": "^8.4.0",
|
|
59
59
|
"semver": "7.5.3",
|
|
60
|
+
"string-argv": "^0.3.2",
|
|
60
61
|
"string-width": "^4.2.3",
|
|
61
62
|
"strong-log-transformer": "^2.1.0",
|
|
62
63
|
"tar-stream": "~2.2.0",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"yargs": "^17.6.2",
|
|
68
69
|
"yargs-parser": "21.1.1",
|
|
69
70
|
"node-machine-id": "1.1.12",
|
|
70
|
-
"@nrwl/tao": "17.2.0-beta.
|
|
71
|
+
"@nrwl/tao": "17.2.0-beta.3"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
74
|
"@swc-node/register": "^1.6.7",
|
|
@@ -82,16 +83,16 @@
|
|
|
82
83
|
}
|
|
83
84
|
},
|
|
84
85
|
"optionalDependencies": {
|
|
85
|
-
"@nx/nx-darwin-x64": "17.2.0-beta.
|
|
86
|
-
"@nx/nx-darwin-arm64": "17.2.0-beta.
|
|
87
|
-
"@nx/nx-linux-x64-gnu": "17.2.0-beta.
|
|
88
|
-
"@nx/nx-linux-x64-musl": "17.2.0-beta.
|
|
89
|
-
"@nx/nx-win32-x64-msvc": "17.2.0-beta.
|
|
90
|
-
"@nx/nx-linux-arm64-gnu": "17.2.0-beta.
|
|
91
|
-
"@nx/nx-linux-arm64-musl": "17.2.0-beta.
|
|
92
|
-
"@nx/nx-linux-arm-gnueabihf": "17.2.0-beta.
|
|
93
|
-
"@nx/nx-win32-arm64-msvc": "17.2.0-beta.
|
|
94
|
-
"@nx/nx-freebsd-x64": "17.2.0-beta.
|
|
86
|
+
"@nx/nx-darwin-x64": "17.2.0-beta.3",
|
|
87
|
+
"@nx/nx-darwin-arm64": "17.2.0-beta.3",
|
|
88
|
+
"@nx/nx-linux-x64-gnu": "17.2.0-beta.3",
|
|
89
|
+
"@nx/nx-linux-x64-musl": "17.2.0-beta.3",
|
|
90
|
+
"@nx/nx-win32-x64-msvc": "17.2.0-beta.3",
|
|
91
|
+
"@nx/nx-linux-arm64-gnu": "17.2.0-beta.3",
|
|
92
|
+
"@nx/nx-linux-arm64-musl": "17.2.0-beta.3",
|
|
93
|
+
"@nx/nx-linux-arm-gnueabihf": "17.2.0-beta.3",
|
|
94
|
+
"@nx/nx-win32-arm64-msvc": "17.2.0-beta.3",
|
|
95
|
+
"@nx/nx-freebsd-x64": "17.2.0-beta.3"
|
|
95
96
|
},
|
|
96
97
|
"nx-migrations": {
|
|
97
98
|
"migrations": "./migrations.json",
|
|
@@ -9,6 +9,8 @@ const package_manager_1 = require("../../utils/package-manager");
|
|
|
9
9
|
const command_object_1 = require("./command-object");
|
|
10
10
|
const logger_1 = require("../../utils/logger");
|
|
11
11
|
const task_env_1 = require("../../tasks-runner/task-env");
|
|
12
|
+
const build_project_graph_1 = require("../../project-graph/build-project-graph");
|
|
13
|
+
const client_1 = require("../../daemon/client/client");
|
|
12
14
|
/**
|
|
13
15
|
* @deprecated Use showProjectsHandler, generateGraph, or affected (without the print-affected mode) instead.
|
|
14
16
|
*/
|
|
@@ -35,7 +37,14 @@ exports.printAffected = printAffected;
|
|
|
35
37
|
async function createTasks(affectedProjectsWithTargetAndConfig, projectGraph, nxArgs, nxJson, overrides) {
|
|
36
38
|
const defaultDependencyConfigs = (0, create_task_graph_1.mapTargetDefaultsToDependencies)(nxJson.targetDefaults);
|
|
37
39
|
const taskGraph = (0, create_task_graph_1.createTaskGraph)(projectGraph, defaultDependencyConfigs, affectedProjectsWithTargetAndConfig.map((p) => p.name), nxArgs.targets, nxArgs.configuration, overrides);
|
|
38
|
-
|
|
40
|
+
let hasher;
|
|
41
|
+
if (client_1.daemonClient.enabled()) {
|
|
42
|
+
hasher = new task_hasher_1.DaemonBasedTaskHasher(client_1.daemonClient, {});
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
const { fileMap, allWorkspaceFiles, rustReferences } = (0, build_project_graph_1.getFileMap)();
|
|
46
|
+
hasher = new task_hasher_1.InProcessTaskHasher(fileMap?.projectFileMap, allWorkspaceFiles, projectGraph, nxJson, rustReferences, {});
|
|
47
|
+
}
|
|
39
48
|
const execCommand = (0, package_manager_1.getPackageManagerCommand)().exec;
|
|
40
49
|
const tasks = Object.values(taskGraph.tasks);
|
|
41
50
|
await Promise.all(tasks.map((t) => (0, hash_task_1.hashTask)(hasher, projectGraph, taskGraph, t,
|
|
@@ -15,7 +15,6 @@ const fileutils_1 = require("../../utils/fileutils");
|
|
|
15
15
|
const output_1 = require("../../utils/output");
|
|
16
16
|
const workspace_root_1 = require("../../utils/workspace-root");
|
|
17
17
|
const client_1 = require("../../daemon/client/client");
|
|
18
|
-
const task_hasher_1 = require("../../hasher/task-hasher");
|
|
19
18
|
const typescript_1 = require("../../plugins/js/utils/typescript");
|
|
20
19
|
const operators_1 = require("../../project-graph/operators");
|
|
21
20
|
const project_graph_1 = require("../../project-graph/project-graph");
|
|
@@ -26,6 +25,7 @@ const native_1 = require("../../native");
|
|
|
26
25
|
const transform_objects_1 = require("../../native/transform-objects");
|
|
27
26
|
const affected_1 = require("../affected/affected");
|
|
28
27
|
const nx_deps_cache_1 = require("../../project-graph/nx-deps-cache");
|
|
28
|
+
const task_hasher_1 = require("../../hasher/task-hasher");
|
|
29
29
|
// maps file extention to MIME types
|
|
30
30
|
const mimeType = {
|
|
31
31
|
'.ico': 'image/x-icon',
|
|
@@ -435,7 +435,7 @@ async function createTaskGraphClientResponse(pruneExternal = false) {
|
|
|
435
435
|
perf_hooks_1.performance.mark('task graph generation:start');
|
|
436
436
|
const taskGraphs = getAllTaskGraphsForWorkspace(nxJson, graph);
|
|
437
437
|
perf_hooks_1.performance.mark('task graph generation:end');
|
|
438
|
-
const planner = new native_1.HashPlanner(
|
|
438
|
+
const planner = new native_1.HashPlanner(nxJson, (0, native_1.transferProjectGraph)((0, transform_objects_1.transformProjectGraphForRust)(graph)));
|
|
439
439
|
perf_hooks_1.performance.mark('task hash plan generation:start');
|
|
440
440
|
const plans = {};
|
|
441
441
|
for (const individualTaskGraph of Object.values(taskGraphs.taskGraphs)) {
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
@babel/runtime
|
|
2
|
-
MIT
|
|
3
|
-
MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
8
|
-
a copy of this software and associated documentation files (the
|
|
9
|
-
"Software"), to deal in the Software without restriction, including
|
|
10
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
11
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
12
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
13
|
-
the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be
|
|
16
|
-
included in all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
19
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
20
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
21
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
22
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
23
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
24
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
25
|
-
|
|
26
|
-
|
|
27
1
|
@floating-ui/react
|
|
28
2
|
MIT
|
|
29
3
|
MIT License
|
|
@@ -212,6 +186,31 @@ SOFTWARE.
|
|
|
212
186
|
|
|
213
187
|
|
|
214
188
|
|
|
189
|
+
aria-hidden
|
|
190
|
+
MIT
|
|
191
|
+
MIT License
|
|
192
|
+
|
|
193
|
+
Copyright (c) 2017 Anton Korzunov
|
|
194
|
+
|
|
195
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
196
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
197
|
+
in the Software without restriction, including without limitation the rights
|
|
198
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
199
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
200
|
+
furnished to do so, subject to the following conditions:
|
|
201
|
+
|
|
202
|
+
The above copyright notice and this permission notice shall be included in all
|
|
203
|
+
copies or substantial portions of the Software.
|
|
204
|
+
|
|
205
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
206
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
207
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
208
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
209
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
210
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
211
|
+
SOFTWARE.
|
|
212
|
+
|
|
213
|
+
|
|
215
214
|
classnames
|
|
216
215
|
MIT
|
|
217
216
|
The MIT License (MIT)
|
|
@@ -590,6 +589,57 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
590
589
|
SOFTWARE.
|
|
591
590
|
|
|
592
591
|
|
|
592
|
+
regenerator-runtime
|
|
593
|
+
MIT
|
|
594
|
+
MIT License
|
|
595
|
+
|
|
596
|
+
Copyright (c) 2014-present, Facebook, Inc.
|
|
597
|
+
|
|
598
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
599
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
600
|
+
in the Software without restriction, including without limitation the rights
|
|
601
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
602
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
603
|
+
furnished to do so, subject to the following conditions:
|
|
604
|
+
|
|
605
|
+
The above copyright notice and this permission notice shall be included in all
|
|
606
|
+
copies or substantial portions of the Software.
|
|
607
|
+
|
|
608
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
609
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
610
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
611
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
612
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
613
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
614
|
+
SOFTWARE.
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
tabbable
|
|
618
|
+
MIT
|
|
619
|
+
The MIT License (MIT)
|
|
620
|
+
|
|
621
|
+
Copyright (c) 2015 David Clark
|
|
622
|
+
|
|
623
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
624
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
625
|
+
in the Software without restriction, including without limitation the rights
|
|
626
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
627
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
628
|
+
furnished to do so, subject to the following conditions:
|
|
629
|
+
|
|
630
|
+
The above copyright notice and this permission notice shall be included in all
|
|
631
|
+
copies or substantial portions of the Software.
|
|
632
|
+
|
|
633
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
634
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
635
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
636
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
637
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
638
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
639
|
+
SOFTWARE.
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
593
643
|
use-isomorphic-layout-effect
|
|
594
644
|
MIT
|
|
595
645
|
MIT License
|