nx 23.0.0-rc.2 → 23.0.0-rc.3

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.
Binary file
@@ -248,7 +248,13 @@ function readTsConfigPaths(root = workspace_root_1.workspaceRoot) {
248
248
  .map((x) => path.join(root, x))
249
249
  .filter((x) => (0, node_fs_1.existsSync)(x))[0];
250
250
  if (!tsconfigPath) {
251
- throw new Error('unable to find tsconfig.base.json or tsconfig.json');
251
+ // Workspaces that wire up packages purely through package-manager
252
+ // workspaces + package.json exports have no root tsconfig — they simply
253
+ // have no tsconfig path mappings. Local plugin lookup must fall through
254
+ // to the package-metadata matching in `findNxProjectForImportPath`
255
+ // instead of failing the whole plugin load.
256
+ tsconfigPaths = {};
257
+ return tsconfigPaths;
252
258
  }
253
259
  const { compilerOptions } = (0, fileutils_1.readJsonFile)(tsconfigPath);
254
260
  tsconfigPaths = compilerOptions?.paths;
@@ -512,6 +512,12 @@ class TaskOrchestrator {
512
512
  (r.status === 'success' || r.status === 'failure'))
513
513
  .map((r) => r.task);
514
514
  if (tasksToRehash.length > 0) {
515
+ // hashTasks skips tasks that already have a hash — clear the
516
+ // preliminary hashes so these tasks actually get re-hashed
517
+ for (const task of tasksToRehash) {
518
+ task.hash = undefined;
519
+ task.hashDetails = undefined;
520
+ }
515
521
  await this.hashBatchTasks(tasksToRehash);
516
522
  }
517
523
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "23.0.0-rc.2",
3
+ "version": "23.0.0-rc.3",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
@@ -172,16 +172,16 @@
172
172
  }
173
173
  },
174
174
  "optionalDependencies": {
175
- "@nx/nx-darwin-arm64": "23.0.0-rc.2",
176
- "@nx/nx-darwin-x64": "23.0.0-rc.2",
177
- "@nx/nx-freebsd-x64": "23.0.0-rc.2",
178
- "@nx/nx-linux-arm-gnueabihf": "23.0.0-rc.2",
179
- "@nx/nx-linux-arm64-gnu": "23.0.0-rc.2",
180
- "@nx/nx-linux-arm64-musl": "23.0.0-rc.2",
181
- "@nx/nx-linux-x64-gnu": "23.0.0-rc.2",
182
- "@nx/nx-linux-x64-musl": "23.0.0-rc.2",
183
- "@nx/nx-win32-arm64-msvc": "23.0.0-rc.2",
184
- "@nx/nx-win32-x64-msvc": "23.0.0-rc.2"
175
+ "@nx/nx-darwin-arm64": "23.0.0-rc.3",
176
+ "@nx/nx-darwin-x64": "23.0.0-rc.3",
177
+ "@nx/nx-freebsd-x64": "23.0.0-rc.3",
178
+ "@nx/nx-linux-arm-gnueabihf": "23.0.0-rc.3",
179
+ "@nx/nx-linux-arm64-gnu": "23.0.0-rc.3",
180
+ "@nx/nx-linux-arm64-musl": "23.0.0-rc.3",
181
+ "@nx/nx-linux-x64-gnu": "23.0.0-rc.3",
182
+ "@nx/nx-linux-x64-musl": "23.0.0-rc.3",
183
+ "@nx/nx-win32-arm64-msvc": "23.0.0-rc.3",
184
+ "@nx/nx-win32-x64-msvc": "23.0.0-rc.3"
185
185
  },
186
186
  "nx-migrations": {
187
187
  "migrations": "./migrations.json",