nx 20.1.0 → 20.1.1
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "20.1.
|
3
|
+
"version": "20.1.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": {
|
@@ -80,16 +80,16 @@
|
|
80
80
|
}
|
81
81
|
},
|
82
82
|
"optionalDependencies": {
|
83
|
-
"@nx/nx-darwin-x64": "20.1.
|
84
|
-
"@nx/nx-darwin-arm64": "20.1.
|
85
|
-
"@nx/nx-linux-x64-gnu": "20.1.
|
86
|
-
"@nx/nx-linux-x64-musl": "20.1.
|
87
|
-
"@nx/nx-win32-x64-msvc": "20.1.
|
88
|
-
"@nx/nx-linux-arm64-gnu": "20.1.
|
89
|
-
"@nx/nx-linux-arm64-musl": "20.1.
|
90
|
-
"@nx/nx-linux-arm-gnueabihf": "20.1.
|
91
|
-
"@nx/nx-win32-arm64-msvc": "20.1.
|
92
|
-
"@nx/nx-freebsd-x64": "20.1.
|
83
|
+
"@nx/nx-darwin-x64": "20.1.1",
|
84
|
+
"@nx/nx-darwin-arm64": "20.1.1",
|
85
|
+
"@nx/nx-linux-x64-gnu": "20.1.1",
|
86
|
+
"@nx/nx-linux-x64-musl": "20.1.1",
|
87
|
+
"@nx/nx-win32-x64-msvc": "20.1.1",
|
88
|
+
"@nx/nx-linux-arm64-gnu": "20.1.1",
|
89
|
+
"@nx/nx-linux-arm64-musl": "20.1.1",
|
90
|
+
"@nx/nx-linux-arm-gnueabihf": "20.1.1",
|
91
|
+
"@nx/nx-win32-arm64-msvc": "20.1.1",
|
92
|
+
"@nx/nx-freebsd-x64": "20.1.1"
|
93
93
|
},
|
94
94
|
"nx-migrations": {
|
95
95
|
"migrations": "./migrations.json",
|
@@ -21,6 +21,7 @@ const fs_1 = require("fs");
|
|
21
21
|
const connect_to_nx_cloud_1 = require("../../../nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud");
|
22
22
|
const url_shorten_1 = require("../../../nx-cloud/utilities/url-shorten");
|
23
23
|
const connect_to_nx_cloud_2 = require("../../connect/connect-to-nx-cloud");
|
24
|
+
const default_base_1 = require("../../../utils/default-base");
|
24
25
|
function createNxJsonFile(repoRoot, topologicalTargets, cacheableOperations, scriptOutputs) {
|
25
26
|
const nxJsonPath = (0, path_2.joinPathFragments)(repoRoot, 'nx.json');
|
26
27
|
let nxJson = {};
|
@@ -88,7 +89,16 @@ function deduceDefaultBase() {
|
|
88
89
|
return 'next';
|
89
90
|
}
|
90
91
|
catch {
|
91
|
-
|
92
|
+
try {
|
93
|
+
(0, child_process_1.execSync)(`git rev-parse --verify master`, {
|
94
|
+
stdio: ['ignore', 'ignore', 'ignore'],
|
95
|
+
windowsHide: false,
|
96
|
+
});
|
97
|
+
return 'master';
|
98
|
+
}
|
99
|
+
catch {
|
100
|
+
return (0, default_base_1.deduceDefaultBase)();
|
101
|
+
}
|
92
102
|
}
|
93
103
|
}
|
94
104
|
}
|
package/src/daemon/tmp-dir.js
CHANGED
@@ -43,7 +43,7 @@ function isDaemonDisabled() {
|
|
43
43
|
function socketDirName() {
|
44
44
|
const hasher = (0, crypto_1.createHash)('sha256');
|
45
45
|
hasher.update(workspace_root_1.workspaceRoot.toLowerCase());
|
46
|
-
const unique = hasher.digest('hex').substring(0,
|
46
|
+
const unique = hasher.digest('hex').substring(0, 10);
|
47
47
|
return (0, path_1.join)(tmp_1.tmpdir, unique);
|
48
48
|
}
|
49
49
|
/**
|
Binary file
|
@@ -140,7 +140,11 @@ class ProcessTasks {
|
|
140
140
|
}
|
141
141
|
}
|
142
142
|
else {
|
143
|
-
|
143
|
+
// Create a dummy task for task.target.project... which simulates if depProject had dependencyConfig.target
|
144
|
+
const dummyId = this.getId(depProject.name, task.target.project +
|
145
|
+
'__' +
|
146
|
+
dependencyConfig.target +
|
147
|
+
DUMMY_TASK_TARGET, undefined);
|
144
148
|
this.dependencies[task.id].push(dummyId);
|
145
149
|
this.dependencies[dummyId] ??= [];
|
146
150
|
const noopTask = this.createDummyTask(dummyId, task);
|