@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.16.11",
3
+ "version": "1.16.13",
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": [
@@ -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 {
@@ -240,9 +240,9 @@ var require_brace_expansion = __commonJS({
240
240
  }
241
241
  });
242
242
 
243
- // 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
243
+ // 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
244
244
  var require_chunk_EPAEWGCP = __commonJS({
245
- "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) {
245
+ "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) {
246
246
  "use strict";
247
247
  Object.defineProperty(exports, "__esModule", { value: true });
248
248
  var version = "8.0.0";
@@ -6549,9 +6549,9 @@ var require_resolve_from = __commonJS({
6549
6549
  }
6550
6550
  });
6551
6551
 
6552
- // 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
6552
+ // 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
6553
6553
  var require_chunk_GQ77QZBO = __commonJS({
6554
- "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) {
6554
+ "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) {
6555
6555
  "use strict";
6556
6556
  Object.defineProperty(exports, "__esModule", { value: true });
6557
6557
  function _interopRequireDefault(obj) {
@@ -6829,9 +6829,9 @@ var require_chunk_GQ77QZBO = __commonJS({
6829
6829
  }
6830
6830
  });
6831
6831
 
6832
- // 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
6832
+ // 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
6833
6833
  var require_chunk_UIX4URMV = __commonJS({
6834
- "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) {
6834
+ "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) {
6835
6835
  "use strict";
6836
6836
  Object.defineProperty(exports, "__esModule", { value: true });
6837
6837
  function _interopRequireWildcard(obj) {
@@ -7765,9 +7765,9 @@ var require_dist2 = __commonJS({
7765
7765
  }
7766
7766
  });
7767
7767
 
7768
- // 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
7768
+ // 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
7769
7769
  var require_chunk_7G76EW2R = __commonJS({
7770
- "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) {
7770
+ "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) {
7771
7771
  "use strict";
7772
7772
  Object.defineProperty(exports, "__esModule", { value: true });
7773
7773
  function _interopRequireDefault(obj) {
@@ -61573,9 +61573,9 @@ var require_chokidar = __commonJS({
61573
61573
  }
61574
61574
  });
61575
61575
 
61576
- // 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
61576
+ // 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
61577
61577
  var require_dist5 = __commonJS({
61578
- "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) {
61578
+ "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) {
61579
61579
  "use strict";
61580
61580
  Object.defineProperty(exports, "__esModule", { value: true });
61581
61581
  function _interopRequireDefault(obj) {
@@ -63191,7 +63191,7 @@ var require_dist5 = __commonJS({
63191
63191
  `\u26A1 No package.json file found, using ${pkgPath} as the output directory`
63192
63192
  );
63193
63193
  }
63194
- return pkgPath.replaceAll("\\", "/");
63194
+ return pkgPath;
63195
63195
  };
63196
63196
  async function runEsbuild(options, {
63197
63197
  format,
@@ -63935,117 +63935,77 @@ var require_dist5 = __commonJS({
63935
63935
  throw new Error("Unknown declaration");
63936
63936
  }
63937
63937
  }
63938
- function formatDistributionExports(exports2, fromFilePath, toFilePath, logger3, options) {
63939
- let importPath = _chunkGQ77QZBOjs.trimDtsExtension.call(
63940
- void 0,
63941
- _path2.default.posix.relative(
63942
- _path2.default.posix.dirname(_path2.default.posix.normalize(
63943
- _chunkGQ77QZBOjs.slash.call(
63944
- void 0,
63945
- _path2.default.join(options.workspaceRoot, fromFilePath)
63946
- )
63947
- )),
63948
- _path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(
63949
- void 0,
63950
- _path2.default.join(options.workspaceRoot, toFilePath)
63951
- ))
63952
- )
63953
- );
63954
- if (!importPath.match(/^\.+\//)) {
63955
- importPath = "./" + importPath;
63956
- }
63957
- !options.silent && logger3.info("dts", `\u26A1 Formatting Distribution Exports with Import Path: ${importPath}`);
63958
- let seen = {
63959
- named: /* @__PURE__ */ new Set(),
63960
- module: /* @__PURE__ */ new Set()
63961
- };
63962
- const lines = exports2.filter((declaration) => {
63963
- if (declaration.kind === "module") {
63964
- if (seen.module.has(declaration.moduleName)) {
63965
- return false;
63966
- }
63967
- seen.module.add(declaration.moduleName);
63968
- return true;
63969
- } else if (declaration.kind === "named") {
63970
- if (seen.named.has(declaration.name)) {
63971
- return false;
63972
- }
63973
- seen.named.add(declaration.name);
63974
- return true;
63975
- } else {
63976
- return false;
63977
- }
63978
- }).map((declaration) => formatDistributionExport(declaration, importPath)).filter(_chunkGQ77QZBOjs.truthy);
63979
- if (lines.length === 0) {
63980
- lines.push("export {};");
63981
- }
63982
- return lines.join("\n") + "\n";
63983
- }
63984
- function formatDistributionExport(declaration, dest) {
63985
- if (declaration.kind === "named") {
63986
- return [
63987
- "export",
63988
- declaration.isTypeOnly ? "type" : "",
63989
- "{",
63990
- declaration.alias,
63991
- declaration.name === declaration.alias ? "" : `as ${declaration.name}`,
63992
- "} from",
63993
- `'${dest}';`
63994
- ].filter(_chunkGQ77QZBOjs.truthy).join(" ");
63995
- } else if (declaration.kind === "module") {
63996
- return `export * from '${declaration.moduleName}';`;
63997
- }
63998
- return "";
63999
- }
64000
63938
  var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
64001
- function rollupDtsFile(options, inputFilePath, outputFilePath, tsconfigFilePath) {
64002
- let projectFolder = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
64003
- !options.silent && logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${projectFolder}`);
64004
- const apiReferenceProjectDir = `<projectFolder>/${_path2.default.join(
63939
+ function rollupDtsFile(options, inputFilePath, dtsExtension, tsconfigFilePath) {
63940
+ let pkgPath = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
63941
+ if (pkgPath.endsWith("/")) {
63942
+ pkgPath = pkgPath.slice(0, -1);
63943
+ }
63944
+ logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${pkgPath}`);
63945
+ const apiReferenceProjectDir = _path2.default.join(
63946
+ "<projectFolder>",
64005
63947
  "docs",
64006
63948
  "api-reports",
64007
63949
  options.projectRoot
64008
- ).replaceAll("\\", "/")}`;
63950
+ );
64009
63951
  let configObject = {
64010
63952
  mainEntryPointFilePath: inputFilePath,
64011
63953
  apiReport: {
64012
63954
  enabled: options.apiReport !== false,
64013
63955
  reportFileName: "api-report.md",
64014
63956
  reportFolder: apiReferenceProjectDir,
64015
- reportTempFolder: `<projectFolder>/${_path2.default.join(
63957
+ reportTempFolder: _path2.default.join(
63958
+ "<projectFolder>",
64016
63959
  "tmp",
64017
63960
  "api-reports"
64018
- ).replaceAll("\\", "/")}`
63961
+ )
64019
63962
  },
64020
63963
  docModel: {
64021
63964
  enabled: options.docModel !== false,
64022
63965
  apiJsonFilePath: _path2.default.join(
64023
63966
  apiReferenceProjectDir,
64024
63967
  "documents-model.api.json"
64025
- ).replaceAll("\\", "/")
63968
+ )
64026
63969
  },
64027
63970
  dtsRollup: {
64028
63971
  enabled: true,
64029
- untrimmedFilePath: `<projectFolder>/${outputFilePath.replaceAll("\\", "/")}`
63972
+ untrimmedFilePath: _path2.default.join(
63973
+ "<projectFolder>",
63974
+ options.outDir,
63975
+ `index${dtsExtension}`
63976
+ ),
63977
+ betaTrimmedFilePath: _path2.default.join(
63978
+ "<projectFolder>",
63979
+ options.outDir,
63980
+ "index-beta.d.ts"
63981
+ ),
63982
+ publicTrimmedFilePath: _path2.default.join(
63983
+ "<projectFolder>",
63984
+ options.outDir,
63985
+ "index-public.d.ts"
63986
+ )
64030
63987
  },
64031
63988
  tsdocMetadata: {
64032
63989
  enabled: options.tsdocMetadata !== false,
64033
- tsdocMetadataFilePath: `<projectFolder>/${_path2.default.join(
64034
- projectFolder,
63990
+ tsdocMetadataFilePath: _path2.default.join(
63991
+ "<projectFolder>",
63992
+ "dist",
63993
+ options.projectRoot,
64035
63994
  "tsdoc-metadata.api.json"
64036
- ).replaceAll("\\", "/")}`
63995
+ )
64037
63996
  },
64038
63997
  compiler: {
64039
63998
  tsconfigFilePath
64040
63999
  },
64041
- projectFolder: `./`
64000
+ projectFolder: "./"
64042
64001
  };
64043
64002
  const prepareOptions = {
64044
64003
  configObject,
64045
64004
  configObjectFullPath: void 0,
64046
64005
  packageJsonFullPath: _path2.default.join(
64047
64006
  options.workspaceRoot,
64048
- projectFolder,
64007
+ "dist",
64008
+ options.projectRoot,
64049
64009
  "package.json"
64050
64010
  )
64051
64011
  };
@@ -64095,7 +64055,7 @@ var require_dist5 = __commonJS({
64095
64055
  let dtsExtension = _chunkGQ77QZBOjs.defaultOutExtension.call(void 0, { format, pkgType: pkg.type }).dts;
64096
64056
  let dtsInputFilePath = _path2.default.join(
64097
64057
  declarationDir,
64098
- options.projectRoot,
64058
+ outDir.replace(pkgPath, ""),
64099
64059
  "_tsup-dts-aggregation" + dtsExtension
64100
64060
  );
64101
64061
  dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
@@ -64104,32 +64064,15 @@ var require_dist5 = __commonJS({
64104
64064
  dtsInputFilePath,
64105
64065
  formatAggregationExports(exports2, declarationDir)
64106
64066
  );
64107
- let dtsOutputFilePath = _path2.default.join(outDir, "declarations" + dtsExtension);
64108
64067
  rollupDtsFile(
64109
64068
  options,
64110
- dtsInputFilePath,
64111
- dtsOutputFilePath,
64069
+ _path2.default.join(
64070
+ "<projectFolder>",
64071
+ dtsInputFilePath.replace(options.workspaceRoot, "")
64072
+ ),
64073
+ dtsExtension,
64112
64074
  options.tsconfig || "tsconfig.json"
64113
64075
  );
64114
- for (let [out, sourceFileName] of Object.entries(
64115
- options.experimentalDts.entry
64116
- )) {
64117
- sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName).replaceAll("/", "\\");
64118
- const outFileName = _path2.default.join(
64119
- options.workspaceRoot,
64120
- outDir,
64121
- out + dtsExtension
64122
- ).replaceAll("/", "\\");
64123
- !options.silent && logger2.info("dts", `\u26A1 Checking exports generation for file: ${outFileName}`);
64124
- const currentExports = exports2.filter(
64125
- (declaration) => declaration.sourceFileName.replaceAll("/", "\\") === sourceFileName.replaceAll("/", "\\")
64126
- );
64127
- _chunkGQ77QZBOjs.writeFileSync.call(
64128
- void 0,
64129
- outFileName,
64130
- formatDistributionExports(currentExports, outFileName, dtsOutputFilePath, logger2, options)
64131
- );
64132
- }
64133
64076
  }
64134
64077
  async function runDtsRollup(options, exports2) {
64135
64078
  try {