@unisphere/nx 4.5.4 → 4.5.5

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.
@@ -2,9 +2,10 @@
2
2
  * Migration: Pre-cleanup Empty Directories
3
3
  *
4
4
  * This migration runs before the reorganize migrations to:
5
- * 1. Check Nx version is 22 or higher
6
- * 2. Reset Nx cache to ensure fresh project graph
7
- * 3. Clean up any existing empty directories that might block the migration flow
5
+ * 1. Patch chalk for tslib >=2.8 compatibility (global, covers all subsequent migrations)
6
+ * 2. Check Nx version is 22 or higher
7
+ * 3. Reset Nx cache to ensure fresh project graph
8
+ * 4. Clean up any existing empty directories that might block the migration flow
8
9
  */
9
10
  import { Tree } from '@nx/devkit';
10
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"pre-cleanup-empty-directories.d.ts","sourceRoot":"","sources":["../../../src/migrations/3-0-0/pre-cleanup-empty-directories.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAoB,MAAM,YAAY,CAAC;AAqFpD;;GAEG;AACH,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAqB9D"}
1
+ {"version":3,"file":"pre-cleanup-empty-directories.d.ts","sourceRoot":"","sources":["../../../src/migrations/3-0-0/pre-cleanup-empty-directories.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,EAAE,IAAI,EAAoB,MAAM,YAAY,CAAC;AAqFpD;;GAEG;AACH,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAqB9D"}
@@ -3,12 +3,17 @@
3
3
  * Migration: Pre-cleanup Empty Directories
4
4
  *
5
5
  * This migration runs before the reorganize migrations to:
6
- * 1. Check Nx version is 22 or higher
7
- * 2. Reset Nx cache to ensure fresh project graph
8
- * 3. Clean up any existing empty directories that might block the migration flow
6
+ * 1. Patch chalk for tslib >=2.8 compatibility (global, covers all subsequent migrations)
7
+ * 2. Check Nx version is 22 or higher
8
+ * 3. Reset Nx cache to ensure fresh project graph
9
+ * 4. Clean up any existing empty directories that might block the migration flow
9
10
  */
10
11
  Object.defineProperty(exports, "__esModule", { value: true });
11
12
  exports.default = update;
13
+ // Global workaround: tslib >=2.8 __importStar no longer sets __esModule on CJS modules,
14
+ // causing chalk (used by @nx/workspace, @nx/jest, etc.) to crash with "Cannot read
15
+ // properties of undefined". Patching here covers all migrations that run after this one.
16
+ require('chalk').__esModule = true;
12
17
  const devkit_1 = require("@nx/devkit");
13
18
  const child_process_1 = require("child_process");
14
19
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/nx",
3
- "version": "4.5.4",
3
+ "version": "4.5.5",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",