@storm-software/workspace-tools 1.16.5 → 1.16.7

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,18 @@
1
+ ## [1.16.6](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.16.5...workspace-tools-v1.16.6) (2023-11-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Resolve issue with api-extractor output directory ([5aa99ef](https://github.com/storm-software/storm-ops/commit/5aa99ef09950a738e658d4c75c6e241e4f1b4f14))
7
+
8
+ ## [1.16.5](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.16.4...workspace-tools-v1.16.5) (2023-11-29)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **git-tools:** Resolved issue with generation of options table in readme-gen ([69f9c86](https://github.com/storm-software/storm-ops/commit/69f9c86efc90e117c4ec9a5b4d1a520d764af4f5))
14
+ * **workspace-tools:** Resolved issue with paths passed to api-extractor ([3f7c5ea](https://github.com/storm-software/storm-ops/commit/3f7c5ea14b3db1d1444624781a5ec025cc432552))
15
+
1
16
  ## [1.16.4](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.16.3...workspace-tools-v1.16.4) (2023-11-29)
2
17
 
3
18
 
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=kxprmcgxw47lxad5mj6nzl2j4q_@microsoft+api-extractor@7.38.3_@swc+core@1._j43in2cnhizumbmv4i57wgcjiq/node_modules/tsup/dist/chunk-EPAEWGCP.js
40022
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/chunk-EPAEWGCP.js
40023
40023
  var require_chunk_EPAEWGCP = __commonJS({
40024
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=kxprmcgxw47lxad5mj6nzl2j4q_@microsoft+api-extractor@7.38.3_@swc+core@1._j43in2cnhizumbmv4i57wgcjiq/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
40024
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/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=kxprmcgxw47lxad5mj6nzl2j4q_@microsoft+api-extractor@7.38.3_@swc+core@1._j43in2cnhizumbmv4i57wgcjiq/node_modules/tsup/dist/chunk-GQ77QZBO.js
40484
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/chunk-GQ77QZBO.js
40485
40485
  var require_chunk_GQ77QZBO = __commonJS({
40486
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=kxprmcgxw47lxad5mj6nzl2j4q_@microsoft+api-extractor@7.38.3_@swc+core@1._j43in2cnhizumbmv4i57wgcjiq/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
40486
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/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=kxprmcgxw47lxad5mj6nzl2j4q_@microsoft+api-extractor@7.38.3_@swc+core@1._j43in2cnhizumbmv4i57wgcjiq/node_modules/tsup/dist/chunk-UIX4URMV.js
40764
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/chunk-UIX4URMV.js
40765
40765
  var require_chunk_UIX4URMV = __commonJS({
40766
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=kxprmcgxw47lxad5mj6nzl2j4q_@microsoft+api-extractor@7.38.3_@swc+core@1._j43in2cnhizumbmv4i57wgcjiq/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
40766
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/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=kxprmcgxw47lxad5mj6nzl2j4q_@microsoft+api-extractor@7.38.3_@swc+core@1._j43in2cnhizumbmv4i57wgcjiq/node_modules/tsup/dist/chunk-7G76EW2R.js
41700
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/chunk-7G76EW2R.js
41701
41701
  var require_chunk_7G76EW2R = __commonJS({
41702
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=kxprmcgxw47lxad5mj6nzl2j4q_@microsoft+api-extractor@7.38.3_@swc+core@1._j43in2cnhizumbmv4i57wgcjiq/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
41702
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/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=kxprmcgxw47lxad5mj6nzl2j4q_@microsoft+api-extractor@7.38.3_@swc+core@1._j43in2cnhizumbmv4i57wgcjiq/node_modules/tsup/dist/index.js
95508
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/index.js
95509
95509
  var require_dist5 = __commonJS({
95510
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=kxprmcgxw47lxad5mj6nzl2j4q_@microsoft+api-extractor@7.38.3_@swc+core@1._j43in2cnhizumbmv4i57wgcjiq/node_modules/tsup/dist/index.js"(exports) {
95510
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/index.js"(exports) {
95511
95511
  "use strict";
95512
95512
  Object.defineProperty(exports, "__esModule", { value: true });
95513
95513
  function _interopRequireDefault(obj) {
@@ -97870,9 +97870,6 @@ var require_dist5 = __commonJS({
97870
97870
  var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
97871
97871
  function rollupDtsFile(options, inputFilePath, dtsExtension, tsconfigFilePath) {
97872
97872
  let projectFolder = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
97873
- if (projectFolder.endsWith("/")) {
97874
- projectFolder = projectFolder.slice(0, -1);
97875
- }
97876
97873
  !options.silent && logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${projectFolder}`);
97877
97874
  const apiReferenceProjectDir = _path2.default.join(
97878
97875
  options.workspaceRoot,
@@ -97902,15 +97899,15 @@ var require_dist5 = __commonJS({
97902
97899
  dtsRollup: {
97903
97900
  enabled: true,
97904
97901
  untrimmedFilePath: `<projectFolder>/${_path2.default.join(
97905
- options.outDir.replace(projectFolder, ""),
97902
+ options.outDir.replaceAll("\\", "/").replace(projectFolder.replaceAll("\\", "/"), ""),
97906
97903
  `index${dtsExtension}`
97907
97904
  ).replaceAll("\\", "/")}`,
97908
97905
  betaTrimmedFilePath: `<projectFolder>/${_path2.default.join(
97909
- options.outDir.replace(projectFolder, ""),
97906
+ options.outDir.replaceAll("\\", "/").replace(projectFolder.replaceAll("\\", "/"), ""),
97910
97907
  "index-beta.d.ts"
97911
97908
  ).replaceAll("\\", "/")}`,
97912
97909
  publicTrimmedFilePath: `<projectFolder>/${_path2.default.join(
97913
- options.outDir.replace(projectFolder, ""),
97910
+ options.outDir.replaceAll("\\", "/").replace(projectFolder.replaceAll("\\", "/"), ""),
97914
97911
  "index-public.d.ts"
97915
97912
  ).replaceAll("\\", "/")}`
97916
97913
  },
@@ -97978,7 +97975,7 @@ var require_dist5 = __commonJS({
97978
97975
  let dtsExtension = _chunkGQ77QZBOjs.defaultOutExtension.call(void 0, { format: format2, pkgType: pkg.type }).dts;
97979
97976
  let dtsInputFilePath = _path2.default.join(
97980
97977
  declarationDir,
97981
- outDir.replace(pkgPath, ""),
97978
+ outDir.replaceAll("\\", "/").replace(pkgPath.replaceAll("\\", "/"), ""),
97982
97979
  "_tsup-dts-aggregation" + dtsExtension
97983
97980
  );
97984
97981
  dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
@@ -105091,7 +105088,7 @@ ${Object.keys(options).map(
105091
105088
  if (options.includeSrc) {
105092
105089
  assets.push({
105093
105090
  input: sourceRoot,
105094
- glob: "**/{*.d.ts,*.ts,*.tsx}",
105091
+ glob: "**/{*.ts,*.tsx,*.js,*.jsx}",
105095
105092
  output: "src/"
105096
105093
  });
105097
105094
  }
@@ -105181,6 +105178,10 @@ ${externalDependencies.map((dep) => {
105181
105178
  packageJson.main ??= "dist/legacy/index.cjs";
105182
105179
  packageJson.module ??= "dist/legacy/index.js";
105183
105180
  options.platform && options.platform !== "node" && (packageJson.browser ??= "dist/modern/index.global.js");
105181
+ options.includeSrc && (packageJson.source ??= `./${(0, import_path3.join)(
105182
+ sourceRoot.replace(projectRoot, ""),
105183
+ "index.ts"
105184
+ ).replaceAll("\\", "/")}`);
105184
105185
  packageJson.sideEffects ??= false;
105185
105186
  packageJson.files ??= ["dist"];
105186
105187
  if (options.includeSrc && !packageJson.files.includes("src")) {
@@ -105219,10 +105220,10 @@ ${externalDependencies.map((dep) => {
105219
105220
  );
105220
105221
  if (options.banner && options.includeSrc) {
105221
105222
  const files = globSync([
105222
- (0, import_path3.join)(context.root, outputPath, "src/**/*.ts"),
105223
- (0, import_path3.join)(context.root, outputPath, "src/**/*.tsx"),
105224
- (0, import_path3.join)(context.root, outputPath, "src/**/*.js"),
105225
- (0, import_path3.join)(context.root, outputPath, "src/**/*.jsx")
105223
+ (0, import_path3.join)(context.root, outputPath, "src/**/*.ts").replaceAll("/", "\\"),
105224
+ (0, import_path3.join)(context.root, outputPath, "src/**/*.tsx").replaceAll("/", "\\"),
105225
+ (0, import_path3.join)(context.root, outputPath, "src/**/*.js").replaceAll("/", "\\"),
105226
+ (0, import_path3.join)(context.root, outputPath, "src/**/*.jsx").replaceAll("/", "\\")
105226
105227
  ]);
105227
105228
  await Promise.allSettled(
105228
105229
  files.map(