nx 20.0.0-canary.20240926-529ab94 → 20.0.0-canary.20241001-8fa7065
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +14 -14
- package/src/command-line/import/utils/prepare-source-repo.js +8 -3
- package/src/command-line/reset/reset.js +16 -9
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/daemon/server/handle-hash-tasks.js +1 -1
- package/src/executors/run-commands/run-commands.impl.js +15 -22
- package/src/generators/utils/project-configuration.js +2 -1
- package/src/hasher/create-task-hasher.js +1 -1
- package/src/hasher/hash-task.d.ts +4 -2
- package/src/hasher/hash-task.js +6 -9
- package/src/hasher/task-hasher.d.ts +2 -6
- package/src/hasher/task-hasher.js +6 -32
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/tasks-runner/forked-process-task-runner.js +16 -5
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +5 -0
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +7 -0
- package/src/tasks-runner/run-command.js +3 -1
- package/src/tasks-runner/task-orchestrator.d.ts +1 -0
- package/src/tasks-runner/task-orchestrator.js +6 -2
- package/src/tasks-runner/tasks-schedule.d.ts +1 -0
- package/src/tasks-runner/tasks-schedule.js +6 -2
- package/src/utils/package-json.d.ts +1 -0
- package/src/utils/plugins/core-plugins.js +4 -0
- package/src/utils/plugins/output.js +1 -1
- package/src/hasher/node-task-hasher-impl.d.ts +0 -48
- package/src/hasher/node-task-hasher-impl.js +0 -449
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "20.0.0-canary.
|
3
|
+
"version": "20.0.0-canary.20241001-8fa7065",
|
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": {
|
@@ -58,7 +58,6 @@
|
|
58
58
|
"open": "^8.4.0",
|
59
59
|
"semver": "^7.5.3",
|
60
60
|
"string-width": "^4.2.3",
|
61
|
-
"strong-log-transformer": "^2.1.0",
|
62
61
|
"tar-stream": "~2.2.0",
|
63
62
|
"tmp": "~0.2.1",
|
64
63
|
"tsconfig-paths": "^4.1.2",
|
@@ -66,8 +65,7 @@
|
|
66
65
|
"yargs": "^17.6.2",
|
67
66
|
"yargs-parser": "21.1.1",
|
68
67
|
"node-machine-id": "1.1.12",
|
69
|
-
"ora": "5.3.0"
|
70
|
-
"@nrwl/tao": "20.0.0-canary.20240926-529ab94"
|
68
|
+
"ora": "5.3.0"
|
71
69
|
},
|
72
70
|
"peerDependencies": {
|
73
71
|
"@swc-node/register": "^1.8.0",
|
@@ -82,16 +80,16 @@
|
|
82
80
|
}
|
83
81
|
},
|
84
82
|
"optionalDependencies": {
|
85
|
-
"@nx/nx-darwin-x64": "20.0.0-canary.
|
86
|
-
"@nx/nx-darwin-arm64": "20.0.0-canary.
|
87
|
-
"@nx/nx-linux-x64-gnu": "20.0.0-canary.
|
88
|
-
"@nx/nx-linux-x64-musl": "20.0.0-canary.
|
89
|
-
"@nx/nx-win32-x64-msvc": "20.0.0-canary.
|
90
|
-
"@nx/nx-linux-arm64-gnu": "20.0.0-canary.
|
91
|
-
"@nx/nx-linux-arm64-musl": "20.0.0-canary.
|
92
|
-
"@nx/nx-linux-arm-gnueabihf": "20.0.0-canary.
|
93
|
-
"@nx/nx-win32-arm64-msvc": "20.0.0-canary.
|
94
|
-
"@nx/nx-freebsd-x64": "20.0.0-canary.
|
83
|
+
"@nx/nx-darwin-x64": "20.0.0-canary.20241001-8fa7065",
|
84
|
+
"@nx/nx-darwin-arm64": "20.0.0-canary.20241001-8fa7065",
|
85
|
+
"@nx/nx-linux-x64-gnu": "20.0.0-canary.20241001-8fa7065",
|
86
|
+
"@nx/nx-linux-x64-musl": "20.0.0-canary.20241001-8fa7065",
|
87
|
+
"@nx/nx-win32-x64-msvc": "20.0.0-canary.20241001-8fa7065",
|
88
|
+
"@nx/nx-linux-arm64-gnu": "20.0.0-canary.20241001-8fa7065",
|
89
|
+
"@nx/nx-linux-arm64-musl": "20.0.0-canary.20241001-8fa7065",
|
90
|
+
"@nx/nx-linux-arm-gnueabihf": "20.0.0-canary.20241001-8fa7065",
|
91
|
+
"@nx/nx-win32-arm64-msvc": "20.0.0-canary.20241001-8fa7065",
|
92
|
+
"@nx/nx-freebsd-x64": "20.0.0-canary.20241001-8fa7065"
|
95
93
|
},
|
96
94
|
"nx-migrations": {
|
97
95
|
"migrations": "./migrations.json",
|
@@ -140,6 +138,8 @@
|
|
140
138
|
"@nrwl/rollup",
|
141
139
|
"@nx/remix",
|
142
140
|
"@nrwl/remix",
|
141
|
+
"@nx/rspack",
|
142
|
+
"@nrwl/rspack",
|
143
143
|
"@nx/storybook",
|
144
144
|
"@nrwl/storybook",
|
145
145
|
"@nrwl/tao",
|
@@ -6,15 +6,20 @@ const path_1 = require("path");
|
|
6
6
|
async function prepareSourceRepo(gitClient, ref, source, relativeDestination, tempImportBranch, sourceRemoteUrl) {
|
7
7
|
const spinner = createSpinner().start(`Fetching ${ref} from ${sourceRemoteUrl}`);
|
8
8
|
const relativeSourceDir = (0, path_1.relative)(gitClient.root, (0, path_1.join)(gitClient.root, source));
|
9
|
+
const message = relativeSourceDir.trim()
|
10
|
+
? `Filtering git history to only include files in ${relativeSourceDir}`
|
11
|
+
: `Filtering git history`;
|
9
12
|
if (await gitClient.hasFilterRepoInstalled()) {
|
10
|
-
spinner.start(
|
13
|
+
spinner.start(message);
|
11
14
|
await gitClient.filterRepo(relativeSourceDir, relativeDestination);
|
12
15
|
}
|
13
16
|
else {
|
14
|
-
spinner.start(
|
17
|
+
spinner.start(`${message} (this might take a few minutes -- install git-filter-repo for faster performance)`);
|
15
18
|
await gitClient.filterBranch(relativeSourceDir, relativeDestination, tempImportBranch);
|
16
19
|
}
|
17
|
-
spinner.succeed(
|
20
|
+
spinner.succeed(relativeSourceDir.trim()
|
21
|
+
? `Filtered git history to only include files in ${relativeSourceDir}`
|
22
|
+
: `Filtered git history`);
|
18
23
|
spinner.succeed(`${sourceRemoteUrl} has been prepared to be imported into this workspace on a temporary branch: ${tempImportBranch} in ${gitClient.root}`);
|
19
24
|
}
|
20
25
|
function wait(ms) {
|
@@ -37,16 +37,16 @@ async function resetHandler(args) {
|
|
37
37
|
try {
|
38
38
|
await killDaemon();
|
39
39
|
}
|
40
|
-
catch {
|
41
|
-
errors.push('Failed to stop the Nx Daemon.');
|
40
|
+
catch (e) {
|
41
|
+
errors.push('Failed to stop the Nx Daemon.', e.toString());
|
42
42
|
}
|
43
43
|
}
|
44
44
|
if (all || args.onlyCache) {
|
45
45
|
try {
|
46
46
|
await cleanupCacheEntries();
|
47
47
|
}
|
48
|
-
catch {
|
49
|
-
errors.push('Failed to clean up the cache directory.');
|
48
|
+
catch (e) {
|
49
|
+
errors.push('Failed to clean up the cache directory.', e.toString());
|
50
50
|
}
|
51
51
|
}
|
52
52
|
if (all || args.onlyWorkspaceData) {
|
@@ -59,12 +59,17 @@ async function resetHandler(args) {
|
|
59
59
|
try {
|
60
60
|
await cleanupWorkspaceData();
|
61
61
|
}
|
62
|
-
catch {
|
63
|
-
errors.push('Failed to clean up the workspace data directory.');
|
62
|
+
catch (e) {
|
63
|
+
errors.push('Failed to clean up the workspace data directory.', e.toString());
|
64
64
|
}
|
65
65
|
}
|
66
66
|
if (all || args.onlyCloud) {
|
67
|
-
|
67
|
+
try {
|
68
|
+
await resetCloudClient();
|
69
|
+
}
|
70
|
+
catch (e) {
|
71
|
+
errors.push('Failed to reset the Nx Cloud client.', e.toString());
|
72
|
+
}
|
68
73
|
}
|
69
74
|
if (errors.length > 0) {
|
70
75
|
output_1.output.error({
|
@@ -79,8 +84,10 @@ async function resetHandler(args) {
|
|
79
84
|
});
|
80
85
|
}
|
81
86
|
}
|
82
|
-
function killDaemon() {
|
83
|
-
|
87
|
+
async function killDaemon() {
|
88
|
+
if (client_1.daemonClient.enabled()) {
|
89
|
+
return client_1.daemonClient.stop();
|
90
|
+
}
|
84
91
|
}
|
85
92
|
async function resetCloudClient() {
|
86
93
|
// Remove nx cloud marker files. This helps if the use happens to run `nx-cloud start-ci-run` or
|