@storm-software/workspace-tools 1.13.5 → 1.13.7

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": "@storm-software/workspace-tools",
3
- "version": "1.13.5",
3
+ "version": "1.13.7",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
@@ -37426,9 +37426,9 @@ var require_brace_expansion2 = __commonJS({
37426
37426
  }
37427
37427
  });
37428
37428
 
37429
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-EPAEWGCP.js
37429
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-EPAEWGCP.js
37430
37430
  var require_chunk_EPAEWGCP = __commonJS({
37431
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
37431
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
37432
37432
  "use strict";
37433
37433
  Object.defineProperty(exports, "__esModule", { value: true });
37434
37434
  var version = "8.0.0";
@@ -39075,9 +39075,9 @@ var require_resolve_from = __commonJS({
39075
39075
  }
39076
39076
  });
39077
39077
 
39078
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-GQ77QZBO.js
39078
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-GQ77QZBO.js
39079
39079
  var require_chunk_GQ77QZBO = __commonJS({
39080
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
39080
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
39081
39081
  "use strict";
39082
39082
  Object.defineProperty(exports, "__esModule", { value: true });
39083
39083
  function _interopRequireDefault(obj) {
@@ -39355,9 +39355,9 @@ var require_chunk_GQ77QZBO = __commonJS({
39355
39355
  }
39356
39356
  });
39357
39357
 
39358
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-UIX4URMV.js
39358
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-UIX4URMV.js
39359
39359
  var require_chunk_UIX4URMV = __commonJS({
39360
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
39360
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
39361
39361
  "use strict";
39362
39362
  Object.defineProperty(exports, "__esModule", { value: true });
39363
39363
  function _interopRequireWildcard(obj) {
@@ -40291,9 +40291,9 @@ var require_dist2 = __commonJS({
40291
40291
  }
40292
40292
  });
40293
40293
 
40294
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-7G76EW2R.js
40294
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-7G76EW2R.js
40295
40295
  var require_chunk_7G76EW2R = __commonJS({
40296
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
40296
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
40297
40297
  "use strict";
40298
40298
  Object.defineProperty(exports, "__esModule", { value: true });
40299
40299
  function _interopRequireDefault(obj) {
@@ -95291,9 +95291,9 @@ var require_chokidar = __commonJS({
95291
95291
  }
95292
95292
  });
95293
95293
 
95294
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/index.js
95294
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/index.js
95295
95295
  var require_dist6 = __commonJS({
95296
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/index.js"(exports) {
95296
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/index.js"(exports) {
95297
95297
  "use strict";
95298
95298
  Object.defineProperty(exports, "__esModule", { value: true });
95299
95299
  function _interopRequireDefault(obj) {
@@ -97490,13 +97490,10 @@ var require_dist6 = __commonJS({
97490
97490
  let checker = program.getTypeChecker();
97491
97491
  let aliasPool = new AliasPool();
97492
97492
  let assignAlias = aliasPool.assign.bind(aliasPool);
97493
- const packagePath = _path.join(
97494
- options.workspaceRoot ? options.workspaceRoot : program.getCurrentDirectory(),
97495
- packageJsonSearch(options.outDir, options.silent, "dts", logger)
97496
- );
97497
- logger.info("dts", `\u26A1 Getting Exports (DTS generate): ${packagePath}`);
97493
+ const workspaceRoot = options.workspaceRoot ? options.workspaceRoot : program.getCurrentDirectory();
97494
+ logger.info("dts", `\u26A1 Getting Exports (DTS generate): ${workspaceRoot}`);
97498
97495
  function extractExports(sourceFileName) {
97499
- sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName, packagePath);
97496
+ sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName, workspaceRoot);
97500
97497
  const sourceFile = program.getSourceFile(sourceFileName);
97501
97498
  if (!sourceFile) {
97502
97499
  return [];
@@ -97587,11 +97584,11 @@ var require_dist6 = __commonJS({
97587
97584
  return _fs2.default.promises.readFile(name, "utf8");
97588
97585
  };
97589
97586
  var addFile = async (name, map, options, logger3) => {
97590
- const file = await getFile(name, logger3);
97591
- map.set(name, file);
97592
- if (name.includes(options.workspaceRoot)) {
97593
- const relativeName = name.replace(options.workspaceRoot, "");
97594
- map.set(relativeName.startsWith("/") ? relativeName : `/${relativeName}`, file);
97587
+ const relativeName = name.replaceAll("/", "\\").replace(options.workspaceRoot, "").replaceAll("\\", "/");
97588
+ if (map && map.has(relativeName)) {
97589
+ logger3.info("tsc", `Adding file to FS Map: ${relativeName}`);
97590
+ const file = await getFile(name, logger3);
97591
+ map.set(relativeName, file);
97595
97592
  }
97596
97593
  };
97597
97594
  async function emit(options, compilerOptions, tsconfig) {
@@ -97650,19 +97647,19 @@ var require_dist6 = __commonJS({
97650
97647
  options.workspaceRoot ? options.workspaceRoot : tsconfig ? _path.dirname.call(void 0, tsconfig) : options.projectRoot
97651
97648
  );
97652
97649
  logger.info("tsc", parsedTsconfig);
97653
- const fsMap = await _tsvfs2.createDefaultMapFromCDN(
97650
+ const fsMap = await _tsvfs2.createDefaultMapFromNodeModules(
97654
97651
  parsedTsconfig.options,
97655
- _typescript2.default.version,
97656
- options.tsCdnStorage !== void 0,
97657
97652
  _typescript2.default,
97658
- _lzString,
97659
- void 0,
97660
- options.tsCdnStorage
97653
+ options.workspaceRoot
97661
97654
  );
97662
97655
  logger.info("tsc", "Created FS Map");
97663
97656
  await Promise.all(parsedTsconfig.fileNames.map((fileName) => addFile(fileName, fsMap, options, logger)));
97664
97657
  logger.info("tsc", "Added files to FS Map");
97665
- const system = _tsvfs2.createSystem(fsMap);
97658
+ const system = _tsvfs2.createFSBackedSystem(
97659
+ fsMap,
97660
+ options.workspaceRoot,
97661
+ _typescript2.default
97662
+ );
97666
97663
  logger.info("tsc", "Created virtual file system");
97667
97664
  const host = _tsvfs2.createVirtualCompilerHost(
97668
97665
  system,
@@ -240,9 +240,9 @@ var require_brace_expansion = __commonJS({
240
240
  }
241
241
  });
242
242
 
243
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-EPAEWGCP.js
243
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-EPAEWGCP.js
244
244
  var require_chunk_EPAEWGCP = __commonJS({
245
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
245
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
246
246
  "use strict";
247
247
  Object.defineProperty(exports, "__esModule", { value: true });
248
248
  var version = "8.0.0";
@@ -6549,9 +6549,9 @@ var require_resolve_from = __commonJS({
6549
6549
  }
6550
6550
  });
6551
6551
 
6552
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-GQ77QZBO.js
6552
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-GQ77QZBO.js
6553
6553
  var require_chunk_GQ77QZBO = __commonJS({
6554
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
6554
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
6555
6555
  "use strict";
6556
6556
  Object.defineProperty(exports, "__esModule", { value: true });
6557
6557
  function _interopRequireDefault(obj) {
@@ -6829,9 +6829,9 @@ var require_chunk_GQ77QZBO = __commonJS({
6829
6829
  }
6830
6830
  });
6831
6831
 
6832
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-UIX4URMV.js
6832
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-UIX4URMV.js
6833
6833
  var require_chunk_UIX4URMV = __commonJS({
6834
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
6834
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
6835
6835
  "use strict";
6836
6836
  Object.defineProperty(exports, "__esModule", { value: true });
6837
6837
  function _interopRequireWildcard(obj) {
@@ -7765,9 +7765,9 @@ var require_dist2 = __commonJS({
7765
7765
  }
7766
7766
  });
7767
7767
 
7768
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-7G76EW2R.js
7768
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-7G76EW2R.js
7769
7769
  var require_chunk_7G76EW2R = __commonJS({
7770
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
7770
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
7771
7771
  "use strict";
7772
7772
  Object.defineProperty(exports, "__esModule", { value: true });
7773
7773
  function _interopRequireDefault(obj) {
@@ -62765,9 +62765,9 @@ var require_chokidar = __commonJS({
62765
62765
  }
62766
62766
  });
62767
62767
 
62768
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/index.js
62768
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/index.js
62769
62769
  var require_dist6 = __commonJS({
62770
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/index.js"(exports) {
62770
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=ria7ps23q43xv53fvgqcpbtp6a_@microsoft+api-extractor@7.38.3_@swc+core@1._f6wet6yk4mz6j3gmp436s4k42e/node_modules/tsup/dist/index.js"(exports) {
62771
62771
  "use strict";
62772
62772
  Object.defineProperty(exports, "__esModule", { value: true });
62773
62773
  function _interopRequireDefault(obj) {
@@ -64964,13 +64964,10 @@ var require_dist6 = __commonJS({
64964
64964
  let checker = program.getTypeChecker();
64965
64965
  let aliasPool = new AliasPool();
64966
64966
  let assignAlias = aliasPool.assign.bind(aliasPool);
64967
- const packagePath = _path.join(
64968
- options.workspaceRoot ? options.workspaceRoot : program.getCurrentDirectory(),
64969
- packageJsonSearch(options.outDir, options.silent, "dts", logger)
64970
- );
64971
- logger.info("dts", `\u26A1 Getting Exports (DTS generate): ${packagePath}`);
64967
+ const workspaceRoot = options.workspaceRoot ? options.workspaceRoot : program.getCurrentDirectory();
64968
+ logger.info("dts", `\u26A1 Getting Exports (DTS generate): ${workspaceRoot}`);
64972
64969
  function extractExports(sourceFileName) {
64973
- sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName, packagePath);
64970
+ sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName, workspaceRoot);
64974
64971
  const sourceFile = program.getSourceFile(sourceFileName);
64975
64972
  if (!sourceFile) {
64976
64973
  return [];
@@ -65061,11 +65058,11 @@ var require_dist6 = __commonJS({
65061
65058
  return _fs2.default.promises.readFile(name, "utf8");
65062
65059
  };
65063
65060
  var addFile = async (name, map, options, logger3) => {
65064
- const file = await getFile(name, logger3);
65065
- map.set(name, file);
65066
- if (name.includes(options.workspaceRoot)) {
65067
- const relativeName = name.replace(options.workspaceRoot, "");
65068
- map.set(relativeName.startsWith("/") ? relativeName : `/${relativeName}`, file);
65061
+ const relativeName = name.replaceAll("/", "\\").replace(options.workspaceRoot, "").replaceAll("\\", "/");
65062
+ if (map && map.has(relativeName)) {
65063
+ logger3.info("tsc", `Adding file to FS Map: ${relativeName}`);
65064
+ const file = await getFile(name, logger3);
65065
+ map.set(relativeName, file);
65069
65066
  }
65070
65067
  };
65071
65068
  async function emit(options, compilerOptions, tsconfig) {
@@ -65124,19 +65121,19 @@ var require_dist6 = __commonJS({
65124
65121
  options.workspaceRoot ? options.workspaceRoot : tsconfig ? _path.dirname.call(void 0, tsconfig) : options.projectRoot
65125
65122
  );
65126
65123
  logger.info("tsc", parsedTsconfig);
65127
- const fsMap = await _tsvfs2.createDefaultMapFromCDN(
65124
+ const fsMap = await _tsvfs2.createDefaultMapFromNodeModules(
65128
65125
  parsedTsconfig.options,
65129
- _typescript2.default.version,
65130
- options.tsCdnStorage !== void 0,
65131
65126
  _typescript2.default,
65132
- _lzString,
65133
- void 0,
65134
- options.tsCdnStorage
65127
+ options.workspaceRoot
65135
65128
  );
65136
65129
  logger.info("tsc", "Created FS Map");
65137
65130
  await Promise.all(parsedTsconfig.fileNames.map((fileName) => addFile(fileName, fsMap, options, logger)));
65138
65131
  logger.info("tsc", "Added files to FS Map");
65139
- const system = _tsvfs2.createSystem(fsMap);
65132
+ const system = _tsvfs2.createFSBackedSystem(
65133
+ fsMap,
65134
+ options.workspaceRoot,
65135
+ _typescript2.default
65136
+ );
65140
65137
  logger.info("tsc", "Created virtual file system");
65141
65138
  const host = _tsvfs2.createVirtualCompilerHost(
65142
65139
  system,