@storm-software/workspace-tools 1.16.10 → 1.16.11

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,10 @@
1
+ ## [1.16.10](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.16.9...workspace-tools-v1.16.10) (2023-11-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Resolved issue with bad path module usage in tsup patch ([e0a984a](https://github.com/storm-software/storm-ops/commit/e0a984a656d65cb6f2b015ebac43d908bdded3d9))
7
+
1
8
  ## [1.16.9](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.16.8...workspace-tools-v1.16.9) (2023-11-29)
2
9
 
3
10
 
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=ycbj4ze4nximjalgxenbuscbmq_@microsoft+api-extractor@7.38.3_@swc+core@1._sppchyqgfxkd36p6h24jhpliga/node_modules/tsup/dist/chunk-EPAEWGCP.js
40022
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/node_modules/tsup/dist/chunk-EPAEWGCP.js
40023
40023
  var require_chunk_EPAEWGCP = __commonJS({
40024
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ycbj4ze4nximjalgxenbuscbmq_@microsoft+api-extractor@7.38.3_@swc+core@1._sppchyqgfxkd36p6h24jhpliga/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
40024
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/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=ycbj4ze4nximjalgxenbuscbmq_@microsoft+api-extractor@7.38.3_@swc+core@1._sppchyqgfxkd36p6h24jhpliga/node_modules/tsup/dist/chunk-GQ77QZBO.js
40484
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/node_modules/tsup/dist/chunk-GQ77QZBO.js
40485
40485
  var require_chunk_GQ77QZBO = __commonJS({
40486
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ycbj4ze4nximjalgxenbuscbmq_@microsoft+api-extractor@7.38.3_@swc+core@1._sppchyqgfxkd36p6h24jhpliga/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
40486
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/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=ycbj4ze4nximjalgxenbuscbmq_@microsoft+api-extractor@7.38.3_@swc+core@1._sppchyqgfxkd36p6h24jhpliga/node_modules/tsup/dist/chunk-UIX4URMV.js
40764
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/node_modules/tsup/dist/chunk-UIX4URMV.js
40765
40765
  var require_chunk_UIX4URMV = __commonJS({
40766
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ycbj4ze4nximjalgxenbuscbmq_@microsoft+api-extractor@7.38.3_@swc+core@1._sppchyqgfxkd36p6h24jhpliga/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
40766
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/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=ycbj4ze4nximjalgxenbuscbmq_@microsoft+api-extractor@7.38.3_@swc+core@1._sppchyqgfxkd36p6h24jhpliga/node_modules/tsup/dist/chunk-7G76EW2R.js
41700
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/node_modules/tsup/dist/chunk-7G76EW2R.js
41701
41701
  var require_chunk_7G76EW2R = __commonJS({
41702
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ycbj4ze4nximjalgxenbuscbmq_@microsoft+api-extractor@7.38.3_@swc+core@1._sppchyqgfxkd36p6h24jhpliga/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
41702
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/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=ycbj4ze4nximjalgxenbuscbmq_@microsoft+api-extractor@7.38.3_@swc+core@1._sppchyqgfxkd36p6h24jhpliga/node_modules/tsup/dist/index.js
95508
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/node_modules/tsup/dist/index.js
95509
95509
  var require_dist5 = __commonJS({
95510
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ycbj4ze4nximjalgxenbuscbmq_@microsoft+api-extractor@7.38.3_@swc+core@1._sppchyqgfxkd36p6h24jhpliga/node_modules/tsup/dist/index.js"(exports) {
95510
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/node_modules/tsup/dist/index.js"(exports) {
95511
95511
  "use strict";
95512
95512
  Object.defineProperty(exports, "__esModule", { value: true });
95513
95513
  function _interopRequireDefault(obj) {
@@ -97867,17 +97867,26 @@ var require_dist5 = __commonJS({
97867
97867
  throw new Error("Unknown declaration");
97868
97868
  }
97869
97869
  }
97870
- function formatDistributionExports(exports2, fromFilePath, toFilePath) {
97870
+ function formatDistributionExports(exports2, fromFilePath, toFilePath, logger3, options) {
97871
97871
  let importPath = _chunkGQ77QZBOjs.trimDtsExtension.call(
97872
97872
  void 0,
97873
97873
  _path2.default.posix.relative(
97874
- _path2.default.posix.dirname(_path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(void 0, fromFilePath))),
97875
- _path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(void 0, toFilePath))
97874
+ _path2.default.posix.dirname(_path2.default.posix.normalize(
97875
+ _chunkGQ77QZBOjs.slash.call(
97876
+ void 0,
97877
+ _path2.default.join(options.workspaceRoot, fromFilePath)
97878
+ )
97879
+ )),
97880
+ _path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(
97881
+ void 0,
97882
+ _path2.default.join(options.workspaceRoot, toFilePath)
97883
+ ))
97876
97884
  )
97877
97885
  );
97878
97886
  if (!importPath.match(/^\.+\//)) {
97879
97887
  importPath = "./" + importPath;
97880
97888
  }
97889
+ !options.silent && logger3.info("dts", `\u26A1 Formatting Distribution Exports with Import Path: ${importPath}`);
97881
97890
  let seen = {
97882
97891
  named: /* @__PURE__ */ new Set(),
97883
97892
  module: /* @__PURE__ */ new Set()
@@ -97949,7 +97958,7 @@ var require_dist5 = __commonJS({
97949
97958
  },
97950
97959
  dtsRollup: {
97951
97960
  enabled: true,
97952
- untrimmedFilePath: outputFilePath
97961
+ untrimmedFilePath: `<projectFolder>/${outputFilePath.replaceAll("\\", "/")}`
97953
97962
  },
97954
97963
  tsdocMetadata: {
97955
97964
  enabled: options.tsdocMetadata !== false,
@@ -98027,7 +98036,7 @@ var require_dist5 = __commonJS({
98027
98036
  dtsInputFilePath,
98028
98037
  formatAggregationExports(exports2, declarationDir)
98029
98038
  );
98030
- let dtsOutputFilePath = _path2.default.join(outDir, "declaration" + dtsExtension);
98039
+ let dtsOutputFilePath = _path2.default.join(outDir, "declarations" + dtsExtension);
98031
98040
  rollupDtsFile(
98032
98041
  options,
98033
98042
  dtsInputFilePath,
@@ -98037,15 +98046,20 @@ var require_dist5 = __commonJS({
98037
98046
  for (let [out, sourceFileName] of Object.entries(
98038
98047
  options.experimentalDts.entry
98039
98048
  )) {
98040
- sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName);
98041
- const outFileName = _path2.default.join(outDir, out + dtsExtension);
98049
+ sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName).replaceAll("/", "\\");
98050
+ const outFileName = _path2.default.join(
98051
+ options.workspaceRoot,
98052
+ outDir,
98053
+ out + dtsExtension
98054
+ ).replaceAll("/", "\\");
98055
+ !options.silent && logger2.info("dts", `\u26A1 Checking exports generation for file: ${outFileName}`);
98042
98056
  const currentExports = exports2.filter(
98043
- (declaration) => declaration.sourceFileName === sourceFileName
98057
+ (declaration) => declaration.sourceFileName.replaceAll("/", "\\") === sourceFileName.replaceAll("/", "\\")
98044
98058
  );
98045
98059
  _chunkGQ77QZBOjs.writeFileSync.call(
98046
98060
  void 0,
98047
98061
  outFileName,
98048
- formatDistributionExports(currentExports, outFileName, dtsOutputFilePath)
98062
+ formatDistributionExports(currentExports, outFileName, dtsOutputFilePath, logger2, options)
98049
98063
  );
98050
98064
  }
98051
98065
  }