nx 21.6.5 → 21.6.7
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/nx.js +3 -0
- package/migrations.json +37 -0
- package/package.json +11 -11
- package/src/command-line/nx-cloud/complete-run/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/complete-run/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/complete-run/command-object.js +16 -0
- package/src/command-line/nx-cloud/complete-run/stop-all-agents.d.ts +5 -0
- package/src/command-line/nx-cloud/complete-run/stop-all-agents.d.ts.map +1 -0
- package/src/command-line/nx-cloud/complete-run/stop-all-agents.js +7 -0
- package/src/command-line/nx-cloud/start-agent/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/start-agent/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/start-agent/command-object.js +15 -0
- package/src/command-line/nx-cloud/start-agent/start-agent.d.ts +5 -0
- package/src/command-line/nx-cloud/start-agent/start-agent.d.ts.map +1 -0
- package/src/command-line/nx-cloud/start-agent/start-agent.js +7 -0
- package/src/command-line/nx-cloud/start-ci-run/command-object.js +1 -1
- package/src/command-line/nx-commands.d.ts.map +1 -1
- package/src/command-line/nx-commands.js +11 -7
- package/src/core/graph/main.js +1 -1
- package/src/daemon/server/project-graph-incremental-recomputation.d.ts.map +1 -1
- package/src/daemon/server/project-graph-incremental-recomputation.js +14 -1
- package/src/devkit-internals.d.ts +1 -0
- package/src/devkit-internals.d.ts.map +1 -1
- package/src/devkit-internals.js +3 -1
- package/src/generators/utils/project-configuration.js +13 -1
- package/src/migrations/update-15-0-0/prefix-outputs.d.ts +3 -0
- package/src/migrations/update-15-0-0/prefix-outputs.d.ts.map +1 -0
- package/src/migrations/update-15-0-0/prefix-outputs.js +49 -0
- package/src/migrations/update-16-0-0/remove-nrwl-cli.d.ts +3 -0
- package/src/migrations/update-16-0-0/remove-nrwl-cli.d.ts.map +1 -0
- package/src/migrations/update-16-0-0/remove-nrwl-cli.js +16 -0
- package/src/migrations/update-16-0-0/update-depends-on-to-tokens.d.ts +3 -0
- package/src/migrations/update-16-0-0/update-depends-on-to-tokens.d.ts.map +1 -0
- package/src/migrations/update-16-0-0/update-depends-on-to-tokens.js +97 -0
- package/src/migrations/update-16-0-0/update-nx-cloud-runner.d.ts +3 -0
- package/src/migrations/update-16-0-0/update-nx-cloud-runner.d.ts.map +1 -0
- package/src/migrations/update-16-0-0/update-nx-cloud-runner.js +29 -0
- package/src/migrations/update-16-2-0/remove-run-commands-output-path.d.ts +3 -0
- package/src/migrations/update-16-2-0/remove-run-commands-output-path.d.ts.map +1 -0
- package/src/migrations/update-16-2-0/remove-run-commands-output-path.js +45 -0
- package/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.d.ts +13 -0
- package/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.d.ts.map +1 -0
- package/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.js +67 -0
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/plugins/js/lock-file/pnpm-parser.d.ts.map +1 -1
- package/src/plugins/js/lock-file/pnpm-parser.js +4 -2
- package/src/plugins/package-json/create-nodes.js +1 -1
- package/src/plugins/project-json/build-nodes/project-json.d.ts +0 -1
- package/src/plugins/project-json/build-nodes/project-json.d.ts.map +1 -1
- package/src/plugins/project-json/build-nodes/project-json.js +1 -13
- package/src/project-graph/utils/project-configuration-utils.d.ts +1 -1
- package/src/project-graph/utils/project-configuration-utils.d.ts.map +1 -1
- package/src/project-graph/utils/project-configuration-utils.js +13 -4
- package/src/tasks-runner/cache.d.ts.map +1 -1
- package/src/tasks-runner/cache.js +27 -14
- package/src/tasks-runner/fork.js +3 -1
- package/src/tasks-runner/life-cycles/task-history-life-cycle-old.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/task-history-life-cycle-old.js +8 -2
- package/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/task-history-life-cycle.js +8 -2
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts +1 -1
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +83 -55
- package/src/utils/exit-codes.d.ts +1 -1
- package/src/utils/exit-codes.d.ts.map +1 -1
package/bin/nx.js
CHANGED
package/migrations.json
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"generators": {
|
|
3
|
+
"16.0.0-remove-nrwl-cli": {
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"version": "16.0.0-beta.0",
|
|
6
|
+
"description": "Remove @nrwl/cli.",
|
|
7
|
+
"implementation": "./src/migrations/update-16-0-0/remove-nrwl-cli"
|
|
8
|
+
},
|
|
9
|
+
"16.0.0-tokens-for-depends-on": {
|
|
10
|
+
"cli": "nx",
|
|
11
|
+
"version": "16.0.0-beta.9",
|
|
12
|
+
"description": "Replace `dependsOn.projects` and `inputs` definitions with new configuration format.",
|
|
13
|
+
"implementation": "./src/migrations/update-16-0-0/update-depends-on-to-tokens"
|
|
14
|
+
},
|
|
15
|
+
"16.0.0-update-nx-cloud-runner": {
|
|
16
|
+
"cli": "nx",
|
|
17
|
+
"version": "16.0.0-beta.0",
|
|
18
|
+
"description": "Replace @nrwl/nx-cloud with nx-cloud",
|
|
19
|
+
"implementation": "./src/migrations/update-16-0-0/update-nx-cloud-runner"
|
|
20
|
+
},
|
|
21
|
+
"16.2.0-remove-output-path-from-run-commands": {
|
|
22
|
+
"cli": "nx",
|
|
23
|
+
"version": "16.2.0-beta.0",
|
|
24
|
+
"description": "Remove outputPath from run commands",
|
|
25
|
+
"implementation": "./src/migrations/update-16-2-0/remove-run-commands-output-path"
|
|
26
|
+
},
|
|
27
|
+
"16.6.0-prefix-outputs": {
|
|
28
|
+
"cli": "nx",
|
|
29
|
+
"version": "16.6.0-beta.6",
|
|
30
|
+
"description": "Prefix outputs with {workspaceRoot}/{projectRoot} if needed",
|
|
31
|
+
"implementation": "./src/migrations/update-15-0-0/prefix-outputs"
|
|
32
|
+
},
|
|
33
|
+
"16.8.0-escape-dollar-sign-env": {
|
|
34
|
+
"cli": "nx",
|
|
35
|
+
"version": "16.8.0-beta.3",
|
|
36
|
+
"description": "Escape $ in env variables",
|
|
37
|
+
"implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables",
|
|
38
|
+
"x-repair-skip": true
|
|
39
|
+
},
|
|
3
40
|
"17.0.0-move-cache-directory": {
|
|
4
41
|
"cli": "nx",
|
|
5
42
|
"version": "17.0.0-beta.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "21.6.
|
|
3
|
+
"version": "21.6.7",
|
|
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": {
|
|
@@ -83,16 +83,16 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"optionalDependencies": {
|
|
86
|
-
"@nx/nx-darwin-arm64": "21.6.
|
|
87
|
-
"@nx/nx-darwin-x64": "21.6.
|
|
88
|
-
"@nx/nx-freebsd-x64": "21.6.
|
|
89
|
-
"@nx/nx-linux-arm-gnueabihf": "21.6.
|
|
90
|
-
"@nx/nx-linux-arm64-gnu": "21.6.
|
|
91
|
-
"@nx/nx-linux-arm64-musl": "21.6.
|
|
92
|
-
"@nx/nx-linux-x64-gnu": "21.6.
|
|
93
|
-
"@nx/nx-linux-x64-musl": "21.6.
|
|
94
|
-
"@nx/nx-win32-arm64-msvc": "21.6.
|
|
95
|
-
"@nx/nx-win32-x64-msvc": "21.6.
|
|
86
|
+
"@nx/nx-darwin-arm64": "21.6.7",
|
|
87
|
+
"@nx/nx-darwin-x64": "21.6.7",
|
|
88
|
+
"@nx/nx-freebsd-x64": "21.6.7",
|
|
89
|
+
"@nx/nx-linux-arm-gnueabihf": "21.6.7",
|
|
90
|
+
"@nx/nx-linux-arm64-gnu": "21.6.7",
|
|
91
|
+
"@nx/nx-linux-arm64-musl": "21.6.7",
|
|
92
|
+
"@nx/nx-linux-x64-gnu": "21.6.7",
|
|
93
|
+
"@nx/nx-linux-x64-musl": "21.6.7",
|
|
94
|
+
"@nx/nx-win32-arm64-msvc": "21.6.7",
|
|
95
|
+
"@nx/nx-win32-x64-msvc": "21.6.7"
|
|
96
96
|
},
|
|
97
97
|
"nx-migrations": {
|
|
98
98
|
"migrations": "./migrations.json",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-object.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/nx-cloud/complete-run/command-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,eAAO,MAAM,yBAAyB,EAAE,aAevC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.yargsStopAllAgentsCommand = void 0;
|
|
4
|
+
const shared_options_1 = require("../../yargs-utils/shared-options");
|
|
5
|
+
exports.yargsStopAllAgentsCommand = {
|
|
6
|
+
command: 'stop-all-agents [options]',
|
|
7
|
+
aliases: ['complete-ci-run'],
|
|
8
|
+
describe: 'Terminates all dedicated agents associated with this CI pipeline execution. This command is an alias for [`nx-cloud stop-all-agents`](/docs/reference/nx-cloud-cli#nx-cloud-stop-all-agents).',
|
|
9
|
+
builder: (yargs) => (0, shared_options_1.withVerbose)(yargs)
|
|
10
|
+
.help(false)
|
|
11
|
+
.showHelpOnFail(false)
|
|
12
|
+
.option('help', { describe: 'Show help.', type: 'boolean' }),
|
|
13
|
+
handler: async (args) => {
|
|
14
|
+
process.exit(await (await Promise.resolve().then(() => require('./stop-all-agents'))).stopAllAgentsHandler(args));
|
|
15
|
+
},
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stop-all-agents.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/nx-cloud/complete-run/stop-all-agents.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAE7E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stopAllAgentsHandler = stopAllAgentsHandler;
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
|
+
function stopAllAgentsHandler(args) {
|
|
6
|
+
return (0, utils_1.executeNxCloudCommand)('stop-all-agents', args.verbose);
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-object.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/nx-cloud/start-agent/command-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,eAAO,MAAM,sBAAsB,EAAE,aAYpC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.yargsStartAgentCommand = void 0;
|
|
4
|
+
const shared_options_1 = require("../../yargs-utils/shared-options");
|
|
5
|
+
exports.yargsStartAgentCommand = {
|
|
6
|
+
command: 'start-agent [options]',
|
|
7
|
+
describe: 'Starts a new agent for distributed task execution. This command is an alias for [`nx-cloud start-agent`](/docs/reference/nx-cloud-cli).',
|
|
8
|
+
builder: (yargs) => (0, shared_options_1.withVerbose)(yargs)
|
|
9
|
+
.help(false)
|
|
10
|
+
.showHelpOnFail(false)
|
|
11
|
+
.option('help', { describe: 'Show help.', type: 'boolean' }),
|
|
12
|
+
handler: async (args) => {
|
|
13
|
+
process.exit(await (await Promise.resolve().then(() => require('./start-agent'))).startAgentHandler(args));
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start-agent.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/nx-cloud/start-agent/start-agent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAEvE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.startAgentHandler = startAgentHandler;
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
|
+
function startAgentHandler(args) {
|
|
6
|
+
return (0, utils_1.executeNxCloudCommand)('start-agent', args.verbose);
|
|
7
|
+
}
|
|
@@ -4,7 +4,7 @@ exports.yargsStartCiRunCommand = void 0;
|
|
|
4
4
|
const shared_options_1 = require("../../yargs-utils/shared-options");
|
|
5
5
|
exports.yargsStartCiRunCommand = {
|
|
6
6
|
command: 'start-ci-run [options]',
|
|
7
|
-
describe: 'Starts a new CI run for distributed task execution. This command is an alias for [`nx-cloud start-ci-run`](/
|
|
7
|
+
describe: 'Starts a new CI run for distributed task execution. This command is an alias for [`nx-cloud start-ci-run`](/docs/reference/nx-cloud-cli#npx-nxcloud-start-ci-run).',
|
|
8
8
|
builder: (yargs) => (0, shared_options_1.withVerbose)(yargs)
|
|
9
9
|
.help(false)
|
|
10
10
|
.showHelpOnFail(false)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nx-commands.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/command-line/nx-commands.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"nx-commands.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/command-line/nx-commands.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0D/B,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,KAAK,CAAC,0BAA0B,CAEzE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,qBAsDf,CAAC"}
|
|
@@ -30,11 +30,13 @@ const command_object_24 = require("./nx-cloud/login/command-object");
|
|
|
30
30
|
const command_object_25 = require("./nx-cloud/logout/command-object");
|
|
31
31
|
const command_object_26 = require("./nx-cloud/record/command-object");
|
|
32
32
|
const command_object_27 = require("./nx-cloud/start-ci-run/command-object");
|
|
33
|
-
const command_object_28 = require("./nx-cloud/
|
|
33
|
+
const command_object_28 = require("./nx-cloud/start-agent/command-object");
|
|
34
|
+
const command_object_29 = require("./nx-cloud/complete-run/command-object");
|
|
35
|
+
const command_object_30 = require("./nx-cloud/fix-ci/command-object");
|
|
34
36
|
const command_objects_1 = require("./deprecated/command-objects");
|
|
35
|
-
const
|
|
37
|
+
const command_object_31 = require("./sync/command-object");
|
|
36
38
|
const output_1 = require("../utils/output");
|
|
37
|
-
const
|
|
39
|
+
const command_object_32 = require("./mcp/command-object");
|
|
38
40
|
// Ensure that the output takes up the available width of the terminal.
|
|
39
41
|
yargs.wrap(yargs.terminalWidth());
|
|
40
42
|
exports.parserConfiguration = {
|
|
@@ -81,8 +83,8 @@ exports.commandsObject = yargs
|
|
|
81
83
|
.command(command_object_16.yargsRunCommand)
|
|
82
84
|
.command(command_object_17.yargsRunManyCommand)
|
|
83
85
|
.command(command_object_18.yargsShowCommand)
|
|
84
|
-
.command(
|
|
85
|
-
.command(
|
|
86
|
+
.command(command_object_31.yargsSyncCommand)
|
|
87
|
+
.command(command_object_31.yargsSyncCheckCommand)
|
|
86
88
|
.command(command_object_3.yargsViewLogsCommand)
|
|
87
89
|
.command(command_object_19.yargsWatchCommand)
|
|
88
90
|
.command(command_object_16.yargsNxInfixCommand)
|
|
@@ -90,8 +92,10 @@ exports.commandsObject = yargs
|
|
|
90
92
|
.command(command_object_25.yargsLogoutCommand)
|
|
91
93
|
.command(command_object_26.yargsRecordCommand)
|
|
92
94
|
.command(command_object_27.yargsStartCiRunCommand)
|
|
93
|
-
.command(command_object_28.
|
|
94
|
-
.command(
|
|
95
|
+
.command(command_object_28.yargsStartAgentCommand)
|
|
96
|
+
.command(command_object_29.yargsStopAllAgentsCommand)
|
|
97
|
+
.command(command_object_30.yargsFixCiCommand)
|
|
98
|
+
.command(command_object_32.yargsMcpCommand)
|
|
95
99
|
.command(resolveConformanceCommandObject())
|
|
96
100
|
.command(resolveConformanceCheckCommandObject())
|
|
97
101
|
.scriptName('nx')
|