nx 18.1.0-canary.20240220-003b961 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "18.1.0-canary.20240220-003b961",
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.20240220-003b961"
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.20240220-003b961",
85
- "@nx/nx-darwin-arm64": "18.1.0-canary.20240220-003b961",
86
- "@nx/nx-linux-x64-gnu": "18.1.0-canary.20240220-003b961",
87
- "@nx/nx-linux-x64-musl": "18.1.0-canary.20240220-003b961",
88
- "@nx/nx-win32-x64-msvc": "18.1.0-canary.20240220-003b961",
89
- "@nx/nx-linux-arm64-gnu": "18.1.0-canary.20240220-003b961",
90
- "@nx/nx-linux-arm64-musl": "18.1.0-canary.20240220-003b961",
91
- "@nx/nx-linux-arm-gnueabihf": "18.1.0-canary.20240220-003b961",
92
- "@nx/nx-win32-arm64-msvc": "18.1.0-canary.20240220-003b961",
93
- "@nx/nx-freebsd-x64": "18.1.0-canary.20240220-003b961"
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",
@@ -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.getPackageManagerCommand)();
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
- (0, child_process_2.execSync)(packageManager.install, {
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
  });