@storm-software/workspace-tools 1.8.5 → 1.10.0

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.8.5",
3
+ "version": "1.10.0",
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=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-EPAEWGCP.js
408393
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/node_modules/tsup/dist/chunk-EPAEWGCP.js
408394
408394
  var require_chunk_EPAEWGCP = __commonJS({
408395
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
408395
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/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=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-GQ77QZBO.js
410042
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/node_modules/tsup/dist/chunk-GQ77QZBO.js
410043
410043
  var require_chunk_GQ77QZBO = __commonJS({
410044
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
410044
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/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) {
@@ -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=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-UIX4URMV.js
410323
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/node_modules/tsup/dist/chunk-UIX4URMV.js
410324
410324
  var require_chunk_UIX4URMV = __commonJS({
410325
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
410325
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/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=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-7G76EW2R.js
411259
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/node_modules/tsup/dist/chunk-7G76EW2R.js
411260
411260
  var require_chunk_7G76EW2R = __commonJS({
411261
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
411261
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/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=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/index.js
465067
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/node_modules/tsup/dist/index.js
465068
465068
  var require_dist5 = __commonJS({
465069
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/index.js"(exports) {
465069
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/node_modules/tsup/dist/index.js"(exports) {
465070
465070
  "use strict";
465071
465071
  Object.defineProperty(exports, "__esModule", { value: true });
465072
465072
  function _interopRequireDefault(obj) {
@@ -467515,7 +467515,6 @@ var require_dist5 = __commonJS({
467515
467515
  }
467516
467516
  const apiReferenceProjectDir = _path2.default.join(
467517
467517
  "<projectFolder>",
467518
- pkgPath,
467519
467518
  "api-reports"
467520
467519
  );
467521
467520
  let configObject = {
@@ -467542,13 +467541,11 @@ var require_dist5 = __commonJS({
467542
467541
  untrimmedFilePath: outputFilePath,
467543
467542
  betaTrimmedFilePath: _path2.default.join(
467544
467543
  "<projectFolder>",
467545
- pkgPath,
467546
- `${packageName}-beta.d.ts`
467544
+ `index-beta.d.ts`
467547
467545
  ),
467548
467546
  publicTrimmedFilePath: _path2.default.join(
467549
467547
  "<projectFolder>",
467550
- pkgPath,
467551
- `${packageName}-public.d.ts`
467548
+ `index-public.d.ts`
467552
467549
  )
467553
467550
  },
467554
467551
  tsdocMetadata: {
@@ -467561,7 +467558,10 @@ var require_dist5 = __commonJS({
467561
467558
  compiler: {
467562
467559
  tsconfigFilePath
467563
467560
  },
467564
- projectFolder: options.workspaceRoot
467561
+ projectFolder: _path2.default.join(
467562
+ options.workspaceRoot,
467563
+ pkgPath
467564
+ )
467565
467565
  };
467566
467566
  const prepareOptions = {
467567
467567
  configObject,
@@ -467601,7 +467601,7 @@ var require_dist5 = __commonJS({
467601
467601
  "_tsup-dts-aggregation" + dtsExtension
467602
467602
  );
467603
467603
  dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
467604
- let dtsOutputFilePath = _path2.default.join(pkgPath, "_tsup-dts-rollup" + dtsExtension);
467604
+ let dtsOutputFilePath = _path2.default.join(pkgPath, "index" + dtsExtension);
467605
467605
  _chunkGQ77QZBOjs.writeFileSync.call(
467606
467606
  void 0,
467607
467607
  dtsInputFilePath,
@@ -467610,7 +467610,10 @@ var require_dist5 = __commonJS({
467610
467610
  rollupDtsFile(
467611
467611
  options,
467612
467612
  dtsInputFilePath,
467613
- dtsOutputFilePath,
467613
+ _path2.default.join(
467614
+ "<projectFolder>",
467615
+ `index${dtsExtension}`
467616
+ ),
467614
467617
  options.tsconfig || "tsconfig.json"
467615
467618
  );
467616
467619
  for (let [out, sourceFileName] of Object.entries(
@@ -474321,6 +474324,7 @@ function legacyConfig({
474321
474324
  };
474322
474325
  }
474323
474326
  function getConfig(workspaceRoot, projectRoot, sourceRoot, {
474327
+ main,
474324
474328
  outputPath,
474325
474329
  tsConfig,
474326
474330
  debug,
@@ -474336,14 +474340,9 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
474336
474340
  env,
474337
474341
  verbose
474338
474342
  }) {
474339
- const entry = globSync(
474340
- [
474341
- (0, import_devkit.joinPathFragments)(sourceRoot, "**/*.ts"),
474342
- (0, import_devkit.joinPathFragments)(sourceRoot, "**/*.tsx"),
474343
- ...additionalEntryPoints ?? []
474344
- ],
474345
- { withFileTypes: true }
474346
- ).reduce((ret, filePath) => {
474343
+ const entry = globSync([main, ...additionalEntryPoints ?? []], {
474344
+ withFileTypes: true
474345
+ }).reduce((ret, filePath) => {
474347
474346
  ret[removeExtension(filePath.name)] = (0, import_devkit.joinPathFragments)(
474348
474347
  filePath.path,
474349
474348
  filePath.name
@@ -474413,6 +474412,7 @@ var outExtension = ({ options, format: format2, pkgType }) => {
474413
474412
  async function runExecutor(options, context) {
474414
474413
  try {
474415
474414
  console.log("\u{1F4E6} Running Storm build executor on the workspace");
474415
+ options.main ??= "src/index.ts";
474416
474416
  options.outputPath ??= "dist/{projectRoot}";
474417
474417
  options.tsConfig ??= "tsconfig.json";
474418
474418
  options.banner ??= process.env.STORM_FILE_BANNER;
@@ -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=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-EPAEWGCP.js
18386
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/node_modules/tsup/dist/chunk-EPAEWGCP.js
18387
18387
  var require_chunk_EPAEWGCP = __commonJS({
18388
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
18388
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/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=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-GQ77QZBO.js
24322
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/node_modules/tsup/dist/chunk-GQ77QZBO.js
24323
24323
  var require_chunk_GQ77QZBO = __commonJS({
24324
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
24324
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/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) {
@@ -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=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-UIX4URMV.js
24603
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/node_modules/tsup/dist/chunk-UIX4URMV.js
24604
24604
  var require_chunk_UIX4URMV = __commonJS({
24605
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
24605
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/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=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-7G76EW2R.js
25539
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/node_modules/tsup/dist/chunk-7G76EW2R.js
25540
25540
  var require_chunk_7G76EW2R = __commonJS({
25541
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
25541
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/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=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/index.js
267224
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/node_modules/tsup/dist/index.js
267225
267225
  var require_dist5 = __commonJS({
267226
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=xnbbsj3qkqb366f3tl5fuazphu_@microsoft+api-extractor@7.38.3_@swc+core@1._j6loarosx2nfvejnl5eq32hsge/node_modules/tsup/dist/index.js"(exports) {
267226
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=hfybvsoejwa5dnnsroigvdtnia_@microsoft+api-extractor@7.38.3_@swc+core@1._lpnh2ottjpuot5tqdi4fokpdqq/node_modules/tsup/dist/index.js"(exports) {
267227
267227
  "use strict";
267228
267228
  Object.defineProperty(exports, "__esModule", { value: true });
267229
267229
  function _interopRequireDefault(obj) {
@@ -269672,7 +269672,6 @@ var require_dist5 = __commonJS({
269672
269672
  }
269673
269673
  const apiReferenceProjectDir = _path2.default.join(
269674
269674
  "<projectFolder>",
269675
- pkgPath,
269676
269675
  "api-reports"
269677
269676
  );
269678
269677
  let configObject = {
@@ -269699,13 +269698,11 @@ var require_dist5 = __commonJS({
269699
269698
  untrimmedFilePath: outputFilePath,
269700
269699
  betaTrimmedFilePath: _path2.default.join(
269701
269700
  "<projectFolder>",
269702
- pkgPath,
269703
- `${packageName}-beta.d.ts`
269701
+ `index-beta.d.ts`
269704
269702
  ),
269705
269703
  publicTrimmedFilePath: _path2.default.join(
269706
269704
  "<projectFolder>",
269707
- pkgPath,
269708
- `${packageName}-public.d.ts`
269705
+ `index-public.d.ts`
269709
269706
  )
269710
269707
  },
269711
269708
  tsdocMetadata: {
@@ -269718,7 +269715,10 @@ var require_dist5 = __commonJS({
269718
269715
  compiler: {
269719
269716
  tsconfigFilePath
269720
269717
  },
269721
- projectFolder: options.workspaceRoot
269718
+ projectFolder: _path2.default.join(
269719
+ options.workspaceRoot,
269720
+ pkgPath
269721
+ )
269722
269722
  };
269723
269723
  const prepareOptions = {
269724
269724
  configObject,
@@ -269758,7 +269758,7 @@ var require_dist5 = __commonJS({
269758
269758
  "_tsup-dts-aggregation" + dtsExtension
269759
269759
  );
269760
269760
  dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
269761
- let dtsOutputFilePath = _path2.default.join(pkgPath, "_tsup-dts-rollup" + dtsExtension);
269761
+ let dtsOutputFilePath = _path2.default.join(pkgPath, "index" + dtsExtension);
269762
269762
  _chunkGQ77QZBOjs.writeFileSync.call(
269763
269763
  void 0,
269764
269764
  dtsInputFilePath,
@@ -269767,7 +269767,10 @@ var require_dist5 = __commonJS({
269767
269767
  rollupDtsFile(
269768
269768
  options,
269769
269769
  dtsInputFilePath,
269770
- dtsOutputFilePath,
269770
+ _path2.default.join(
269771
+ "<projectFolder>",
269772
+ `index${dtsExtension}`
269773
+ ),
269771
269774
  options.tsconfig || "tsconfig.json"
269772
269775
  );
269773
269776
  for (let [out, sourceFileName] of Object.entries(
@@ -276423,6 +276426,7 @@ function legacyConfig({
276423
276426
  };
276424
276427
  }
276425
276428
  function getConfig(workspaceRoot, projectRoot, sourceRoot, {
276429
+ main,
276426
276430
  outputPath,
276427
276431
  tsConfig,
276428
276432
  debug,
@@ -276438,14 +276442,9 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
276438
276442
  env,
276439
276443
  verbose
276440
276444
  }) {
276441
- const entry = globSync(
276442
- [
276443
- (0, import_devkit.joinPathFragments)(sourceRoot, "**/*.ts"),
276444
- (0, import_devkit.joinPathFragments)(sourceRoot, "**/*.tsx"),
276445
- ...additionalEntryPoints ?? []
276446
- ],
276447
- { withFileTypes: true }
276448
- ).reduce((ret, filePath) => {
276445
+ const entry = globSync([main, ...additionalEntryPoints ?? []], {
276446
+ withFileTypes: true
276447
+ }).reduce((ret, filePath) => {
276449
276448
  ret[removeExtension(filePath.name)] = (0, import_devkit.joinPathFragments)(
276450
276449
  filePath.path,
276451
276450
  filePath.name
@@ -3,7 +3,6 @@ import { Options } from "tsup";
3
3
 
4
4
  export type TsupExecutorSchema = Omit<
5
5
  EsBuildExecutorOptions,
6
- | "main"
7
6
  | "outputFileName"
8
7
  | "metafile"
9
8
  | "generatePackageJson"
@@ -6,6 +6,11 @@
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "properties": {
9
+ "main": {
10
+ "type": "string",
11
+ "description": "The path to the entry file, relative to project.",
12
+ "default": "src/index.ts"
13
+ },
9
14
  "outputPath": {
10
15
  "type": "string",
11
16
  "description": "The output path of the generated files.",
@@ -3,6 +3,8 @@
3
3
 
4
4
  # <%= name %>
5
5
 
6
+ <%= description %>
7
+
6
8
  <!-- START doctoc -->
7
9
  <!-- END doctoc -->
8
10
 
@@ -1 +1,10 @@
1
- const variable = "<%= name %>";
1
+ /**
2
+ * The <%= name %> library used by Storm Software for building TypeScript applications.
3
+ *
4
+ * @remarks
5
+ * <%= description %>
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+
10
+ const variable = "<%= name %>";
@@ -408313,14 +408313,17 @@ async function nodeLibraryGenerator(tree, schema) {
408313
408313
  outputPath: getOutputPath(options),
408314
408314
  tsConfig: (0, import_devkit2.joinPathFragments)(options.projectRoot, "tsconfig.json"),
408315
408315
  project: (0, import_devkit2.joinPathFragments)(options.projectRoot, "package.json"),
408316
- defaultConfiguration: "production"
408316
+ defaultConfiguration: "production",
408317
+ platform: "node"
408317
408318
  },
408318
408319
  configurations: {
408319
408320
  production: {
408320
- debug: false
408321
+ debug: false,
408322
+ verbose: false
408321
408323
  },
408322
408324
  development: {
408323
- debug: true
408325
+ debug: true,
408326
+ verbose: true
408324
408327
  }
408325
408328
  }
408326
408329
  },
@@ -408346,7 +408349,7 @@ async function nodeLibraryGenerator(tree, schema) {
408346
408349
  type: "github",
408347
408350
  url: "https://github.com/storm-software/storm-stack.git"
408348
408351
  };
408349
- let description = "\u26A1 A Storm package used to create modern, scalable web applications.";
408352
+ let description = schema.description ?? "\u26A1 A Storm package used to create modern, scalable web applications.";
408350
408353
  if (tree.exists("package.json")) {
408351
408354
  const packageJson = (0, import_devkit2.readJson)(tree, "package.json");
408352
408355
  packageJson?.repository && (repository = packageJson.repository);
@@ -18,4 +18,5 @@ export type NodeLibraryGeneratorSchema = Omit<
18
18
  | "minimal"
19
19
  > & {
20
20
  name: string;
21
+ description: string;
21
22
  };
@@ -6,7 +6,7 @@
6
6
  "properties": {
7
7
  "name": {
8
8
  "type": "string",
9
- "description": "Library name.",
9
+ "description": "A name for the library.",
10
10
  "$default": {
11
11
  "$source": "argv",
12
12
  "index": 0
@@ -14,6 +14,15 @@
14
14
  "x-prompt": "What name would you like to use for the library?",
15
15
  "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$"
16
16
  },
17
+ "description": {
18
+ "type": "string",
19
+ "description": "The library used by Storm Software for building TypeScript applications.",
20
+ "$default": {
21
+ "$source": "argv",
22
+ "index": 2
23
+ },
24
+ "x-prompt": "Provide description to use as a summary of the library?"
25
+ },
17
26
  "directory": {
18
27
  "type": "string",
19
28
  "description": "A directory where the lib is placed.",
@@ -61,5 +70,12 @@
61
70
  "description": "Is the current project the root project in the workspace."
62
71
  }
63
72
  },
64
- "required": ["name"]
73
+ "required": [
74
+ "name",
75
+ "directory",
76
+ "projectNameAndRootFormat",
77
+ "publishable",
78
+ "importPath",
79
+ "buildable"
80
+ ]
65
81
  }