@storm-software/workspace-tools 1.16.11 → 1.16.13

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,17 @@
1
+ ## [1.16.12](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.16.11...workspace-tools-v1.16.12) (2023-11-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Update tmp path on tsup patch ([2dd3551](https://github.com/storm-software/storm-ops/commit/2dd3551988d0c6ee4236123c4eeb7047f53cf666))
7
+
8
+ ## [1.16.11](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.16.10...workspace-tools-v1.16.11) (2023-11-29)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **workspace-tools:** Resolve issue with path separators in tsup patch ([e7dc44d](https://github.com/storm-software/storm-ops/commit/e7dc44d77f8445a495fb7164d85498d4a2cbf179))
14
+
1
15
  ## [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
16
 
3
17
 
package/README.md CHANGED
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
16
16
 
17
17
  <h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
18
18
 
19
- [![Version](https://img.shields.io/badge/version-1.16.8-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
+ [![Version](https://img.shields.io/badge/version-1.16.12-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
20
20
  [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
21
21
 
22
22
  <h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
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=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/node_modules/tsup/dist/chunk-EPAEWGCP.js
40022
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=vxmu2ajwd4rmuyydhehicobhh4_@microsoft+api-extractor@7.38.3_@swc+core@1._ftkmi7tafmlnqdca2kdawirqaa/node_modules/tsup/dist/chunk-EPAEWGCP.js
40023
40023
  var require_chunk_EPAEWGCP = __commonJS({
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) {
40024
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=vxmu2ajwd4rmuyydhehicobhh4_@microsoft+api-extractor@7.38.3_@swc+core@1._ftkmi7tafmlnqdca2kdawirqaa/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=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/node_modules/tsup/dist/chunk-GQ77QZBO.js
40484
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=vxmu2ajwd4rmuyydhehicobhh4_@microsoft+api-extractor@7.38.3_@swc+core@1._ftkmi7tafmlnqdca2kdawirqaa/node_modules/tsup/dist/chunk-GQ77QZBO.js
40485
40485
  var require_chunk_GQ77QZBO = __commonJS({
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) {
40486
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=vxmu2ajwd4rmuyydhehicobhh4_@microsoft+api-extractor@7.38.3_@swc+core@1._ftkmi7tafmlnqdca2kdawirqaa/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=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/node_modules/tsup/dist/chunk-UIX4URMV.js
40764
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=vxmu2ajwd4rmuyydhehicobhh4_@microsoft+api-extractor@7.38.3_@swc+core@1._ftkmi7tafmlnqdca2kdawirqaa/node_modules/tsup/dist/chunk-UIX4URMV.js
40765
40765
  var require_chunk_UIX4URMV = __commonJS({
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) {
40766
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=vxmu2ajwd4rmuyydhehicobhh4_@microsoft+api-extractor@7.38.3_@swc+core@1._ftkmi7tafmlnqdca2kdawirqaa/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=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/node_modules/tsup/dist/chunk-7G76EW2R.js
41700
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=vxmu2ajwd4rmuyydhehicobhh4_@microsoft+api-extractor@7.38.3_@swc+core@1._ftkmi7tafmlnqdca2kdawirqaa/node_modules/tsup/dist/chunk-7G76EW2R.js
41701
41701
  var require_chunk_7G76EW2R = __commonJS({
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) {
41702
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=vxmu2ajwd4rmuyydhehicobhh4_@microsoft+api-extractor@7.38.3_@swc+core@1._ftkmi7tafmlnqdca2kdawirqaa/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=sm6ofhvdkyatguwc6tbkvo7xqu_@microsoft+api-extractor@7.38.3_@swc+core@1._znna3kygvsafimy6gulngvppbu/node_modules/tsup/dist/index.js
95508
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=vxmu2ajwd4rmuyydhehicobhh4_@microsoft+api-extractor@7.38.3_@swc+core@1._ftkmi7tafmlnqdca2kdawirqaa/node_modules/tsup/dist/index.js
95509
95509
  var require_dist5 = __commonJS({
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) {
95510
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=vxmu2ajwd4rmuyydhehicobhh4_@microsoft+api-extractor@7.38.3_@swc+core@1._ftkmi7tafmlnqdca2kdawirqaa/node_modules/tsup/dist/index.js"(exports) {
95511
95511
  "use strict";
95512
95512
  Object.defineProperty(exports, "__esModule", { value: true });
95513
95513
  function _interopRequireDefault(obj) {
@@ -97123,7 +97123,7 @@ var require_dist5 = __commonJS({
97123
97123
  `\u26A1 No package.json file found, using ${pkgPath} as the output directory`
97124
97124
  );
97125
97125
  }
97126
- return pkgPath.replaceAll("\\", "/");
97126
+ return pkgPath;
97127
97127
  };
97128
97128
  async function runEsbuild(options, {
97129
97129
  format: format2,
@@ -97867,117 +97867,77 @@ var require_dist5 = __commonJS({
97867
97867
  throw new Error("Unknown declaration");
97868
97868
  }
97869
97869
  }
97870
- function formatDistributionExports(exports2, fromFilePath, toFilePath, logger3, options) {
97871
- let importPath = _chunkGQ77QZBOjs.trimDtsExtension.call(
97872
- void 0,
97873
- _path2.default.posix.relative(
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
- ))
97884
- )
97885
- );
97886
- if (!importPath.match(/^\.+\//)) {
97887
- importPath = "./" + importPath;
97888
- }
97889
- !options.silent && logger3.info("dts", `\u26A1 Formatting Distribution Exports with Import Path: ${importPath}`);
97890
- let seen = {
97891
- named: /* @__PURE__ */ new Set(),
97892
- module: /* @__PURE__ */ new Set()
97893
- };
97894
- const lines = exports2.filter((declaration) => {
97895
- if (declaration.kind === "module") {
97896
- if (seen.module.has(declaration.moduleName)) {
97897
- return false;
97898
- }
97899
- seen.module.add(declaration.moduleName);
97900
- return true;
97901
- } else if (declaration.kind === "named") {
97902
- if (seen.named.has(declaration.name)) {
97903
- return false;
97904
- }
97905
- seen.named.add(declaration.name);
97906
- return true;
97907
- } else {
97908
- return false;
97909
- }
97910
- }).map((declaration) => formatDistributionExport(declaration, importPath)).filter(_chunkGQ77QZBOjs.truthy);
97911
- if (lines.length === 0) {
97912
- lines.push("export {};");
97913
- }
97914
- return lines.join("\n") + "\n";
97915
- }
97916
- function formatDistributionExport(declaration, dest) {
97917
- if (declaration.kind === "named") {
97918
- return [
97919
- "export",
97920
- declaration.isTypeOnly ? "type" : "",
97921
- "{",
97922
- declaration.alias,
97923
- declaration.name === declaration.alias ? "" : `as ${declaration.name}`,
97924
- "} from",
97925
- `'${dest}';`
97926
- ].filter(_chunkGQ77QZBOjs.truthy).join(" ");
97927
- } else if (declaration.kind === "module") {
97928
- return `export * from '${declaration.moduleName}';`;
97929
- }
97930
- return "";
97931
- }
97932
97870
  var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
97933
- function rollupDtsFile(options, inputFilePath, outputFilePath, tsconfigFilePath) {
97934
- let projectFolder = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
97935
- !options.silent && logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${projectFolder}`);
97936
- const apiReferenceProjectDir = `<projectFolder>/${_path2.default.join(
97871
+ function rollupDtsFile(options, inputFilePath, dtsExtension, tsconfigFilePath) {
97872
+ let pkgPath = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
97873
+ if (pkgPath.endsWith("/")) {
97874
+ pkgPath = pkgPath.slice(0, -1);
97875
+ }
97876
+ logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${pkgPath}`);
97877
+ const apiReferenceProjectDir = _path2.default.join(
97878
+ "<projectFolder>",
97937
97879
  "docs",
97938
97880
  "api-reports",
97939
97881
  options.projectRoot
97940
- ).replaceAll("\\", "/")}`;
97882
+ );
97941
97883
  let configObject = {
97942
97884
  mainEntryPointFilePath: inputFilePath,
97943
97885
  apiReport: {
97944
97886
  enabled: options.apiReport !== false,
97945
97887
  reportFileName: "api-report.md",
97946
97888
  reportFolder: apiReferenceProjectDir,
97947
- reportTempFolder: `<projectFolder>/${_path2.default.join(
97889
+ reportTempFolder: _path2.default.join(
97890
+ "<projectFolder>",
97948
97891
  "tmp",
97949
97892
  "api-reports"
97950
- ).replaceAll("\\", "/")}`
97893
+ )
97951
97894
  },
97952
97895
  docModel: {
97953
97896
  enabled: options.docModel !== false,
97954
97897
  apiJsonFilePath: _path2.default.join(
97955
97898
  apiReferenceProjectDir,
97956
97899
  "documents-model.api.json"
97957
- ).replaceAll("\\", "/")
97900
+ )
97958
97901
  },
97959
97902
  dtsRollup: {
97960
97903
  enabled: true,
97961
- untrimmedFilePath: `<projectFolder>/${outputFilePath.replaceAll("\\", "/")}`
97904
+ untrimmedFilePath: _path2.default.join(
97905
+ "<projectFolder>",
97906
+ options.outDir,
97907
+ `index${dtsExtension}`
97908
+ ),
97909
+ betaTrimmedFilePath: _path2.default.join(
97910
+ "<projectFolder>",
97911
+ options.outDir,
97912
+ "index-beta.d.ts"
97913
+ ),
97914
+ publicTrimmedFilePath: _path2.default.join(
97915
+ "<projectFolder>",
97916
+ options.outDir,
97917
+ "index-public.d.ts"
97918
+ )
97962
97919
  },
97963
97920
  tsdocMetadata: {
97964
97921
  enabled: options.tsdocMetadata !== false,
97965
- tsdocMetadataFilePath: `<projectFolder>/${_path2.default.join(
97966
- projectFolder,
97922
+ tsdocMetadataFilePath: _path2.default.join(
97923
+ "<projectFolder>",
97924
+ "dist",
97925
+ options.projectRoot,
97967
97926
  "tsdoc-metadata.api.json"
97968
- ).replaceAll("\\", "/")}`
97927
+ )
97969
97928
  },
97970
97929
  compiler: {
97971
97930
  tsconfigFilePath
97972
97931
  },
97973
- projectFolder: `./`
97932
+ projectFolder: "./"
97974
97933
  };
97975
97934
  const prepareOptions = {
97976
97935
  configObject,
97977
97936
  configObjectFullPath: void 0,
97978
97937
  packageJsonFullPath: _path2.default.join(
97979
97938
  options.workspaceRoot,
97980
- projectFolder,
97939
+ "dist",
97940
+ options.projectRoot,
97981
97941
  "package.json"
97982
97942
  )
97983
97943
  };
@@ -98027,7 +97987,7 @@ var require_dist5 = __commonJS({
98027
97987
  let dtsExtension = _chunkGQ77QZBOjs.defaultOutExtension.call(void 0, { format: format2, pkgType: pkg.type }).dts;
98028
97988
  let dtsInputFilePath = _path2.default.join(
98029
97989
  declarationDir,
98030
- options.projectRoot,
97990
+ outDir.replace(pkgPath, ""),
98031
97991
  "_tsup-dts-aggregation" + dtsExtension
98032
97992
  );
98033
97993
  dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
@@ -98036,32 +97996,15 @@ var require_dist5 = __commonJS({
98036
97996
  dtsInputFilePath,
98037
97997
  formatAggregationExports(exports2, declarationDir)
98038
97998
  );
98039
- let dtsOutputFilePath = _path2.default.join(outDir, "declarations" + dtsExtension);
98040
97999
  rollupDtsFile(
98041
98000
  options,
98042
- dtsInputFilePath,
98043
- dtsOutputFilePath,
98001
+ _path2.default.join(
98002
+ "<projectFolder>",
98003
+ dtsInputFilePath.replace(options.workspaceRoot, "")
98004
+ ),
98005
+ dtsExtension,
98044
98006
  options.tsconfig || "tsconfig.json"
98045
98007
  );
98046
- for (let [out, sourceFileName] of Object.entries(
98047
- options.experimentalDts.entry
98048
- )) {
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}`);
98056
- const currentExports = exports2.filter(
98057
- (declaration) => declaration.sourceFileName.replaceAll("/", "\\") === sourceFileName.replaceAll("/", "\\")
98058
- );
98059
- _chunkGQ77QZBOjs.writeFileSync.call(
98060
- void 0,
98061
- outFileName,
98062
- formatDistributionExports(currentExports, outFileName, dtsOutputFilePath, logger2, options)
98063
- );
98064
- }
98065
98008
  }
98066
98009
  async function runDtsRollup(options, exports2) {
98067
98010
  try {