@storm-software/workspace-tools 1.7.33 → 1.7.35

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.7.33",
3
+ "version": "1.7.35",
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": [
@@ -408390,9 +408390,9 @@ var require_brace_expansion2 = __commonJS({
408390
408390
  }
408391
408391
  });
408392
408392
 
408393
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-EPAEWGCP.js
408393
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-EPAEWGCP.js
408394
408394
  var require_chunk_EPAEWGCP = __commonJS({
408395
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
408395
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
408396
408396
  "use strict";
408397
408397
  Object.defineProperty(exports, "__esModule", { value: true });
408398
408398
  var version = "8.0.0";
@@ -410039,9 +410039,9 @@ var require_resolve_from = __commonJS({
410039
410039
  }
410040
410040
  });
410041
410041
 
410042
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GQ77QZBO.js
410042
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GQ77QZBO.js
410043
410043
  var require_chunk_GQ77QZBO = __commonJS({
410044
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
410044
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
410045
410045
  "use strict";
410046
410046
  Object.defineProperty(exports, "__esModule", { value: true });
410047
410047
  function _interopRequireDefault(obj) {
@@ -410238,14 +410238,14 @@ var require_chunk_GQ77QZBO = __commonJS({
410238
410238
  dts: dtsExtension
410239
410239
  };
410240
410240
  }
410241
- function ensureTempDeclarationDir() {
410241
+ function ensureTempDeclarationDir(options) {
410242
410242
  const cwd = process.cwd();
410243
- const dirPath = _path2.default.join(cwd, ".tsup", "declaration");
410243
+ const dirPath = _path2.default.join(cwd, "tmp", ".tsup", "declaration");
410244
410244
  if (_fs2.default.existsSync(dirPath)) {
410245
410245
  return dirPath;
410246
410246
  }
410247
410247
  _fs2.default.mkdirSync(dirPath, { recursive: true });
410248
- const gitIgnorePath = _path2.default.join(cwd, ".tsup", ".gitignore");
410248
+ const gitIgnorePath = _path2.default.join(cwd, "tmp", ".tsup", ".gitignore");
410249
410249
  writeFileSync2(gitIgnorePath, "**/*\n");
410250
410250
  return dirPath;
410251
410251
  }
@@ -410320,9 +410320,9 @@ var require_chunk_GQ77QZBO = __commonJS({
410320
410320
  }
410321
410321
  });
410322
410322
 
410323
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js
410323
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js
410324
410324
  var require_chunk_UIX4URMV = __commonJS({
410325
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
410325
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
410326
410326
  "use strict";
410327
410327
  Object.defineProperty(exports, "__esModule", { value: true });
410328
410328
  function _interopRequireWildcard(obj) {
@@ -411256,9 +411256,9 @@ var require_dist2 = __commonJS({
411256
411256
  }
411257
411257
  });
411258
411258
 
411259
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js
411259
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js
411260
411260
  var require_chunk_7G76EW2R = __commonJS({
411261
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
411261
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
411262
411262
  "use strict";
411263
411263
  Object.defineProperty(exports, "__esModule", { value: true });
411264
411264
  function _interopRequireDefault(obj) {
@@ -465064,9 +465064,9 @@ var require_chokidar = __commonJS({
465064
465064
  }
465065
465065
  });
465066
465066
 
465067
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
465067
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
465068
465068
  var require_dist5 = __commonJS({
465069
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
465069
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
465070
465070
  "use strict";
465071
465071
  Object.defineProperty(exports, "__esModule", { value: true });
465072
465072
  function _interopRequireDefault(obj) {
@@ -467254,13 +467254,17 @@ var require_dist5 = __commonJS({
467254
467254
  return alias;
467255
467255
  }
467256
467256
  }, _class);
467257
- function getExports(program, fileMapping) {
467257
+ function getExports(options, program, fileMapping) {
467258
467258
  let checker = program.getTypeChecker();
467259
467259
  let aliasPool = new AliasPool();
467260
467260
  let assignAlias = aliasPool.assign.bind(aliasPool);
467261
+ const packagePath = _path.join(
467262
+ program.getCurrentDirectory(),
467263
+ packageJsonSearch(options.outDir, options.silent, "dts", logger)
467264
+ );
467265
+ logger.info("dts", `\u26A1 Getting Exports (DTS generate): ${packagePath}`);
467261
467266
  function extractExports(sourceFileName) {
467262
- const cwd = program.getCurrentDirectory();
467263
- sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName, cwd);
467267
+ sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName, packagePath);
467264
467268
  const sourceFile = program.getSourceFile(sourceFileName);
467265
467269
  if (!sourceFile) {
467266
467270
  return [];
@@ -467346,7 +467350,7 @@ var require_dist5 = __commonJS({
467346
467350
  return fileMapping;
467347
467351
  }
467348
467352
  function emit(options, compilerOptions, tsconfig) {
467349
- logger.info("tsc", `Trying to find ${tsconfig || "./tsconfig.json"}`);
467353
+ logger.info("tsc", `Trying to find ${tsconfig || "tsconfig.json"}`);
467350
467354
  let rawTsconfig = _bundlerequire.loadTsConfig.call(
467351
467355
  void 0,
467352
467356
  _path.dirname.call(void 0, tsconfig),
@@ -467355,7 +467359,10 @@ var require_dist5 = __commonJS({
467355
467359
  if (!rawTsconfig) {
467356
467360
  throw new Error(`Unable to find ${tsconfig || "tsconfig.json"}`);
467357
467361
  }
467362
+ logger.info("tsc", "Getting temporary declaration directory");
467358
467363
  let declarationDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0);
467364
+ logger.info("tsc", declarationDir);
467365
+ logger.info("tsc", "Parsed tsconfig.json");
467359
467366
  let parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(
467360
467367
  {
467361
467368
  ...rawTsconfig.data,
@@ -467373,14 +467380,17 @@ var require_dist5 = __commonJS({
467373
467380
  _typescript2.default.sys,
467374
467381
  tsconfig ? _path.dirname.call(void 0, tsconfig) : options.projectRoot
467375
467382
  );
467383
+ logger.info("tsc", parsedTsconfig);
467376
467384
  let host = _typescript2.default.createCompilerHost(parsedTsconfig.options);
467377
467385
  let program = _typescript2.default.createProgram(
467378
467386
  parsedTsconfig.fileNames,
467379
467387
  parsedTsconfig.options,
467380
467388
  host
467381
467389
  );
467390
+ logger.info("tsc", "Emitting DTS files");
467382
467391
  let fileMapping = emitDtsFiles(program, host);
467383
- return getExports(program, fileMapping);
467392
+ logger.info("tsc", fileMapping);
467393
+ return getExports(options, program, fileMapping);
467384
467394
  }
467385
467395
  function runTypeScriptCompiler(options) {
467386
467396
  try {
@@ -18383,9 +18383,9 @@ var require_brace_expansion2 = __commonJS({
18383
18383
  }
18384
18384
  });
18385
18385
 
18386
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-EPAEWGCP.js
18386
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-EPAEWGCP.js
18387
18387
  var require_chunk_EPAEWGCP = __commonJS({
18388
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
18388
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
18389
18389
  "use strict";
18390
18390
  Object.defineProperty(exports, "__esModule", { value: true });
18391
18391
  var version = "8.0.0";
@@ -24319,9 +24319,9 @@ var require_resolve_from = __commonJS({
24319
24319
  }
24320
24320
  });
24321
24321
 
24322
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GQ77QZBO.js
24322
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GQ77QZBO.js
24323
24323
  var require_chunk_GQ77QZBO = __commonJS({
24324
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
24324
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
24325
24325
  "use strict";
24326
24326
  Object.defineProperty(exports, "__esModule", { value: true });
24327
24327
  function _interopRequireDefault(obj) {
@@ -24518,14 +24518,14 @@ var require_chunk_GQ77QZBO = __commonJS({
24518
24518
  dts: dtsExtension
24519
24519
  };
24520
24520
  }
24521
- function ensureTempDeclarationDir() {
24521
+ function ensureTempDeclarationDir(options) {
24522
24522
  const cwd = process.cwd();
24523
- const dirPath = _path2.default.join(cwd, ".tsup", "declaration");
24523
+ const dirPath = _path2.default.join(cwd, "tmp", ".tsup", "declaration");
24524
24524
  if (_fs2.default.existsSync(dirPath)) {
24525
24525
  return dirPath;
24526
24526
  }
24527
24527
  _fs2.default.mkdirSync(dirPath, { recursive: true });
24528
- const gitIgnorePath = _path2.default.join(cwd, ".tsup", ".gitignore");
24528
+ const gitIgnorePath = _path2.default.join(cwd, "tmp", ".tsup", ".gitignore");
24529
24529
  writeFileSync(gitIgnorePath, "**/*\n");
24530
24530
  return dirPath;
24531
24531
  }
@@ -24600,9 +24600,9 @@ var require_chunk_GQ77QZBO = __commonJS({
24600
24600
  }
24601
24601
  });
24602
24602
 
24603
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js
24603
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js
24604
24604
  var require_chunk_UIX4URMV = __commonJS({
24605
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
24605
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
24606
24606
  "use strict";
24607
24607
  Object.defineProperty(exports, "__esModule", { value: true });
24608
24608
  function _interopRequireWildcard(obj) {
@@ -25536,9 +25536,9 @@ var require_dist2 = __commonJS({
25536
25536
  }
25537
25537
  });
25538
25538
 
25539
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js
25539
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js
25540
25540
  var require_chunk_7G76EW2R = __commonJS({
25541
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
25541
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
25542
25542
  "use strict";
25543
25543
  Object.defineProperty(exports, "__esModule", { value: true });
25544
25544
  function _interopRequireDefault(obj) {
@@ -267221,9 +267221,9 @@ var require_chokidar = __commonJS({
267221
267221
  }
267222
267222
  });
267223
267223
 
267224
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
267224
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
267225
267225
  var require_dist5 = __commonJS({
267226
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=edexfqjjhxz6hhphg2kmjbwmuu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
267226
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=kwgazfmubmkq7jyd424uu6cfou_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
267227
267227
  "use strict";
267228
267228
  Object.defineProperty(exports, "__esModule", { value: true });
267229
267229
  function _interopRequireDefault(obj) {
@@ -269411,13 +269411,17 @@ var require_dist5 = __commonJS({
269411
269411
  return alias;
269412
269412
  }
269413
269413
  }, _class);
269414
- function getExports(program, fileMapping) {
269414
+ function getExports(options, program, fileMapping) {
269415
269415
  let checker = program.getTypeChecker();
269416
269416
  let aliasPool = new AliasPool();
269417
269417
  let assignAlias = aliasPool.assign.bind(aliasPool);
269418
+ const packagePath = _path.join(
269419
+ program.getCurrentDirectory(),
269420
+ packageJsonSearch(options.outDir, options.silent, "dts", logger)
269421
+ );
269422
+ logger.info("dts", `\u26A1 Getting Exports (DTS generate): ${packagePath}`);
269418
269423
  function extractExports(sourceFileName) {
269419
- const cwd = program.getCurrentDirectory();
269420
- sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName, cwd);
269424
+ sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName, packagePath);
269421
269425
  const sourceFile = program.getSourceFile(sourceFileName);
269422
269426
  if (!sourceFile) {
269423
269427
  return [];
@@ -269503,7 +269507,7 @@ var require_dist5 = __commonJS({
269503
269507
  return fileMapping;
269504
269508
  }
269505
269509
  function emit(options, compilerOptions, tsconfig) {
269506
- logger.info("tsc", `Trying to find ${tsconfig || "./tsconfig.json"}`);
269510
+ logger.info("tsc", `Trying to find ${tsconfig || "tsconfig.json"}`);
269507
269511
  let rawTsconfig = _bundlerequire.loadTsConfig.call(
269508
269512
  void 0,
269509
269513
  _path.dirname.call(void 0, tsconfig),
@@ -269512,7 +269516,10 @@ var require_dist5 = __commonJS({
269512
269516
  if (!rawTsconfig) {
269513
269517
  throw new Error(`Unable to find ${tsconfig || "tsconfig.json"}`);
269514
269518
  }
269519
+ logger.info("tsc", "Getting temporary declaration directory");
269515
269520
  let declarationDir = _chunkGQ77QZBOjs.ensureTempDeclarationDir.call(void 0);
269521
+ logger.info("tsc", declarationDir);
269522
+ logger.info("tsc", "Parsed tsconfig.json");
269516
269523
  let parsedTsconfig = _typescript2.default.parseJsonConfigFileContent(
269517
269524
  {
269518
269525
  ...rawTsconfig.data,
@@ -269530,14 +269537,17 @@ var require_dist5 = __commonJS({
269530
269537
  _typescript2.default.sys,
269531
269538
  tsconfig ? _path.dirname.call(void 0, tsconfig) : options.projectRoot
269532
269539
  );
269540
+ logger.info("tsc", parsedTsconfig);
269533
269541
  let host = _typescript2.default.createCompilerHost(parsedTsconfig.options);
269534
269542
  let program = _typescript2.default.createProgram(
269535
269543
  parsedTsconfig.fileNames,
269536
269544
  parsedTsconfig.options,
269537
269545
  host
269538
269546
  );
269547
+ logger.info("tsc", "Emitting DTS files");
269539
269548
  let fileMapping = emitDtsFiles(program, host);
269540
- return getExports(program, fileMapping);
269549
+ logger.info("tsc", fileMapping);
269550
+ return getExports(options, program, fileMapping);
269541
269551
  }
269542
269552
  function runTypeScriptCompiler(options) {
269543
269553
  try {