nx 16.5.4 → 16.5.5
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/migrations.json
CHANGED
|
@@ -77,12 +77,6 @@
|
|
|
77
77
|
"version": "16.2.0-beta.0",
|
|
78
78
|
"description": "Remove outputPath from run commands",
|
|
79
79
|
"implementation": "./src/migrations/update-16-2-0/remove-run-commands-output-path"
|
|
80
|
-
},
|
|
81
|
-
"16.5.4-update-output-globs": {
|
|
82
|
-
"cli": "nx",
|
|
83
|
-
"version": "16.5.4-beta.0",
|
|
84
|
-
"description": "Update outdated non-standard globs to unix standard",
|
|
85
|
-
"implementation": "./src/migrations/update-16-5-4/update-output-globs"
|
|
86
80
|
}
|
|
87
81
|
}
|
|
88
82
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "16.5.
|
|
3
|
+
"version": "16.5.5",
|
|
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.5.
|
|
35
|
+
"@nrwl/tao": "16.5.5",
|
|
36
36
|
"@parcel/watcher": "2.0.4",
|
|
37
37
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
38
38
|
"@yarnpkg/parsers": "3.0.0-rc.46",
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"optionalDependencies": {
|
|
83
|
-
"@nx/nx-darwin-arm64": "16.5.
|
|
84
|
-
"@nx/nx-darwin-x64": "16.5.
|
|
85
|
-
"@nx/nx-freebsd-x64": "16.5.
|
|
86
|
-
"@nx/nx-linux-arm-gnueabihf": "16.5.
|
|
87
|
-
"@nx/nx-linux-arm64-gnu": "16.5.
|
|
88
|
-
"@nx/nx-linux-arm64-musl": "16.5.
|
|
89
|
-
"@nx/nx-linux-x64-gnu": "16.5.
|
|
90
|
-
"@nx/nx-linux-x64-musl": "16.5.
|
|
91
|
-
"@nx/nx-win32-arm64-msvc": "16.5.
|
|
92
|
-
"@nx/nx-win32-x64-msvc": "16.5.
|
|
83
|
+
"@nx/nx-darwin-arm64": "16.5.5",
|
|
84
|
+
"@nx/nx-darwin-x64": "16.5.5",
|
|
85
|
+
"@nx/nx-freebsd-x64": "16.5.5",
|
|
86
|
+
"@nx/nx-linux-arm-gnueabihf": "16.5.5",
|
|
87
|
+
"@nx/nx-linux-arm64-gnu": "16.5.5",
|
|
88
|
+
"@nx/nx-linux-arm64-musl": "16.5.5",
|
|
89
|
+
"@nx/nx-linux-x64-gnu": "16.5.5",
|
|
90
|
+
"@nx/nx-linux-x64-musl": "16.5.5",
|
|
91
|
+
"@nx/nx-win32-arm64-msvc": "16.5.5",
|
|
92
|
+
"@nx/nx-win32-x64-msvc": "16.5.5"
|
|
93
93
|
},
|
|
94
94
|
"nx-migrations": {
|
|
95
95
|
"migrations": "./migrations.json",
|
|
@@ -175,5 +175,5 @@
|
|
|
175
175
|
},
|
|
176
176
|
"main": "./bin/nx.js",
|
|
177
177
|
"types": "./bin/nx.d.ts",
|
|
178
|
-
"gitHead": "
|
|
178
|
+
"gitHead": "0c04ed41e7ccb7da5bcad86600e4159a6c3fb526"
|
|
179
179
|
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
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
|
-
const json_1 = require("../../generators/utils/json");
|
|
7
|
-
function replaceOutput(output) {
|
|
8
|
-
// replace {projectRoot}/folder/*.(js|map|ts) to {projectRoot}/folder/*.{js,map,ts}
|
|
9
|
-
const regex = /\(([^)]+)\)/g;
|
|
10
|
-
return output.replace(regex, (match, group1) => {
|
|
11
|
-
let replacements = group1.split('|').join(',');
|
|
12
|
-
return `{${replacements}}`;
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
function updateOutputsGlobs(tree) {
|
|
16
|
-
var _a;
|
|
17
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
18
|
-
for (const [projectName, projectConfiguration] of (0, project_configuration_1.getProjects)(tree).entries()) {
|
|
19
|
-
for (const [targetName, targetConfiguration] of Object.entries((_a = projectConfiguration.targets) !== null && _a !== void 0 ? _a : {})) {
|
|
20
|
-
if (!Array.isArray(targetConfiguration.outputs)) {
|
|
21
|
-
continue;
|
|
22
|
-
}
|
|
23
|
-
targetConfiguration.outputs =
|
|
24
|
-
targetConfiguration.outputs.map(replaceOutput);
|
|
25
|
-
}
|
|
26
|
-
(0, project_configuration_1.updateProjectConfiguration)(tree, projectName, projectConfiguration);
|
|
27
|
-
}
|
|
28
|
-
if (tree.exists('nx.json')) {
|
|
29
|
-
(0, json_1.updateJson)(tree, 'nx.json', (json) => {
|
|
30
|
-
var _a;
|
|
31
|
-
for (const [, targetConfiguration] of Object.entries((_a = json.targetDefaults) !== null && _a !== void 0 ? _a : {})) {
|
|
32
|
-
if (!Array.isArray(targetConfiguration.outputs)) {
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
targetConfiguration.outputs =
|
|
36
|
-
targetConfiguration.outputs.map(replaceOutput);
|
|
37
|
-
}
|
|
38
|
-
return json;
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
yield (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
exports.default = updateOutputsGlobs;
|