nx 19.2.0-rc.1 → 19.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/init-local.js +0 -3
- package/bin/post-install.js +1 -3
- package/package.json +12 -12
- package/src/command-line/init/implementation/utils.js +15 -2
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/daemon/client/client.js +0 -2
- package/src/executors/run-commands/run-commands.impl.d.ts +1 -1
- package/src/executors/run-commands/run-commands.impl.js +37 -11
- package/src/project-graph/plugins/isolation/plugin-pool.js +2 -5
package/bin/init-local.js
CHANGED
@@ -77,9 +77,6 @@ function rewriteTargetsAndProjects(args) {
|
|
77
77
|
return newArgs;
|
78
78
|
}
|
79
79
|
exports.rewriteTargetsAndProjects = rewriteTargetsAndProjects;
|
80
|
-
function wrapIntoQuotesIfNeeded(arg) {
|
81
|
-
return arg.indexOf(':') > -1 ? `"${arg}"` : arg;
|
82
|
-
}
|
83
80
|
function isKnownCommand(command) {
|
84
81
|
const commands = [
|
85
82
|
...Object.keys(nx_commands_1.commandsObject
|
package/bin/post-install.js
CHANGED
@@ -14,7 +14,6 @@ const workspace_context_1 = require("../src/utils/workspace-context");
|
|
14
14
|
const logger_1 = require("../src/utils/logger");
|
15
15
|
(async () => {
|
16
16
|
const start = new Date();
|
17
|
-
let errored = false;
|
18
17
|
try {
|
19
18
|
(0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
|
20
19
|
if (isMainNxPackage() && (0, fileutils_1.fileExists)((0, path_1.join)(workspace_root_1.workspaceRoot, 'nx.json'))) {
|
@@ -39,13 +38,12 @@ const logger_1 = require("../src/utils/logger");
|
|
39
38
|
}
|
40
39
|
}
|
41
40
|
catch (e) {
|
42
|
-
errored = true;
|
43
41
|
logger_1.logger.verbose(e);
|
44
42
|
}
|
45
43
|
finally {
|
46
44
|
const end = new Date();
|
47
45
|
logger_1.logger.verbose(`Nx postinstall steps took ${end.getTime() - start.getTime()}ms`);
|
48
|
-
process.exit(
|
46
|
+
process.exit(0);
|
49
47
|
}
|
50
48
|
})();
|
51
49
|
function isMainNxPackage() {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "19.2.
|
3
|
+
"version": "19.2.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": {
|
@@ -70,7 +70,7 @@
|
|
70
70
|
"yargs-parser": "21.1.1",
|
71
71
|
"node-machine-id": "1.1.12",
|
72
72
|
"ora": "5.3.0",
|
73
|
-
"@nrwl/tao": "19.2.
|
73
|
+
"@nrwl/tao": "19.2.1"
|
74
74
|
},
|
75
75
|
"peerDependencies": {
|
76
76
|
"@swc-node/register": "^1.8.0",
|
@@ -85,16 +85,16 @@
|
|
85
85
|
}
|
86
86
|
},
|
87
87
|
"optionalDependencies": {
|
88
|
-
"@nx/nx-darwin-x64": "19.2.
|
89
|
-
"@nx/nx-darwin-arm64": "19.2.
|
90
|
-
"@nx/nx-linux-x64-gnu": "19.2.
|
91
|
-
"@nx/nx-linux-x64-musl": "19.2.
|
92
|
-
"@nx/nx-win32-x64-msvc": "19.2.
|
93
|
-
"@nx/nx-linux-arm64-gnu": "19.2.
|
94
|
-
"@nx/nx-linux-arm64-musl": "19.2.
|
95
|
-
"@nx/nx-linux-arm-gnueabihf": "19.2.
|
96
|
-
"@nx/nx-win32-arm64-msvc": "19.2.
|
97
|
-
"@nx/nx-freebsd-x64": "19.2.
|
88
|
+
"@nx/nx-darwin-x64": "19.2.1",
|
89
|
+
"@nx/nx-darwin-arm64": "19.2.1",
|
90
|
+
"@nx/nx-linux-x64-gnu": "19.2.1",
|
91
|
+
"@nx/nx-linux-x64-musl": "19.2.1",
|
92
|
+
"@nx/nx-win32-x64-msvc": "19.2.1",
|
93
|
+
"@nx/nx-linux-arm64-gnu": "19.2.1",
|
94
|
+
"@nx/nx-linux-arm64-musl": "19.2.1",
|
95
|
+
"@nx/nx-linux-arm-gnueabihf": "19.2.1",
|
96
|
+
"@nx/nx-win32-arm64-msvc": "19.2.1",
|
97
|
+
"@nx/nx-freebsd-x64": "19.2.1"
|
98
98
|
},
|
99
99
|
"nx-migrations": {
|
100
100
|
"migrations": "./migrations.json",
|
@@ -98,10 +98,23 @@ function updateGitIgnore(root) {
|
|
98
98
|
const ignorePath = (0, path_1.join)(root, '.gitignore');
|
99
99
|
try {
|
100
100
|
let contents = (0, fs_1.readFileSync)(ignorePath, 'utf-8');
|
101
|
+
const lines = contents.split('\n');
|
102
|
+
let sepIncluded = false;
|
101
103
|
if (!contents.includes('.nx/cache')) {
|
102
|
-
|
103
|
-
|
104
|
+
if (!sepIncluded) {
|
105
|
+
lines.push('\n');
|
106
|
+
sepIncluded = true;
|
107
|
+
}
|
108
|
+
lines.push('.nx/cache');
|
109
|
+
}
|
110
|
+
if (!contents.includes('.nx/workspace-data')) {
|
111
|
+
if (!sepIncluded) {
|
112
|
+
lines.push('\n');
|
113
|
+
sepIncluded = true;
|
114
|
+
}
|
115
|
+
lines.push('.nx/workspace-data');
|
104
116
|
}
|
117
|
+
(0, fs_1.writeFileSync)(ignorePath, lines.join('\n'), 'utf-8');
|
105
118
|
}
|
106
119
|
catch { }
|
107
120
|
}
|