@storm-software/workspace-tools 1.14.0 → 1.14.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## [1.14.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.14.0...workspace-tools-v1.14.1) (2023-11-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Remove code that overwrites dts files ([894ef6e](https://github.com/storm-software/storm-ops/commit/894ef6e0ad973d5ed0983f421be341cf53075202))
7
+
8
+ # [1.14.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.13.26...workspace-tools-v1.14.0) (2023-11-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **workspace-tools:** Export executor and generator functions by name ([96c1b7a](https://github.com/storm-software/storm-ops/commit/96c1b7a1c5db17910f84610f928e36d757c9efbf))
14
+ * **workspace-tools:** Remove rollup.ts from the `additionalEntryPoints` list ([b45785e](https://github.com/storm-software/storm-ops/commit/b45785e8b9dd09178651123658cccaded7c559d7))
15
+
16
+
17
+ ### Features
18
+
19
+ * **workspace-tools:** Added the `plugins` option to the tsup executor ([8cdb8af](https://github.com/storm-software/storm-ops/commit/8cdb8af57eddac03af7f96bfbc2dfbc1672a71be))
20
+
1
21
  ## [1.13.26](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.13.25...workspace-tools-v1.13.26) (2023-11-27)
2
22
 
3
23
 
package/index.js CHANGED
@@ -40019,9 +40019,9 @@ var require_brace_expansion2 = __commonJS({
40019
40019
  }
40020
40020
  });
40021
40021
 
40022
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-EPAEWGCP.js
40022
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=a4oq4gica6aznth65dt4uuabf4_@microsoft+api-extractor@7.38.3_@swc+core@1._s3dyo4l5evvf7bnterlak6xvpu/node_modules/tsup/dist/chunk-EPAEWGCP.js
40023
40023
  var require_chunk_EPAEWGCP = __commonJS({
40024
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
40024
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=a4oq4gica6aznth65dt4uuabf4_@microsoft+api-extractor@7.38.3_@swc+core@1._s3dyo4l5evvf7bnterlak6xvpu/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
40025
40025
  "use strict";
40026
40026
  Object.defineProperty(exports, "__esModule", { value: true });
40027
40027
  var version = "8.0.0";
@@ -40481,9 +40481,9 @@ var require_resolve_from = __commonJS({
40481
40481
  }
40482
40482
  });
40483
40483
 
40484
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-GQ77QZBO.js
40484
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=a4oq4gica6aznth65dt4uuabf4_@microsoft+api-extractor@7.38.3_@swc+core@1._s3dyo4l5evvf7bnterlak6xvpu/node_modules/tsup/dist/chunk-GQ77QZBO.js
40485
40485
  var require_chunk_GQ77QZBO = __commonJS({
40486
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
40486
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=a4oq4gica6aznth65dt4uuabf4_@microsoft+api-extractor@7.38.3_@swc+core@1._s3dyo4l5evvf7bnterlak6xvpu/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
40487
40487
  "use strict";
40488
40488
  Object.defineProperty(exports, "__esModule", { value: true });
40489
40489
  function _interopRequireDefault(obj) {
@@ -40761,9 +40761,9 @@ var require_chunk_GQ77QZBO = __commonJS({
40761
40761
  }
40762
40762
  });
40763
40763
 
40764
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-UIX4URMV.js
40764
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=a4oq4gica6aznth65dt4uuabf4_@microsoft+api-extractor@7.38.3_@swc+core@1._s3dyo4l5evvf7bnterlak6xvpu/node_modules/tsup/dist/chunk-UIX4URMV.js
40765
40765
  var require_chunk_UIX4URMV = __commonJS({
40766
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
40766
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=a4oq4gica6aznth65dt4uuabf4_@microsoft+api-extractor@7.38.3_@swc+core@1._s3dyo4l5evvf7bnterlak6xvpu/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
40767
40767
  "use strict";
40768
40768
  Object.defineProperty(exports, "__esModule", { value: true });
40769
40769
  function _interopRequireWildcard(obj) {
@@ -41697,9 +41697,9 @@ var require_dist2 = __commonJS({
41697
41697
  }
41698
41698
  });
41699
41699
 
41700
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-7G76EW2R.js
41700
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=a4oq4gica6aznth65dt4uuabf4_@microsoft+api-extractor@7.38.3_@swc+core@1._s3dyo4l5evvf7bnterlak6xvpu/node_modules/tsup/dist/chunk-7G76EW2R.js
41701
41701
  var require_chunk_7G76EW2R = __commonJS({
41702
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
41702
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=a4oq4gica6aznth65dt4uuabf4_@microsoft+api-extractor@7.38.3_@swc+core@1._s3dyo4l5evvf7bnterlak6xvpu/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
41703
41703
  "use strict";
41704
41704
  Object.defineProperty(exports, "__esModule", { value: true });
41705
41705
  function _interopRequireDefault(obj) {
@@ -95505,9 +95505,9 @@ var require_chokidar = __commonJS({
95505
95505
  }
95506
95506
  });
95507
95507
 
95508
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/index.js
95508
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=a4oq4gica6aznth65dt4uuabf4_@microsoft+api-extractor@7.38.3_@swc+core@1._s3dyo4l5evvf7bnterlak6xvpu/node_modules/tsup/dist/index.js
95509
95509
  var require_dist5 = __commonJS({
95510
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/index.js"(exports) {
95510
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=a4oq4gica6aznth65dt4uuabf4_@microsoft+api-extractor@7.38.3_@swc+core@1._s3dyo4l5evvf7bnterlak6xvpu/node_modules/tsup/dist/index.js"(exports) {
95511
95511
  "use strict";
95512
95512
  Object.defineProperty(exports, "__esModule", { value: true });
95513
95513
  function _interopRequireDefault(obj) {
@@ -97092,7 +97092,7 @@ var require_dist5 = __commonJS({
97092
97092
  let pkgPath = outDir ? outDir : process.cwd();
97093
97093
  !silent && logger3 && logger3.info(format2, `\u26A1 Beginning search for package.json file: ${pkgPath}`);
97094
97094
  if (pkgPath) {
97095
- const splits = pkgPath.split("/");
97095
+ const splits = pkgPath.includes("\\") ? pkgPath.split("\\") : pkgPath.split("/");
97096
97096
  if (splits.length > 0) {
97097
97097
  for (let i = 0; i < splits.length - 1; i++) {
97098
97098
  const packageJsonPath = _path2.default.join(
@@ -97117,6 +97117,12 @@ var require_dist5 = __commonJS({
97117
97117
  }
97118
97118
  }
97119
97119
  }
97120
+ if (pkgPath === outDir) {
97121
+ !silent && logger3 && logger3.info(
97122
+ format2,
97123
+ `\u26A1 No package.json file found, using ${pkgPath} as the output directory`
97124
+ );
97125
+ }
97120
97126
  return pkgPath;
97121
97127
  };
97122
97128
  async function runEsbuild(options, {
@@ -97861,59 +97867,6 @@ var require_dist5 = __commonJS({
97861
97867
  throw new Error("Unknown declaration");
97862
97868
  }
97863
97869
  }
97864
- function formatDistributionExports(exports2, fromFilePath, toFilePath) {
97865
- let importPath = _chunkGQ77QZBOjs.trimDtsExtension.call(
97866
- void 0,
97867
- _path2.default.posix.relative(
97868
- _path2.default.posix.dirname(_path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(void 0, fromFilePath))),
97869
- _path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(void 0, toFilePath))
97870
- )
97871
- );
97872
- if (!importPath.match(/^\.+\//)) {
97873
- importPath = "./" + importPath;
97874
- }
97875
- let seen = {
97876
- named: /* @__PURE__ */ new Set(),
97877
- module: /* @__PURE__ */ new Set()
97878
- };
97879
- const lines = exports2.filter((declaration) => {
97880
- if (declaration.kind === "module") {
97881
- if (seen.module.has(declaration.moduleName)) {
97882
- return false;
97883
- }
97884
- seen.module.add(declaration.moduleName);
97885
- return true;
97886
- } else if (declaration.kind === "named") {
97887
- if (seen.named.has(declaration.name)) {
97888
- return false;
97889
- }
97890
- seen.named.add(declaration.name);
97891
- return true;
97892
- } else {
97893
- return false;
97894
- }
97895
- }).map((declaration) => formatDistributionExport(declaration, importPath)).filter(_chunkGQ77QZBOjs.truthy);
97896
- if (lines.length === 0) {
97897
- lines.push("export {};");
97898
- }
97899
- return lines.join("\n") + "\n";
97900
- }
97901
- function formatDistributionExport(declaration, dest) {
97902
- if (declaration.kind === "named") {
97903
- return [
97904
- "export",
97905
- declaration.isTypeOnly ? "type" : "",
97906
- "{",
97907
- declaration.alias,
97908
- declaration.name === declaration.alias ? "" : `as ${declaration.name}`,
97909
- "} from",
97910
- `'${dest}';`
97911
- ].filter(_chunkGQ77QZBOjs.truthy).join(" ");
97912
- } else if (declaration.kind === "module") {
97913
- return `export * from '${declaration.moduleName}';`;
97914
- }
97915
- return "";
97916
- }
97917
97870
  var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
97918
97871
  function rollupDtsFile(options, inputFilePath, dtsExtension, tsconfigFilePath) {
97919
97872
  let pkgPath = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
@@ -98052,20 +98005,6 @@ var require_dist5 = __commonJS({
98052
98005
  dtsExtension,
98053
98006
  options.tsconfig || "tsconfig.json"
98054
98007
  );
98055
- for (let [out, sourceFileName] of Object.entries(
98056
- options.experimentalDts.entry
98057
- )) {
98058
- sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName);
98059
- const outFileName = _path2.default.join(outDir, out + dtsExtension);
98060
- const currentExports = exports2.filter(
98061
- (declaration) => declaration.sourceFileName === sourceFileName
98062
- );
98063
- _chunkGQ77QZBOjs.writeFileSync.call(
98064
- void 0,
98065
- outFileName,
98066
- formatDistributionExports(currentExports, outFileName, outDir)
98067
- );
98068
- }
98069
98008
  }
98070
98009
  async function runDtsRollup(options, exports2) {
98071
98010
  try {