@storm-software/workspace-tools 1.9.0 → 1.10.1

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.9.0",
3
+ "version": "1.10.1",
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=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-EPAEWGCP.js
408393
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/node_modules/tsup/dist/chunk-EPAEWGCP.js
408394
408394
  var require_chunk_EPAEWGCP = __commonJS({
408395
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
408395
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/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=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-GQ77QZBO.js
410042
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/node_modules/tsup/dist/chunk-GQ77QZBO.js
410043
410043
  var require_chunk_GQ77QZBO = __commonJS({
410044
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
410044
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/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=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-UIX4URMV.js
410323
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/node_modules/tsup/dist/chunk-UIX4URMV.js
410324
410324
  var require_chunk_UIX4URMV = __commonJS({
410325
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
410325
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/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=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-7G76EW2R.js
411259
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/node_modules/tsup/dist/chunk-7G76EW2R.js
411260
411260
  var require_chunk_7G76EW2R = __commonJS({
411261
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
411261
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/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=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/index.js
465067
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/node_modules/tsup/dist/index.js
465068
465068
  var require_dist5 = __commonJS({
465069
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/index.js"(exports) {
465069
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/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,6 +467515,7 @@ var require_dist5 = __commonJS({
467515
467515
  }
467516
467516
  const apiReferenceProjectDir = _path2.default.join(
467517
467517
  "<projectFolder>",
467518
+ pkgPath,
467518
467519
  "api-reports"
467519
467520
  );
467520
467521
  let configObject = {
@@ -467541,10 +467542,12 @@ var require_dist5 = __commonJS({
467541
467542
  untrimmedFilePath: outputFilePath,
467542
467543
  betaTrimmedFilePath: _path2.default.join(
467543
467544
  "<projectFolder>",
467545
+ options.outDir,
467544
467546
  `index-beta.d.ts`
467545
467547
  ),
467546
467548
  publicTrimmedFilePath: _path2.default.join(
467547
467549
  "<projectFolder>",
467550
+ options.outDir,
467548
467551
  `index-public.d.ts`
467549
467552
  )
467550
467553
  },
@@ -467556,18 +467559,19 @@ var require_dist5 = __commonJS({
467556
467559
  )
467557
467560
  },
467558
467561
  compiler: {
467559
- tsconfigFilePath
467562
+ tsconfigFilePath: _path2.default.join(
467563
+ "<projectFolder>",
467564
+ tsconfigFilePath.replace(options.workspaceRoot, "")
467565
+ )
467560
467566
  },
467561
- projectFolder: _path2.default.join(
467562
- options.workspaceRoot,
467563
- pkgPath
467564
- )
467567
+ projectFolder: _path2.default.join("..", "..", "..", "..", "..", "..")
467565
467568
  };
467566
467569
  const prepareOptions = {
467567
467570
  configObject,
467568
467571
  configObjectFullPath: void 0,
467569
467572
  packageJsonFullPath
467570
467573
  };
467574
+ logger2.info("dts", `\u26A1 Current Directory: ${__dirname}`);
467571
467575
  logger2.info("dts", "\u26A1 Running API Extractor with the following config: \n", prepareOptions);
467572
467576
  const imported = _chunkGQ77QZBOjs.getApiExtractor.call(void 0);
467573
467577
  if (!imported) {
@@ -467598,10 +467602,11 @@ var require_dist5 = __commonJS({
467598
467602
  let dtsExtension = _chunkGQ77QZBOjs.defaultOutExtension.call(void 0, { format: format2, pkgType: pkg.type }).dts;
467599
467603
  let dtsInputFilePath = _path2.default.join(
467600
467604
  declarationDir,
467605
+ outDir.replace(pkgPath, ""),
467601
467606
  "_tsup-dts-aggregation" + dtsExtension
467602
467607
  );
467603
467608
  dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
467604
- let dtsOutputFilePath = _path2.default.join(pkgPath, "index" + dtsExtension);
467609
+ let dtsOutputFilePath = _path2.default.join(outDir, "index" + dtsExtension);
467605
467610
  _chunkGQ77QZBOjs.writeFileSync.call(
467606
467611
  void 0,
467607
467612
  dtsInputFilePath,
@@ -467609,8 +467614,15 @@ var require_dist5 = __commonJS({
467609
467614
  );
467610
467615
  rollupDtsFile(
467611
467616
  options,
467612
- dtsInputFilePath,
467613
- dtsOutputFilePath,
467617
+ _path2.default.join(
467618
+ "<projectFolder>",
467619
+ dtsInputFilePath.replace(options.workspaceRoot, "")
467620
+ ),
467621
+ _path2.default.join(
467622
+ "<projectFolder>",
467623
+ options.outDir,
467624
+ `index${dtsExtension}`
467625
+ ),
467614
467626
  options.tsconfig || "tsconfig.json"
467615
467627
  );
467616
467628
  for (let [out, sourceFileName] of Object.entries(
@@ -474321,6 +474333,7 @@ function legacyConfig({
474321
474333
  };
474322
474334
  }
474323
474335
  function getConfig(workspaceRoot, projectRoot, sourceRoot, {
474336
+ main,
474324
474337
  outputPath,
474325
474338
  tsConfig,
474326
474339
  debug,
@@ -474336,14 +474349,9 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
474336
474349
  env,
474337
474350
  verbose
474338
474351
  }) {
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) => {
474352
+ const entry = globSync([main, ...additionalEntryPoints ?? []], {
474353
+ withFileTypes: true
474354
+ }).reduce((ret, filePath) => {
474347
474355
  ret[removeExtension(filePath.name)] = (0, import_devkit.joinPathFragments)(
474348
474356
  filePath.path,
474349
474357
  filePath.name
@@ -474413,6 +474421,7 @@ var outExtension = ({ options, format: format2, pkgType }) => {
474413
474421
  async function runExecutor(options, context) {
474414
474422
  try {
474415
474423
  console.log("\u{1F4E6} Running Storm build executor on the workspace");
474424
+ options.main ??= "src/index.ts";
474416
474425
  options.outputPath ??= "dist/{projectRoot}";
474417
474426
  options.tsConfig ??= "tsconfig.json";
474418
474427
  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=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-EPAEWGCP.js
18386
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/node_modules/tsup/dist/chunk-EPAEWGCP.js
18387
18387
  var require_chunk_EPAEWGCP = __commonJS({
18388
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
18388
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/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=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-GQ77QZBO.js
24322
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/node_modules/tsup/dist/chunk-GQ77QZBO.js
24323
24323
  var require_chunk_GQ77QZBO = __commonJS({
24324
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
24324
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/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=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-UIX4URMV.js
24603
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/node_modules/tsup/dist/chunk-UIX4URMV.js
24604
24604
  var require_chunk_UIX4URMV = __commonJS({
24605
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
24605
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/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=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-7G76EW2R.js
25539
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/node_modules/tsup/dist/chunk-7G76EW2R.js
25540
25540
  var require_chunk_7G76EW2R = __commonJS({
25541
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
25541
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/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=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/index.js
267224
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/node_modules/tsup/dist/index.js
267225
267225
  var require_dist5 = __commonJS({
267226
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qx64uvenwjot73rwnjbhbs5tsq_@microsoft+api-extractor@7.38.3_@swc+core@1._vumzwl6nnff7gu3d7itfoln6lm/node_modules/tsup/dist/index.js"(exports) {
267226
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mhmndm2qckd7wlr6hl6c4lrzua_@microsoft+api-extractor@7.38.3_@swc+core@1._bv42izpdz3lcxeoz4g3sqwonly/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,6 +269672,7 @@ var require_dist5 = __commonJS({
269672
269672
  }
269673
269673
  const apiReferenceProjectDir = _path2.default.join(
269674
269674
  "<projectFolder>",
269675
+ pkgPath,
269675
269676
  "api-reports"
269676
269677
  );
269677
269678
  let configObject = {
@@ -269698,10 +269699,12 @@ var require_dist5 = __commonJS({
269698
269699
  untrimmedFilePath: outputFilePath,
269699
269700
  betaTrimmedFilePath: _path2.default.join(
269700
269701
  "<projectFolder>",
269702
+ options.outDir,
269701
269703
  `index-beta.d.ts`
269702
269704
  ),
269703
269705
  publicTrimmedFilePath: _path2.default.join(
269704
269706
  "<projectFolder>",
269707
+ options.outDir,
269705
269708
  `index-public.d.ts`
269706
269709
  )
269707
269710
  },
@@ -269713,18 +269716,19 @@ var require_dist5 = __commonJS({
269713
269716
  )
269714
269717
  },
269715
269718
  compiler: {
269716
- tsconfigFilePath
269719
+ tsconfigFilePath: _path2.default.join(
269720
+ "<projectFolder>",
269721
+ tsconfigFilePath.replace(options.workspaceRoot, "")
269722
+ )
269717
269723
  },
269718
- projectFolder: _path2.default.join(
269719
- options.workspaceRoot,
269720
- pkgPath
269721
- )
269724
+ projectFolder: _path2.default.join("..", "..", "..", "..", "..", "..")
269722
269725
  };
269723
269726
  const prepareOptions = {
269724
269727
  configObject,
269725
269728
  configObjectFullPath: void 0,
269726
269729
  packageJsonFullPath
269727
269730
  };
269731
+ logger2.info("dts", `\u26A1 Current Directory: ${__dirname}`);
269728
269732
  logger2.info("dts", "\u26A1 Running API Extractor with the following config: \n", prepareOptions);
269729
269733
  const imported = _chunkGQ77QZBOjs.getApiExtractor.call(void 0);
269730
269734
  if (!imported) {
@@ -269755,10 +269759,11 @@ var require_dist5 = __commonJS({
269755
269759
  let dtsExtension = _chunkGQ77QZBOjs.defaultOutExtension.call(void 0, { format, pkgType: pkg.type }).dts;
269756
269760
  let dtsInputFilePath = _path2.default.join(
269757
269761
  declarationDir,
269762
+ outDir.replace(pkgPath, ""),
269758
269763
  "_tsup-dts-aggregation" + dtsExtension
269759
269764
  );
269760
269765
  dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
269761
- let dtsOutputFilePath = _path2.default.join(pkgPath, "index" + dtsExtension);
269766
+ let dtsOutputFilePath = _path2.default.join(outDir, "index" + dtsExtension);
269762
269767
  _chunkGQ77QZBOjs.writeFileSync.call(
269763
269768
  void 0,
269764
269769
  dtsInputFilePath,
@@ -269766,8 +269771,15 @@ var require_dist5 = __commonJS({
269766
269771
  );
269767
269772
  rollupDtsFile(
269768
269773
  options,
269769
- dtsInputFilePath,
269770
- dtsOutputFilePath,
269774
+ _path2.default.join(
269775
+ "<projectFolder>",
269776
+ dtsInputFilePath.replace(options.workspaceRoot, "")
269777
+ ),
269778
+ _path2.default.join(
269779
+ "<projectFolder>",
269780
+ options.outDir,
269781
+ `index${dtsExtension}`
269782
+ ),
269771
269783
  options.tsconfig || "tsconfig.json"
269772
269784
  );
269773
269785
  for (let [out, sourceFileName] of Object.entries(
@@ -276423,6 +276435,7 @@ function legacyConfig({
276423
276435
  };
276424
276436
  }
276425
276437
  function getConfig(workspaceRoot, projectRoot, sourceRoot, {
276438
+ main,
276426
276439
  outputPath,
276427
276440
  tsConfig,
276428
276441
  debug,
@@ -276438,14 +276451,9 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
276438
276451
  env,
276439
276452
  verbose
276440
276453
  }) {
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) => {
276454
+ const entry = globSync([main, ...additionalEntryPoints ?? []], {
276455
+ withFileTypes: true
276456
+ }).reduce((ret, filePath) => {
276449
276457
  ret[removeExtension(filePath.name)] = (0, import_devkit.joinPathFragments)(
276450
276458
  filePath.path,
276451
276459
  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.",