@unisphere/nx 4.5.6 → 4.5.8

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,10 +2,9 @@
2
2
  * Migration: Pre-cleanup Empty Directories
3
3
  *
4
4
  * This migration runs before the reorganize migrations to:
5
- * 1. Hook Module._load to patch chalk for tslib >=2.8 compatibility (covers all subsequent migrations regardless of resolution path)
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
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
9
8
  */
10
9
  import { Tree } from '@nx/devkit';
11
10
  /**
@@ -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;;;;;;;;GAQG;AAgBH,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;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAoB,MAAM,YAAY,CAAC;AAqFpD;;GAEG;AACH,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAqB9D"}
@@ -3,26 +3,12 @@
3
3
  * Migration: Pre-cleanup Empty Directories
4
4
  *
5
5
  * This migration runs before the reorganize migrations to:
6
- * 1. Hook Module._load to patch chalk for tslib >=2.8 compatibility (covers all subsequent migrations regardless of resolution path)
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
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
10
9
  */
11
10
  Object.defineProperty(exports, "__esModule", { value: true });
12
11
  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". Hook Module._load to patch every chalk require regardless
16
- // of resolution path (nested node_modules, different packages, etc.).
17
- const Module = require('module');
18
- const originalLoad = Module._load;
19
- Module._load = function (request, parent, isMain) {
20
- const result = originalLoad.apply(this, arguments);
21
- if (request === 'chalk' && result && typeof result === 'object') {
22
- result.__esModule = true;
23
- }
24
- return result;
25
- };
26
12
  const devkit_1 = require("@nx/devkit");
27
13
  const child_process_1 = require("child_process");
28
14
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/nx",
3
- "version": "4.5.6",
3
+ "version": "4.5.8",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",