nx 18.1.0-canary.20240217-5b6d1b4 → 18.1.0-canary.20240221-abc0cf8
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/package.json +12 -12
- package/src/command-line/add/add.js +3 -1
- package/src/command-line/migrate/command-object.js +17 -2
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/polyfills.js +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/plugins/target-defaults/target-defaults-plugin.js +4 -8
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +20 -23
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +16 -16
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +1 -1
- package/src/tasks-runner/life-cycles/view-logs-utils.js +1 -1
- package/src/utils/logger.js +1 -1
- package/src/utils/output.d.ts +0 -1
- package/src/utils/output.js +6 -7
- package/src/utils/package-json.d.ts +1 -1
- package/src/utils/package-json.js +10 -9
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "18.1.0-canary.
|
3
|
+
"version": "18.1.0-canary.20240221-abc0cf8",
|
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": {
|
@@ -66,7 +66,7 @@
|
|
66
66
|
"yargs-parser": "21.1.1",
|
67
67
|
"node-machine-id": "1.1.12",
|
68
68
|
"ora": "5.3.0",
|
69
|
-
"@nrwl/tao": "18.1.0-canary.
|
69
|
+
"@nrwl/tao": "18.1.0-canary.20240221-abc0cf8"
|
70
70
|
},
|
71
71
|
"peerDependencies": {
|
72
72
|
"@swc-node/register": "^1.8.0",
|
@@ -81,16 +81,16 @@
|
|
81
81
|
}
|
82
82
|
},
|
83
83
|
"optionalDependencies": {
|
84
|
-
"@nx/nx-darwin-x64": "18.1.0-canary.
|
85
|
-
"@nx/nx-darwin-arm64": "18.1.0-canary.
|
86
|
-
"@nx/nx-linux-x64-gnu": "18.1.0-canary.
|
87
|
-
"@nx/nx-linux-x64-musl": "18.1.0-canary.
|
88
|
-
"@nx/nx-win32-x64-msvc": "18.1.0-canary.
|
89
|
-
"@nx/nx-linux-arm64-gnu": "18.1.0-canary.
|
90
|
-
"@nx/nx-linux-arm64-musl": "18.1.0-canary.
|
91
|
-
"@nx/nx-linux-arm-gnueabihf": "18.1.0-canary.
|
92
|
-
"@nx/nx-win32-arm64-msvc": "18.1.0-canary.
|
93
|
-
"@nx/nx-freebsd-x64": "18.1.0-canary.
|
84
|
+
"@nx/nx-darwin-x64": "18.1.0-canary.20240221-abc0cf8",
|
85
|
+
"@nx/nx-darwin-arm64": "18.1.0-canary.20240221-abc0cf8",
|
86
|
+
"@nx/nx-linux-x64-gnu": "18.1.0-canary.20240221-abc0cf8",
|
87
|
+
"@nx/nx-linux-x64-musl": "18.1.0-canary.20240221-abc0cf8",
|
88
|
+
"@nx/nx-win32-x64-msvc": "18.1.0-canary.20240221-abc0cf8",
|
89
|
+
"@nx/nx-linux-arm64-gnu": "18.1.0-canary.20240221-abc0cf8",
|
90
|
+
"@nx/nx-linux-arm64-musl": "18.1.0-canary.20240221-abc0cf8",
|
91
|
+
"@nx/nx-linux-arm-gnueabihf": "18.1.0-canary.20240221-abc0cf8",
|
92
|
+
"@nx/nx-win32-arm64-msvc": "18.1.0-canary.20240221-abc0cf8",
|
93
|
+
"@nx/nx-freebsd-x64": "18.1.0-canary.20240221-abc0cf8"
|
94
94
|
},
|
95
95
|
"nx-migrations": {
|
96
96
|
"migrations": "./migrations.json",
|
@@ -100,7 +100,9 @@ async function initializePlugin(pkgName, options) {
|
|
100
100
|
process.env.NX_ADD_PLUGINS !== 'false' &&
|
101
101
|
coreNxPlugins.includes(pkgName);
|
102
102
|
}
|
103
|
-
await (0, child_process_2.runNxAsync)(`g ${pkgName}:${initGenerator} --keepExistingVersions${updatePackageScripts ? ' --updatePackageScripts' : ''}
|
103
|
+
await (0, child_process_2.runNxAsync)(`g ${pkgName}:${initGenerator} --keepExistingVersions${updatePackageScripts ? ' --updatePackageScripts' : ''}`, {
|
104
|
+
silent: !options.verbose,
|
105
|
+
});
|
104
106
|
}
|
105
107
|
catch (e) {
|
106
108
|
spinner.fail();
|
@@ -110,7 +110,8 @@ function runMigration() {
|
|
110
110
|
function nxCliPath() {
|
111
111
|
const version = process.env.NX_MIGRATE_CLI_VERSION || 'latest';
|
112
112
|
try {
|
113
|
-
const packageManager = (0, package_manager_1.
|
113
|
+
const packageManager = (0, package_manager_1.detectPackageManager)();
|
114
|
+
const pmc = (0, package_manager_1.getPackageManagerCommand)(packageManager);
|
114
115
|
const { dirSync } = require('tmp');
|
115
116
|
const tmpDir = dirSync().name;
|
116
117
|
(0, fileutils_1.writeJsonFile)(path.join(tmpDir, 'package.json'), {
|
@@ -119,7 +120,21 @@ function nxCliPath() {
|
|
119
120
|
},
|
120
121
|
license: 'MIT',
|
121
122
|
});
|
122
|
-
(
|
123
|
+
if (pmc.preInstall) {
|
124
|
+
// ensure package.json and repo in tmp folder is set to a proper package manager state
|
125
|
+
(0, child_process_2.execSync)(pmc.preInstall, {
|
126
|
+
cwd: tmpDir,
|
127
|
+
stdio: ['ignore', 'ignore', 'ignore'],
|
128
|
+
});
|
129
|
+
// if it's berry ensure we set the node_linker to node-modules
|
130
|
+
if (packageManager === 'yarn' && pmc.ciInstall.includes('immutable')) {
|
131
|
+
(0, child_process_2.execSync)(pmc.preInstall, {
|
132
|
+
cwd: 'yarn config set nodeLinker node-modules',
|
133
|
+
stdio: ['ignore', 'ignore', 'ignore'],
|
134
|
+
});
|
135
|
+
}
|
136
|
+
}
|
137
|
+
(0, child_process_2.execSync)(pmc.install, {
|
123
138
|
cwd: tmpDir,
|
124
139
|
stdio: ['ignore', 'ignore', 'ignore'],
|
125
140
|
});
|