nx 22.0.0-canary.20251016-849f356 → 22.0.0-canary.20251021-6934445
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 +12 -11
- package/src/command-line/add/add.d.ts.map +1 -1
- package/src/command-line/add/add.js +3 -5
- package/src/command-line/init/configure-plugins.d.ts.map +1 -1
- package/src/command-line/init/configure-plugins.js +2 -3
- package/src/command-line/init/init-v2.d.ts.map +1 -1
- package/src/command-line/init/init-v2.js +18 -0
- package/src/command-line/migrate/migrate.d.ts.map +1 -1
- package/src/command-line/migrate/migrate.js +16 -0
- 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/command-line/release/config/version-plans.d.ts.map +1 -1
- package/src/command-line/release/config/version-plans.js +34 -3
- package/src/command-line/release/version/release-group-processor.d.ts.map +1 -1
- package/src/command-line/release/version/release-group-processor.js +5 -3
- package/src/command-line/release/version/resolve-current-version.d.ts.map +1 -1
- package/src/command-line/release/version/resolve-current-version.js +2 -4
- package/src/command-line/sync/sync.d.ts.map +1 -1
- package/src/command-line/sync/sync.js +2 -3
- package/src/core/graph/main.js +1 -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/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/plugins/public-api.d.ts +1 -1
- package/src/project-graph/plugins/public-api.d.ts.map +1 -1
- package/src/project-graph/utils/project-configuration-utils.d.ts.map +1 -1
- package/src/project-graph/utils/project-configuration-utils.js +9 -0
- 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/catalog/index.d.ts +1 -1
- package/src/utils/catalog/index.d.ts.map +1 -1
- package/src/utils/catalog/manager.d.ts +1 -0
- package/src/utils/catalog/manager.d.ts.map +1 -1
- package/src/utils/catalog/pnpm-manager.d.ts +1 -0
- package/src/utils/catalog/pnpm-manager.d.ts.map +1 -1
- package/src/utils/catalog/pnpm-manager.js +3 -0
- package/src/utils/delayed-spinner.d.ts +2 -2
- package/src/utils/delayed-spinner.d.ts.map +1 -1
- package/src/utils/delayed-spinner.js +8 -10
- package/src/utils/spinner.d.ts +13 -0
- package/src/utils/spinner.d.ts.map +1 -0
- package/src/utils/spinner.js +61 -0
|
@@ -28,4 +28,5 @@ export { interpolate } from './tasks-runner/utils';
|
|
|
28
28
|
export { isCI } from './utils/is-ci';
|
|
29
29
|
export { isUsingPrettierInTree } from './utils/is-using-prettier';
|
|
30
30
|
export { readYamlFile } from './utils/fileutils';
|
|
31
|
+
export { globalSpinner } from './utils/spinner';
|
|
31
32
|
//# sourceMappingURL=devkit-internals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devkit-internals.d.ts","sourceRoot":"","sources":["../../../../packages/nx/src/devkit-internals.ts"],"names":[],"mappings":"AAAA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AAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"devkit-internals.d.ts","sourceRoot":"","sources":["../../../../packages/nx/src/devkit-internals.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EACL,sBAAsB,EACtB,aAAa,GACd,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,gDAAgD,EAAE,MAAM,gDAAgD,CAAC;AAClH,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,EACL,oCAAoC,EACpC,uBAAuB,GACxB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,wBAAwB,EACxB,iCAAiC,GAClC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,kDAAkD,EAClD,kBAAkB,GACnB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC1E,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
package/src/devkit-internals.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readYamlFile = exports.isUsingPrettierInTree = exports.isCI = exports.interpolate = exports.registerTsProject = exports.LoadedNxPlugin = exports.retrieveProjectConfigurations = exports.findProjectForPath = exports.createProjectRootMappingsFromProjectConfigurations = exports.hashMultiGlobWithWorkspaceContext = exports.hashWithWorkspaceContext = exports.hashObject = exports.splitByColons = exports.installPackageToTmp = exports.readModulePackageJson = exports.stripIndent = exports.sortObjectByKeys = exports.combineOptionsForExecutor = exports.splitTarget = exports.getIgnoreObjectForTree = exports.findMatchingConfigFiles = exports.readProjectConfigurationsFromRootMap = exports.mergeTargetConfigurations = exports.retrieveProjectConfigurationsWithAngularProjects = exports.calculateDefaultProjectName = exports.readNxJsonFromDisk = exports.parseExecutor = exports.getExecutorInformation = exports.createTempNpmDirectory = void 0;
|
|
3
|
+
exports.globalSpinner = exports.readYamlFile = exports.isUsingPrettierInTree = exports.isCI = exports.interpolate = exports.registerTsProject = exports.LoadedNxPlugin = exports.retrieveProjectConfigurations = exports.findProjectForPath = exports.createProjectRootMappingsFromProjectConfigurations = exports.hashMultiGlobWithWorkspaceContext = exports.hashWithWorkspaceContext = exports.hashObject = exports.splitByColons = exports.installPackageToTmp = exports.readModulePackageJson = exports.stripIndent = exports.sortObjectByKeys = exports.combineOptionsForExecutor = exports.splitTarget = exports.getIgnoreObjectForTree = exports.findMatchingConfigFiles = exports.readProjectConfigurationsFromRootMap = exports.mergeTargetConfigurations = exports.retrieveProjectConfigurationsWithAngularProjects = exports.calculateDefaultProjectName = exports.readNxJsonFromDisk = exports.parseExecutor = exports.getExecutorInformation = exports.createTempNpmDirectory = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/**
|
|
6
6
|
* Note to developers: STOP! These exports are available via requireNx in @nx/devkit.
|
|
@@ -61,3 +61,5 @@ var is_using_prettier_1 = require("./utils/is-using-prettier");
|
|
|
61
61
|
Object.defineProperty(exports, "isUsingPrettierInTree", { enumerable: true, get: function () { return is_using_prettier_1.isUsingPrettierInTree; } });
|
|
62
62
|
var fileutils_1 = require("./utils/fileutils");
|
|
63
63
|
Object.defineProperty(exports, "readYamlFile", { enumerable: true, get: function () { return fileutils_1.readYamlFile; } });
|
|
64
|
+
var spinner_1 = require("./utils/spinner");
|
|
65
|
+
Object.defineProperty(exports, "globalSpinner", { enumerable: true, get: function () { return spinner_1.globalSpinner; } });
|
|
@@ -181,9 +181,21 @@ function readAndCombineAllProjectConfigurations(tree) {
|
|
|
181
181
|
if ((0, path_1.basename)(projectFile) === 'project.json') {
|
|
182
182
|
const json = (0, json_1.readJson)(tree, projectFile);
|
|
183
183
|
const config = (0, project_json_1.buildProjectFromProjectJson)(json, projectFile);
|
|
184
|
+
if (!config.name) {
|
|
185
|
+
try {
|
|
186
|
+
const packageJson = (0, json_1.readJson)(tree, (0, path_2.joinPathFragments)(config.root, 'package.json'));
|
|
187
|
+
if (packageJson.name) {
|
|
188
|
+
config.name = packageJson.name;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
catch {
|
|
192
|
+
// Maybe no package json, is ok.
|
|
193
|
+
}
|
|
194
|
+
config.name ??= (0, to_project_name_1.toProjectName)(projectFile);
|
|
195
|
+
}
|
|
184
196
|
(0, project_configuration_utils_1.mergeProjectConfigurationIntoRootMap)(rootMap, config, undefined, undefined, true);
|
|
185
197
|
}
|
|
186
|
-
|
|
198
|
+
if ((0, path_1.basename)(projectFile) === 'package.json') {
|
|
187
199
|
const packageJson = (0, json_1.readJson)(tree, projectFile);
|
|
188
200
|
// We don't want to have all of the extra inferred stuff in here, as
|
|
189
201
|
// when generators update the project they shouldn't inline that stuff.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefix-outputs.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/migrations/update-15-0-0/prefix-outputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAgB7C,yBAA+B,IAAI,EAAE,IAAI,iBAoDxC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
4
|
+
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
5
|
+
const project_configuration_1 = require("../../generators/utils/project-configuration");
|
|
6
|
+
const nx_json_1 = require("../../generators/utils/nx-json");
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
const utils_1 = require("../../tasks-runner/utils");
|
|
9
|
+
const json_1 = require("../../generators/utils/json");
|
|
10
|
+
async function default_1(tree) {
|
|
11
|
+
// If the workspace doesn't have a nx.json, don't make any changes
|
|
12
|
+
if (!tree.exists('nx.json')) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const nxJson = (0, nx_json_1.readNxJson)(tree);
|
|
16
|
+
for (const [projectName, project] of (0, project_configuration_1.getProjects)(tree)) {
|
|
17
|
+
for (const [_, target] of Object.entries(project.targets ?? {})) {
|
|
18
|
+
if (!target.outputs) {
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
target.outputs = (0, utils_1.transformLegacyOutputs)(project.root, target.outputs);
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
(0, project_configuration_1.updateProjectConfiguration)(tree, projectName, project);
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
if (tree.exists((0, path_1.join)(project.root, 'package.json'))) {
|
|
28
|
+
(0, json_1.updateJson)(tree, (0, path_1.join)(project.root, 'package.json'), (json) => {
|
|
29
|
+
for (const target of Object.values(json.nx?.targets ?? {})) {
|
|
30
|
+
if (target.outputs) {
|
|
31
|
+
target.outputs = (0, utils_1.transformLegacyOutputs)(project.root, target.outputs);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return json;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (nxJson.targetDefaults) {
|
|
40
|
+
for (const [_, target] of Object.entries(nxJson.targetDefaults)) {
|
|
41
|
+
if (!target.outputs) {
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
target.outputs = (0, utils_1.transformLegacyOutputs)('{projectRoot}', target.outputs);
|
|
45
|
+
}
|
|
46
|
+
(0, nx_json_1.updateNxJson)(tree, nxJson);
|
|
47
|
+
}
|
|
48
|
+
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-nrwl-cli.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/migrations/update-16-0-0/remove-nrwl-cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAI7C,yBAA+B,IAAI,EAAE,IAAI,iBAYxC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
4
|
+
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
5
|
+
const json_1 = require("../../generators/utils/json");
|
|
6
|
+
async function default_1(tree) {
|
|
7
|
+
(0, json_1.updateJson)(tree, 'package.json', (json) => {
|
|
8
|
+
for (const deps of [json.dependencies, json.devDependencies]) {
|
|
9
|
+
if (deps) {
|
|
10
|
+
delete deps['@nrwl/cli'];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return json;
|
|
14
|
+
});
|
|
15
|
+
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-depends-on-to-tokens.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/migrations/update-16-0-0/update-depends-on-to-tokens.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,yBAA+B,IAAI,EAAE,IAAI,iBAyDxC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
4
|
+
const project_configuration_1 = require("../../generators/utils/project-configuration");
|
|
5
|
+
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
6
|
+
async function default_1(tree) {
|
|
7
|
+
updateDependsOnAndInputsInsideNxJson(tree);
|
|
8
|
+
const projectsConfigurations = (0, project_configuration_1.getProjects)(tree);
|
|
9
|
+
for (const [projectName, projectConfiguration] of projectsConfigurations) {
|
|
10
|
+
let projectChanged = false;
|
|
11
|
+
for (const [targetName, targetConfiguration] of Object.entries(projectConfiguration.targets ?? {})) {
|
|
12
|
+
for (const dependency of targetConfiguration.dependsOn ?? []) {
|
|
13
|
+
if (typeof dependency !== 'string') {
|
|
14
|
+
if (dependency.projects === 'self' ||
|
|
15
|
+
dependency.projects === '{self}') {
|
|
16
|
+
delete dependency.projects;
|
|
17
|
+
projectChanged = true;
|
|
18
|
+
}
|
|
19
|
+
else if (dependency.projects === 'dependencies' ||
|
|
20
|
+
dependency.projects === '{dependencies}') {
|
|
21
|
+
delete dependency.projects;
|
|
22
|
+
dependency.dependencies = true;
|
|
23
|
+
projectChanged = true;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
for (let i = 0; i < (targetConfiguration.inputs?.length ?? 0); i++) {
|
|
28
|
+
const input = targetConfiguration.inputs[i];
|
|
29
|
+
if (typeof input !== 'string') {
|
|
30
|
+
if ('projects' in input &&
|
|
31
|
+
(input.projects === 'self' || input.projects === '{self}')) {
|
|
32
|
+
delete input.projects;
|
|
33
|
+
projectChanged = true;
|
|
34
|
+
}
|
|
35
|
+
else if ('projects' in input &&
|
|
36
|
+
(input.projects === 'dependencies' ||
|
|
37
|
+
input.projects === '{dependencies}')) {
|
|
38
|
+
delete input.projects;
|
|
39
|
+
targetConfiguration.inputs[i] = {
|
|
40
|
+
...input,
|
|
41
|
+
dependencies: true,
|
|
42
|
+
};
|
|
43
|
+
projectChanged = true;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (projectChanged) {
|
|
49
|
+
(0, project_configuration_1.updateProjectConfiguration)(tree, projectName, projectConfiguration);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
53
|
+
}
|
|
54
|
+
function updateDependsOnAndInputsInsideNxJson(tree) {
|
|
55
|
+
const nxJson = (0, project_configuration_1.readNxJson)(tree);
|
|
56
|
+
let nxJsonChanged = false;
|
|
57
|
+
for (const [target, defaults] of Object.entries(nxJson?.targetDefaults ?? {})) {
|
|
58
|
+
for (const dependency of defaults.dependsOn ?? []) {
|
|
59
|
+
if (typeof dependency !== 'string') {
|
|
60
|
+
if (dependency.projects === 'self' ||
|
|
61
|
+
dependency.projects === '{self}') {
|
|
62
|
+
delete dependency.projects;
|
|
63
|
+
nxJsonChanged = true;
|
|
64
|
+
}
|
|
65
|
+
else if (dependency.projects === 'dependencies' ||
|
|
66
|
+
dependency.projects === '{dependencies}') {
|
|
67
|
+
delete dependency.projects;
|
|
68
|
+
dependency.dependencies = true;
|
|
69
|
+
nxJsonChanged = true;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
for (let i = 0; i < (defaults.inputs?.length ?? 0); i++) {
|
|
74
|
+
const input = defaults.inputs[i];
|
|
75
|
+
if (typeof input !== 'string') {
|
|
76
|
+
if ('projects' in input &&
|
|
77
|
+
(input.projects === 'self' || input.projects === '{self}')) {
|
|
78
|
+
delete input.projects;
|
|
79
|
+
nxJsonChanged = true;
|
|
80
|
+
}
|
|
81
|
+
else if ('projects' in input &&
|
|
82
|
+
(input.projects === 'dependencies' ||
|
|
83
|
+
input.projects === '{dependencies}')) {
|
|
84
|
+
delete input.projects;
|
|
85
|
+
defaults.inputs[i] = {
|
|
86
|
+
...input,
|
|
87
|
+
dependencies: true,
|
|
88
|
+
};
|
|
89
|
+
nxJsonChanged = true;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (nxJsonChanged) {
|
|
95
|
+
(0, project_configuration_1.updateNxJson)(tree, nxJson);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-nx-cloud-runner.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/migrations/update-16-0-0/update-nx-cloud-runner.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAI7C,yBAA+B,IAAI,EAAE,IAAI,iBAyBxC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
4
|
+
const project_configuration_1 = require("../../generators/utils/project-configuration");
|
|
5
|
+
const json_1 = require("../../generators/utils/json");
|
|
6
|
+
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
7
|
+
async function default_1(tree) {
|
|
8
|
+
(0, json_1.updateJson)(tree, 'package.json', (json) => {
|
|
9
|
+
if (json.dependencies && json.dependencies['@nrwl/nx-cloud']) {
|
|
10
|
+
json.dependencies['nx-cloud'] = json.dependencies['@nrwl/nx-cloud'];
|
|
11
|
+
delete json.dependencies['@nrwl/nx-cloud'];
|
|
12
|
+
}
|
|
13
|
+
if (json.devDependencies && json.devDependencies['@nrwl/nx-cloud']) {
|
|
14
|
+
json.devDependencies['nx-cloud'] = json.devDependencies['@nrwl/nx-cloud'];
|
|
15
|
+
delete json.devDependencies['@nrwl/nx-cloud'];
|
|
16
|
+
}
|
|
17
|
+
return json;
|
|
18
|
+
});
|
|
19
|
+
const nxJson = (0, project_configuration_1.readNxJson)(tree);
|
|
20
|
+
if (!nxJson)
|
|
21
|
+
return;
|
|
22
|
+
for (let opts of Object.values(nxJson.tasksRunnerOptions ?? {})) {
|
|
23
|
+
if (opts.runner === '@nrwl/nx-cloud') {
|
|
24
|
+
opts.runner = 'nx-cloud';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
(0, project_configuration_1.updateNxJson)(tree, nxJson);
|
|
28
|
+
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-run-commands-output-path.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/migrations/update-16-2-0/remove-run-commands-output-path.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAO7C,wBAA8B,2BAA2B,CAAC,IAAI,EAAE,IAAI,iBAoBnE"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = removeRunCommandsOutputPath;
|
|
4
|
+
const path_1 = require("../../utils/path");
|
|
5
|
+
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
6
|
+
const json_1 = require("../../generators/utils/json");
|
|
7
|
+
const project_configuration_1 = require("../../generators/utils/project-configuration");
|
|
8
|
+
async function removeRunCommandsOutputPath(tree) {
|
|
9
|
+
for (const [project, configuration] of (0, project_configuration_1.getProjects)(tree).entries()) {
|
|
10
|
+
const targets = configuration.targets ?? {};
|
|
11
|
+
let changed = false;
|
|
12
|
+
for (const [, target] of Object.entries(targets)) {
|
|
13
|
+
changed ||= updateTargetBlock(target);
|
|
14
|
+
}
|
|
15
|
+
if (changed) {
|
|
16
|
+
(0, project_configuration_1.updateProjectConfiguration)(tree, project, configuration);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
if (tree.exists('nx.json')) {
|
|
20
|
+
(0, json_1.updateJson)(tree, 'nx.json', (json) => {
|
|
21
|
+
for (const [, target] of Object.entries(json.targetDefaults ?? {})) {
|
|
22
|
+
updateTargetBlock(target);
|
|
23
|
+
}
|
|
24
|
+
return json;
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
28
|
+
}
|
|
29
|
+
function updateTargetBlock(target) {
|
|
30
|
+
let changed = false;
|
|
31
|
+
if (target.executor === 'nx:run-commands' && target.options?.outputPath) {
|
|
32
|
+
changed = true;
|
|
33
|
+
const outputs = new Set(target.outputs ?? []);
|
|
34
|
+
outputs.delete('{options.outputPath}');
|
|
35
|
+
const newOutputs = Array.isArray(target.options.outputPath)
|
|
36
|
+
? target.options.outputPath.map((p) => (0, path_1.joinPathFragments)('{workspaceRoot}', p))
|
|
37
|
+
: [(0, path_1.joinPathFragments)('{workspaceRoot}', target.options.outputPath)];
|
|
38
|
+
for (const outputPath of newOutputs) {
|
|
39
|
+
outputs.add(outputPath);
|
|
40
|
+
}
|
|
41
|
+
delete target.options.outputPath;
|
|
42
|
+
target.outputs = Array.from(outputs);
|
|
43
|
+
}
|
|
44
|
+
return changed;
|
|
45
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Tree } from '../../generators/tree';
|
|
2
|
+
/**
|
|
3
|
+
* This function escapes dollar sign in env variables
|
|
4
|
+
* It will go through:
|
|
5
|
+
* - '.env', '.local.env', '.env.local'
|
|
6
|
+
* - .env.[target-name], .[target-name].env
|
|
7
|
+
* - .env.[target-name].[configuration-name], .[target-name].[configuration-name].env
|
|
8
|
+
* - .env.[configuration-name], .[configuration-name].env
|
|
9
|
+
* at each project root and workspace root
|
|
10
|
+
* @param tree
|
|
11
|
+
*/
|
|
12
|
+
export default function escapeDollarSignEnvVariables(tree: Tree): void;
|
|
13
|
+
//# sourceMappingURL=escape-dollar-sign-env-variables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escape-dollar-sign-env-variables.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAC,IAAI,EAAE,IAAI,QAoC9D"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = escapeDollarSignEnvVariables;
|
|
4
|
+
const logger_1 = require("../../utils/logger");
|
|
5
|
+
const project_configuration_1 = require("../../generators/utils/project-configuration");
|
|
6
|
+
/**
|
|
7
|
+
* This function escapes dollar sign in env variables
|
|
8
|
+
* It will go through:
|
|
9
|
+
* - '.env', '.local.env', '.env.local'
|
|
10
|
+
* - .env.[target-name], .[target-name].env
|
|
11
|
+
* - .env.[target-name].[configuration-name], .[target-name].[configuration-name].env
|
|
12
|
+
* - .env.[configuration-name], .[configuration-name].env
|
|
13
|
+
* at each project root and workspace root
|
|
14
|
+
* @param tree
|
|
15
|
+
*/
|
|
16
|
+
function escapeDollarSignEnvVariables(tree) {
|
|
17
|
+
const envFiles = ['.env', '.local.env', '.env.local'];
|
|
18
|
+
for (const [_, configuration] of (0, project_configuration_1.getProjects)(tree).entries()) {
|
|
19
|
+
envFiles.push(`${configuration.root}/.env`, `${configuration.root}/.local.env`, `${configuration.root}/.env.local`);
|
|
20
|
+
for (const targetName in configuration.targets) {
|
|
21
|
+
const task = configuration.targets[targetName];
|
|
22
|
+
envFiles.push(`.env.${targetName}`, `.${targetName}.env`, `${configuration.root}/.env.${targetName}`, `${configuration.root}/.${targetName}.env`);
|
|
23
|
+
if (task.configurations) {
|
|
24
|
+
for (const configurationName in task.configurations) {
|
|
25
|
+
envFiles.push(`.env.${targetName}.${configurationName}`, `.${targetName}.${configurationName}.env`, `.env.${configurationName}`, `.${configurationName}.env`, `${configuration.root}/.env.${targetName}.${configurationName}`, `${configuration.root}/.${targetName}.${configurationName}.env`, `${configuration.root}/.env.${configurationName}`, `${configuration.root}/.${configurationName}.env`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
for (const envFile of new Set(envFiles)) {
|
|
31
|
+
parseEnvFile(tree, envFile);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* This function parse the env file and escape dollar sign
|
|
36
|
+
* @param tree
|
|
37
|
+
* @param envFilePath
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
function parseEnvFile(tree, envFilePath) {
|
|
41
|
+
if (!tree.exists(envFilePath)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
let envFileContent = tree.read(envFilePath, 'utf-8');
|
|
45
|
+
if (!envFileContent) {
|
|
46
|
+
// envFileContent is null if we fail to read the file for any reason
|
|
47
|
+
// e.g. the file is not utf-8 encoded
|
|
48
|
+
logger_1.logger.info(`Unable to update ${envFilePath}. Nx interpolates environment variables in the form of $VAR_NAME. To escape the dollar sign, use \\$VAR_NAME.`);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
envFileContent = envFileContent
|
|
52
|
+
.split('\n')
|
|
53
|
+
.map((line) => {
|
|
54
|
+
line = line.trim();
|
|
55
|
+
if (!line || !line.includes('$')) {
|
|
56
|
+
return line;
|
|
57
|
+
}
|
|
58
|
+
const declarations = line.split('=');
|
|
59
|
+
if (declarations[1].includes('$') && !declarations[1].includes(`\\$`)) {
|
|
60
|
+
declarations[1] = declarations[1].replace('$', `\\$`);
|
|
61
|
+
line = declarations.join('=');
|
|
62
|
+
}
|
|
63
|
+
return line;
|
|
64
|
+
})
|
|
65
|
+
.join('\n');
|
|
66
|
+
tree.write(envFilePath, envFileContent);
|
|
67
|
+
}
|
|
Binary file
|
|
@@ -125,7 +125,7 @@ function buildProjectConfigurationFromPackageJson(packageJson, workspaceRoot, pa
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
if (!packageJson.name && projectRoot === '.') {
|
|
128
|
+
if (!packageJson.name && projectRoot === '.' && !packageJson.nx?.name) {
|
|
129
129
|
throw new Error('Nx requires the root package.json to specify a name if it is being used as an Nx project.');
|
|
130
130
|
}
|
|
131
131
|
let name = packageJson.name ?? (0, to_project_name_1.toProjectName)(normalizedPath);
|
|
@@ -3,5 +3,4 @@ import { NxPluginV2 } from '../../../project-graph/plugins';
|
|
|
3
3
|
export declare const ProjectJsonProjectsPlugin: NxPluginV2;
|
|
4
4
|
export default ProjectJsonProjectsPlugin;
|
|
5
5
|
export declare function buildProjectFromProjectJson(json: Partial<ProjectConfiguration>, path: string): ProjectConfiguration;
|
|
6
|
-
export declare function readNameFromPackageJson(path: string): string;
|
|
7
6
|
//# sourceMappingURL=project-json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-json.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/plugins/project-json/build-nodes/project-json.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"project-json.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/plugins/project-json/build-nodes/project-json.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAEnF,OAAO,EAEL,UAAU,EACX,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,yBAAyB,EAAE,UAyBvC,CAAC;AAEF,eAAe,yBAAyB,CAAC;AAEzC,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,OAAO,CAAC,oBAAoB,CAAC,EACnC,IAAI,EAAE,MAAM,GACX,oBAAoB,CAOtB"}
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProjectJsonProjectsPlugin = void 0;
|
|
4
4
|
exports.buildProjectFromProjectJson = buildProjectFromProjectJson;
|
|
5
|
-
exports.readNameFromPackageJson = readNameFromPackageJson;
|
|
6
5
|
const node_path_1 = require("node:path");
|
|
7
|
-
const to_project_name_1 = require("../../../config/to-project-name");
|
|
8
6
|
const fileutils_1 = require("../../../utils/fileutils");
|
|
9
7
|
const plugins_1 = require("../../../project-graph/plugins");
|
|
10
8
|
exports.ProjectJsonProjectsPlugin = {
|
|
@@ -26,20 +24,10 @@ exports.ProjectJsonProjectsPlugin = {
|
|
|
26
24
|
};
|
|
27
25
|
exports.default = exports.ProjectJsonProjectsPlugin;
|
|
28
26
|
function buildProjectFromProjectJson(json, path) {
|
|
29
|
-
const packageJsonPath = (0, node_path_1.join)((0, node_path_1.dirname)(path), 'package.json');
|
|
30
27
|
const { name, root, ...rest } = json;
|
|
31
28
|
return {
|
|
32
|
-
name
|
|
29
|
+
name,
|
|
33
30
|
root: root ?? (0, node_path_1.dirname)(path),
|
|
34
31
|
...rest,
|
|
35
32
|
};
|
|
36
33
|
}
|
|
37
|
-
function readNameFromPackageJson(path) {
|
|
38
|
-
try {
|
|
39
|
-
const json = (0, fileutils_1.readJsonFile)(path);
|
|
40
|
-
return json.nx?.name ?? json.name;
|
|
41
|
-
}
|
|
42
|
-
catch {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -117,5 +117,5 @@ export type PostTasksExecution<TOptions = unknown> = (options: TOptions | undefi
|
|
|
117
117
|
/**
|
|
118
118
|
* A plugin which enhances the behavior of Nx
|
|
119
119
|
*/
|
|
120
|
-
export type NxPlugin = NxPluginV2
|
|
120
|
+
export type NxPlugin<TOptions = unknown> = NxPluginV2<TOptions>;
|
|
121
121
|
//# sourceMappingURL=public-api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/project-graph/plugins/public-api.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,OAAO,EACP,YAAY,EACZ,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAErF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAClD,QAAQ,CAAC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,EAAE,QAAQ,GAAG,SAAS,EAC7B,OAAO,EAAE,yBAAyB,KAC/B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAC1B;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,QAAQ,GAAG,OAAO,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-configuration-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/project-graph/utils/project-configuration-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACf,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"project-configuration-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/project-graph/utils/project-configuration-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACf,MAAM,0CAA0C,CAAC;AAUlD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAyB7D,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACtE,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAC1C,MAAM,EACN,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAClC,CAAC;AAEF,wBAAgB,oCAAoC,CAClD,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACpD,OAAO,EAAE,o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C,4BAiDlD"}
|
|
@@ -18,10 +18,12 @@ const workspace_root_1 = require("../../utils/workspace-root");
|
|
|
18
18
|
const minimatch_1 = require("minimatch");
|
|
19
19
|
const path_1 = require("path");
|
|
20
20
|
const perf_hooks_1 = require("perf_hooks");
|
|
21
|
+
const node_fs_1 = require("node:fs");
|
|
21
22
|
const error_types_1 = require("../error-types");
|
|
22
23
|
const globs_1 = require("../../utils/globs");
|
|
23
24
|
const delayed_spinner_1 = require("../../utils/delayed-spinner");
|
|
24
25
|
const executor_utils_1 = require("../../command-line/run/executor-utils");
|
|
26
|
+
const to_project_name_1 = require("../../config/to-project-name");
|
|
25
27
|
function mergeProjectConfigurationIntoRootMap(projectRootMap, project, configurationSourceMaps, sourceInformation,
|
|
26
28
|
// This function is used when reading project configuration
|
|
27
29
|
// in generators, where we don't want to do this.
|
|
@@ -442,6 +444,13 @@ function validateAndNormalizeProjectRootMap(workspaceRoot, projectRootMap, nxJso
|
|
|
442
444
|
// Strip it before returning configuration for usage.
|
|
443
445
|
if (project['// targets'])
|
|
444
446
|
delete project['// targets'];
|
|
447
|
+
// We initially did this in the project.json plugin, but
|
|
448
|
+
// that resulted in project.json files without names causing
|
|
449
|
+
// the resulting project to change names from earlier plugins...
|
|
450
|
+
if (!project.name &&
|
|
451
|
+
(0, node_fs_1.existsSync)((0, path_1.join)(workspaceRoot, project.root, 'project.json'))) {
|
|
452
|
+
project.name = (0, to_project_name_1.toProjectName)((0, path_1.join)(root, 'project.json'));
|
|
453
|
+
}
|
|
445
454
|
try {
|
|
446
455
|
validateProject(project, projects);
|
|
447
456
|
projects[project.name] = project;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-history-life-cycle-old.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/tasks-runner/life-cycles/task-history-life-cycle-old.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"task-history-life-cycle-old.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/tasks-runner/life-cycles/task-history-life-cycle-old.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAU/C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEtD,qBAAa,0BAA2B,YAAW,SAAS;IAC1D,OAAO,CAAC,YAAY,CAA8B;IAClD,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,UAAU,CAAW;IAE7B,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI;IAMzB,QAAQ,CAAC,WAAW,EAAE,UAAU,EAAE;IAgBlC,UAAU;IA2BhB,sBAAsB;CAmBvB"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LegacyTaskHistoryLifeCycle = void 0;
|
|
4
|
+
const nx_json_1 = require("../../config/nx-json");
|
|
4
5
|
const legacy_task_history_1 = require("../../utils/legacy-task-history");
|
|
6
|
+
const nx_cloud_utils_1 = require("../../utils/nx-cloud-utils");
|
|
5
7
|
const output_1 = require("../../utils/output");
|
|
6
8
|
const serialize_target_1 = require("../../utils/serialize-target");
|
|
7
9
|
const is_tui_enabled_1 = require("../is-tui-enabled");
|
|
@@ -52,8 +54,12 @@ class LegacyTaskHistoryLifeCycle {
|
|
|
52
54
|
bodyLines: [
|
|
53
55
|
,
|
|
54
56
|
...this.flakyTasks.map((t) => ` ${t}`),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
...((0, nx_cloud_utils_1.isNxCloudUsed)((0, nx_json_1.readNxJson)())
|
|
58
|
+
? []
|
|
59
|
+
: [
|
|
60
|
+
'',
|
|
61
|
+
`Flaky tasks can disrupt your CI pipeline. Automatically retry them with Nx Cloud. Learn more at https://nx.dev/ci/features/flaky-tasks`,
|
|
62
|
+
]),
|
|
57
63
|
],
|
|
58
64
|
});
|
|
59
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-history-life-cycle.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/tasks-runner/life-cycles/task-history-life-cycle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"task-history-life-cycle.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/tasks-runner/life-cycles/task-history-life-cycle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAO/C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAQ3E,wBAAgB,wBAAwB,IACpC,oBAAoB,GACpB,0BAA0B,CAQ7B;AAED,qBAAa,oBAAqB,YAAW,SAAS;IACpD,OAAO,CAAC,YAAY,CAA8B;IAClD,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,WAAW,CAAwC;IAC3D,OAAO,CAAC,UAAU,CAAW;;IAW7B,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI;IAMzB,QAAQ,CAAC,WAAW,EAAE,UAAU,EAAE;IAgBlC,UAAU;IAgBhB,sBAAsB;CA0BvB"}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TaskHistoryLifeCycle = void 0;
|
|
4
4
|
exports.getTasksHistoryLifeCycle = getTasksHistoryLifeCycle;
|
|
5
|
+
const nx_json_1 = require("../../config/nx-json");
|
|
5
6
|
const native_1 = require("../../native");
|
|
7
|
+
const nx_cloud_utils_1 = require("../../utils/nx-cloud-utils");
|
|
6
8
|
const output_1 = require("../../utils/output");
|
|
7
9
|
const serialize_target_1 = require("../../utils/serialize-target");
|
|
8
10
|
const task_history_1 = require("../../utils/task-history");
|
|
@@ -69,8 +71,12 @@ class TaskHistoryLifeCycle {
|
|
|
69
71
|
const taskRun = this.taskRuns.get(hash);
|
|
70
72
|
return ` ${(0, serialize_target_1.serializeTarget)(taskRun.target.project, taskRun.target.target, taskRun.target.configuration)}`;
|
|
71
73
|
}),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
...((0, nx_cloud_utils_1.isNxCloudUsed)((0, nx_json_1.readNxJson)())
|
|
75
|
+
? []
|
|
76
|
+
: [
|
|
77
|
+
'',
|
|
78
|
+
`Flaky tasks can disrupt your CI pipeline. Automatically retry them with Nx Cloud. Learn more at https://nx.dev/ci/features/flaky-tasks`,
|
|
79
|
+
]),
|
|
74
80
|
],
|
|
75
81
|
});
|
|
76
82
|
}
|