nx 19.2.0-canary.20240601-6f22300 → 19.2.0-canary.20240604-0594deb
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/post-install.js +8 -8
- package/package.json +12 -12
- package/src/daemon/server/plugins.js +1 -0
package/bin/post-install.js
CHANGED
@@ -11,8 +11,10 @@ const get_cloud_options_1 = require("../src/nx-cloud/utilities/get-cloud-options
|
|
11
11
|
const nx_cloud_utils_1 = require("../src/utils/nx-cloud-utils");
|
12
12
|
const nx_json_1 = require("../src/config/nx-json");
|
13
13
|
const workspace_context_1 = require("../src/utils/workspace-context");
|
14
|
+
const logger_1 = require("../src/utils/logger");
|
14
15
|
(async () => {
|
15
16
|
const start = new Date();
|
17
|
+
let errored = false;
|
16
18
|
try {
|
17
19
|
(0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
|
18
20
|
if (isMainNxPackage() && (0, fileutils_1.fileExists)((0, path_1.join)(workspace_root_1.workspaceRoot, 'nx.json'))) {
|
@@ -28,7 +30,7 @@ const workspace_context_1 = require("../src/utils/workspace-context");
|
|
28
30
|
tasks.push((0, update_manager_1.verifyOrUpdateNxCloudClient)((0, get_cloud_options_1.getCloudOptions)()));
|
29
31
|
}
|
30
32
|
await Promise.all(tasks.map((promise) => {
|
31
|
-
promise.catch((e) => {
|
33
|
+
return promise.catch((e) => {
|
32
34
|
if (process.env.NX_VERBOSE_LOGGING === 'true') {
|
33
35
|
console.warn(e);
|
34
36
|
}
|
@@ -37,15 +39,13 @@ const workspace_context_1 = require("../src/utils/workspace-context");
|
|
37
39
|
}
|
38
40
|
}
|
39
41
|
catch (e) {
|
40
|
-
|
41
|
-
|
42
|
-
}
|
42
|
+
errored = true;
|
43
|
+
logger_1.logger.verbose(e);
|
43
44
|
}
|
44
45
|
finally {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
}
|
46
|
+
const end = new Date();
|
47
|
+
logger_1.logger.verbose(`Nx postinstall steps took ${end.getTime() - start.getTime()}ms`);
|
48
|
+
process.exit(errored ? 1 : 0);
|
49
49
|
}
|
50
50
|
})();
|
51
51
|
function isMainNxPackage() {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "19.2.0-canary.
|
3
|
+
"version": "19.2.0-canary.20240604-0594deb",
|
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": {
|
@@ -69,7 +69,7 @@
|
|
69
69
|
"yargs-parser": "21.1.1",
|
70
70
|
"node-machine-id": "1.1.12",
|
71
71
|
"ora": "5.3.0",
|
72
|
-
"@nrwl/tao": "19.2.0-canary.
|
72
|
+
"@nrwl/tao": "19.2.0-canary.20240604-0594deb"
|
73
73
|
},
|
74
74
|
"peerDependencies": {
|
75
75
|
"@swc-node/register": "^1.8.0",
|
@@ -84,16 +84,16 @@
|
|
84
84
|
}
|
85
85
|
},
|
86
86
|
"optionalDependencies": {
|
87
|
-
"@nx/nx-darwin-x64": "19.2.0-canary.
|
88
|
-
"@nx/nx-darwin-arm64": "19.2.0-canary.
|
89
|
-
"@nx/nx-linux-x64-gnu": "19.2.0-canary.
|
90
|
-
"@nx/nx-linux-x64-musl": "19.2.0-canary.
|
91
|
-
"@nx/nx-win32-x64-msvc": "19.2.0-canary.
|
92
|
-
"@nx/nx-linux-arm64-gnu": "19.2.0-canary.
|
93
|
-
"@nx/nx-linux-arm64-musl": "19.2.0-canary.
|
94
|
-
"@nx/nx-linux-arm-gnueabihf": "19.2.0-canary.
|
95
|
-
"@nx/nx-win32-arm64-msvc": "19.2.0-canary.
|
96
|
-
"@nx/nx-freebsd-x64": "19.2.0-canary.
|
87
|
+
"@nx/nx-darwin-x64": "19.2.0-canary.20240604-0594deb",
|
88
|
+
"@nx/nx-darwin-arm64": "19.2.0-canary.20240604-0594deb",
|
89
|
+
"@nx/nx-linux-x64-gnu": "19.2.0-canary.20240604-0594deb",
|
90
|
+
"@nx/nx-linux-x64-musl": "19.2.0-canary.20240604-0594deb",
|
91
|
+
"@nx/nx-win32-x64-msvc": "19.2.0-canary.20240604-0594deb",
|
92
|
+
"@nx/nx-linux-arm64-gnu": "19.2.0-canary.20240604-0594deb",
|
93
|
+
"@nx/nx-linux-arm64-musl": "19.2.0-canary.20240604-0594deb",
|
94
|
+
"@nx/nx-linux-arm-gnueabihf": "19.2.0-canary.20240604-0594deb",
|
95
|
+
"@nx/nx-win32-arm64-msvc": "19.2.0-canary.20240604-0594deb",
|
96
|
+
"@nx/nx-freebsd-x64": "19.2.0-canary.20240604-0594deb"
|
97
97
|
},
|
98
98
|
"nx-migrations": {
|
99
99
|
"migrations": "./migrations.json",
|
@@ -13,6 +13,7 @@ async function getPlugins() {
|
|
13
13
|
const pluginsConfiguration = (0, nx_json_1.readNxJson)().plugins ?? [];
|
14
14
|
const [result, cleanupFn] = await (0, internal_api_1.loadNxPlugins)(pluginsConfiguration, workspace_root_1.workspaceRoot);
|
15
15
|
cleanup = cleanupFn;
|
16
|
+
loadedPlugins = result;
|
16
17
|
return result;
|
17
18
|
}
|
18
19
|
exports.getPlugins = getPlugins;
|