nx 16.6.0 → 16.7.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/package.json +13 -13
- package/src/command-line/affected/print-affected.js +2 -2
- package/src/command-line/show/command-object.js +2 -2
- package/src/core/graph/main.js +1 -1
- package/src/daemon/server/handle-hash-tasks.js +2 -4
- package/src/hasher/hash-task.js +2 -2
- package/src/hasher/task-hasher.d.ts +16 -8
- package/src/hasher/task-hasher.js +30 -31
- package/src/plugins/js/project-graph/build-dependencies/build-dependencies.js +1 -2
- package/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.js +6 -5
- package/src/tasks-runner/run-command.js +28 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.7.0-beta.1",
|
|
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": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://nx.dev",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nrwl/tao": "16.
|
|
35
|
+
"@nrwl/tao": "16.7.0-beta.1",
|
|
36
36
|
"@parcel/watcher": "2.0.4",
|
|
37
37
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
38
38
|
"@yarnpkg/parsers": "3.0.0-rc.46",
|
|
@@ -81,16 +81,16 @@
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"optionalDependencies": {
|
|
84
|
-
"@nx/nx-darwin-arm64": "16.
|
|
85
|
-
"@nx/nx-darwin-x64": "16.
|
|
86
|
-
"@nx/nx-freebsd-x64": "16.
|
|
87
|
-
"@nx/nx-linux-arm-gnueabihf": "16.
|
|
88
|
-
"@nx/nx-linux-arm64-gnu": "16.
|
|
89
|
-
"@nx/nx-linux-arm64-musl": "16.
|
|
90
|
-
"@nx/nx-linux-x64-gnu": "16.
|
|
91
|
-
"@nx/nx-linux-x64-musl": "16.
|
|
92
|
-
"@nx/nx-win32-arm64-msvc": "16.
|
|
93
|
-
"@nx/nx-win32-x64-msvc": "16.
|
|
84
|
+
"@nx/nx-darwin-arm64": "16.7.0-beta.1",
|
|
85
|
+
"@nx/nx-darwin-x64": "16.7.0-beta.1",
|
|
86
|
+
"@nx/nx-freebsd-x64": "16.7.0-beta.1",
|
|
87
|
+
"@nx/nx-linux-arm-gnueabihf": "16.7.0-beta.1",
|
|
88
|
+
"@nx/nx-linux-arm64-gnu": "16.7.0-beta.1",
|
|
89
|
+
"@nx/nx-linux-arm64-musl": "16.7.0-beta.1",
|
|
90
|
+
"@nx/nx-linux-x64-gnu": "16.7.0-beta.1",
|
|
91
|
+
"@nx/nx-linux-x64-musl": "16.7.0-beta.1",
|
|
92
|
+
"@nx/nx-win32-arm64-msvc": "16.7.0-beta.1",
|
|
93
|
+
"@nx/nx-win32-x64-msvc": "16.7.0-beta.1"
|
|
94
94
|
},
|
|
95
95
|
"nx-migrations": {
|
|
96
96
|
"migrations": "./migrations.json",
|
|
@@ -177,5 +177,5 @@
|
|
|
177
177
|
},
|
|
178
178
|
"main": "./bin/nx.js",
|
|
179
179
|
"types": "./bin/nx.d.ts",
|
|
180
|
-
"gitHead": "
|
|
180
|
+
"gitHead": "50a145bb64edcf76985184a9a83d1449dcd4f3d9"
|
|
181
181
|
}
|
|
@@ -39,10 +39,10 @@ function createTasks(affectedProjectsWithTargetAndConfig, projectGraph, nxArgs,
|
|
|
39
39
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
const defaultDependencyConfigs = (0, create_task_graph_1.mapTargetDefaultsToDependencies)(nxJson.targetDefaults);
|
|
41
41
|
const taskGraph = (0, create_task_graph_1.createTaskGraph)(projectGraph, defaultDependencyConfigs, affectedProjectsWithTargetAndConfig.map((p) => p.name), nxArgs.targets, nxArgs.configuration, overrides);
|
|
42
|
-
const hasher = new task_hasher_1.InProcessTaskHasher({}, [], projectGraph,
|
|
42
|
+
const hasher = new task_hasher_1.InProcessTaskHasher({}, [], projectGraph, nxJson, {}, file_hasher_1.fileHasher);
|
|
43
43
|
const execCommand = (0, package_manager_1.getPackageManagerCommand)().exec;
|
|
44
44
|
const tasks = Object.values(taskGraph.tasks);
|
|
45
|
-
yield Promise.all(tasks.map((t) => (0, hash_task_1.hashTask)(hasher, projectGraph,
|
|
45
|
+
yield Promise.all(tasks.map((t) => (0, hash_task_1.hashTask)(hasher, projectGraph, taskGraph, t)));
|
|
46
46
|
return tasks.map((task) => ({
|
|
47
47
|
id: task.id,
|
|
48
48
|
overrides,
|
|
@@ -47,8 +47,8 @@ const showProjectsCommand = {
|
|
|
47
47
|
.implies('files', 'affected')
|
|
48
48
|
.implies('base', 'affected')
|
|
49
49
|
.implies('head', 'affected')
|
|
50
|
-
.example('$0 show projects --
|
|
51
|
-
.example('$0 show projects --
|
|
50
|
+
.example('$0 show projects --projects "apps/*"', 'Show all projects in the apps directory')
|
|
51
|
+
.example('$0 show projects --projects "shared-*"', 'Show all projects that start with "shared-"')
|
|
52
52
|
.example('$0 show projects --affected', 'Show affected projects in the workspace')
|
|
53
53
|
.example('$0 show projects --affected --exclude *-e2e', 'Show affected projects in the workspace, excluding end-to-end projects'),
|
|
54
54
|
handler: (args) => Promise.resolve().then(() => require('./show')).then((m) => m.showProjectsHandler(args)),
|