@storm-software/workspace-tools 1.16.7 → 1.16.8

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.7",
3
+ "version": "1.16.8",
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=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/chunk-EPAEWGCP.js
40022
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/node_modules/tsup/dist/chunk-EPAEWGCP.js
40023
40023
  var require_chunk_EPAEWGCP = __commonJS({
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) {
40024
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/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=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/chunk-GQ77QZBO.js
40484
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/node_modules/tsup/dist/chunk-GQ77QZBO.js
40485
40485
  var require_chunk_GQ77QZBO = __commonJS({
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) {
40486
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/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=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/chunk-UIX4URMV.js
40764
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/node_modules/tsup/dist/chunk-UIX4URMV.js
40765
40765
  var require_chunk_UIX4URMV = __commonJS({
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) {
40766
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/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=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/chunk-7G76EW2R.js
41700
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/node_modules/tsup/dist/chunk-7G76EW2R.js
41701
41701
  var require_chunk_7G76EW2R = __commonJS({
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) {
41702
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/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=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/index.js
95508
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/node_modules/tsup/dist/index.js
95509
95509
  var require_dist5 = __commonJS({
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) {
95510
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/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,58 +97867,112 @@ var require_dist5 = __commonJS({
97867
97867
  throw new Error("Unknown declaration");
97868
97868
  }
97869
97869
  }
97870
+ function formatDistributionExports(exports2, fromFilePath, toFilePath) {
97871
+ let importPath = _chunkGQ77QZBOjs.trimDtsExtension.call(
97872
+ void 0,
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))
97876
+ )
97877
+ );
97878
+ if (!importPath.match(/^\.+\//)) {
97879
+ importPath = "./" + importPath;
97880
+ }
97881
+ let seen = {
97882
+ named: /* @__PURE__ */ new Set(),
97883
+ module: /* @__PURE__ */ new Set()
97884
+ };
97885
+ const lines = exports2.filter((declaration) => {
97886
+ if (declaration.kind === "module") {
97887
+ if (seen.module.has(declaration.moduleName)) {
97888
+ return false;
97889
+ }
97890
+ seen.module.add(declaration.moduleName);
97891
+ return true;
97892
+ } else if (declaration.kind === "named") {
97893
+ if (seen.named.has(declaration.name)) {
97894
+ return false;
97895
+ }
97896
+ seen.named.add(declaration.name);
97897
+ return true;
97898
+ } else {
97899
+ return false;
97900
+ }
97901
+ }).map((declaration) => formatDistributionExport(declaration, importPath)).filter(_chunkGQ77QZBOjs.truthy);
97902
+ if (lines.length === 0) {
97903
+ lines.push("export {};");
97904
+ }
97905
+ return lines.join("\n") + "\n";
97906
+ }
97907
+ function formatDistributionExport(declaration, dest) {
97908
+ if (declaration.kind === "named") {
97909
+ return [
97910
+ "export",
97911
+ declaration.isTypeOnly ? "type" : "",
97912
+ "{",
97913
+ declaration.alias,
97914
+ declaration.name === declaration.alias ? "" : `as ${declaration.name}`,
97915
+ "} from",
97916
+ `'${dest}';`
97917
+ ].filter(_chunkGQ77QZBOjs.truthy).join(" ");
97918
+ } else if (declaration.kind === "module") {
97919
+ return `export * from '${declaration.moduleName}';`;
97920
+ }
97921
+ return "";
97922
+ }
97870
97923
  var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
97871
97924
  function rollupDtsFile(options, inputFilePath, dtsExtension, tsconfigFilePath) {
97872
97925
  let projectFolder = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
97873
97926
  !options.silent && logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${projectFolder}`);
97874
- const apiReferenceProjectDir = _path2.default.join(
97875
- options.workspaceRoot,
97927
+ const apiReferenceProjectDir = `<projectFolder>/${_path2.default.join(
97876
97928
  "docs",
97877
97929
  "api-reports",
97878
97930
  options.projectRoot
97879
- ).replaceAll("/", "\\");
97931
+ ).replaceAll("\\", "/")}`;
97880
97932
  let configObject = {
97881
- mainEntryPointFilePath: inputFilePath.includes(options.workspaceRoot) ? inputFilePath : _path2.default.join(options.workspaceRoot, inputFilePath),
97933
+ mainEntryPointFilePath: inputFilePath,
97882
97934
  apiReport: {
97883
97935
  enabled: options.apiReport !== false,
97884
97936
  reportFileName: "api-report.md",
97885
97937
  reportFolder: apiReferenceProjectDir,
97886
- reportTempFolder: _path2.default.join(
97887
- options.workspaceRoot,
97938
+ reportTempFolder: `<projectFolder>/${_path2.default.join(
97888
97939
  "tmp",
97889
97940
  "api-reports"
97890
- ).replaceAll("/", "\\")
97941
+ ).replaceAll("\\", "/")}`
97891
97942
  },
97892
97943
  docModel: {
97893
97944
  enabled: options.docModel !== false,
97894
97945
  apiJsonFilePath: _path2.default.join(
97895
97946
  apiReferenceProjectDir,
97896
97947
  "documents-model.api.json"
97897
- ).replaceAll("/", "\\")
97948
+ ).replaceAll("\\", "/")
97898
97949
  },
97899
97950
  dtsRollup: {
97900
97951
  enabled: true,
97901
97952
  untrimmedFilePath: `<projectFolder>/${_path2.default.join(
97902
- options.outDir.replaceAll("\\", "/").replace(projectFolder.replaceAll("\\", "/"), ""),
97953
+ options.outDir,
97903
97954
  `index${dtsExtension}`
97904
97955
  ).replaceAll("\\", "/")}`,
97905
97956
  betaTrimmedFilePath: `<projectFolder>/${_path2.default.join(
97906
- options.outDir.replaceAll("\\", "/").replace(projectFolder.replaceAll("\\", "/"), ""),
97907
- "index-beta.d.ts"
97957
+ options.outDir,
97958
+ `index-beta${dtsExtension}`
97908
97959
  ).replaceAll("\\", "/")}`,
97909
97960
  publicTrimmedFilePath: `<projectFolder>/${_path2.default.join(
97910
- options.outDir.replaceAll("\\", "/").replace(projectFolder.replaceAll("\\", "/"), ""),
97911
- "index-public.d.ts"
97961
+ options.outDir,
97962
+ `index-public${dtsExtension}`
97912
97963
  ).replaceAll("\\", "/")}`
97913
97964
  },
97914
97965
  tsdocMetadata: {
97915
97966
  enabled: options.tsdocMetadata !== false,
97916
- tsdocMetadataFilePath: "<projectFolder>/tsdoc-metadata.api.json"
97967
+ tsdocMetadataFilePath: `<projectFolder>/${_path2.default.join(
97968
+ projectFolder,
97969
+ "tsdoc-metadata.api.json"
97970
+ ).replaceAll("\\", "/")}`
97917
97971
  },
97918
97972
  compiler: {
97919
97973
  tsconfigFilePath
97920
97974
  },
97921
- projectFolder: `./${projectFolder}`
97975
+ projectFolder: `./`
97922
97976
  };
97923
97977
  const prepareOptions = {
97924
97978
  configObject,
@@ -97975,7 +98029,7 @@ var require_dist5 = __commonJS({
97975
98029
  let dtsExtension = _chunkGQ77QZBOjs.defaultOutExtension.call(void 0, { format: format2, pkgType: pkg.type }).dts;
97976
98030
  let dtsInputFilePath = _path2.default.join(
97977
98031
  declarationDir,
97978
- outDir.replaceAll("\\", "/").replace(pkgPath.replaceAll("\\", "/"), ""),
98032
+ pkgPath,
97979
98033
  "_tsup-dts-aggregation" + dtsExtension
97980
98034
  );
97981
98035
  dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
@@ -97990,6 +98044,20 @@ var require_dist5 = __commonJS({
97990
98044
  dtsExtension,
97991
98045
  options.tsconfig || "tsconfig.json"
97992
98046
  );
98047
+ for (let [out, sourceFileName] of Object.entries(
98048
+ options.experimentalDts.entry
98049
+ )) {
98050
+ sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName);
98051
+ const outFileName = _path2.default.join(outDir, out + dtsExtension);
98052
+ const currentExports = exports2.filter(
98053
+ (declaration) => declaration.sourceFileName === sourceFileName
98054
+ );
98055
+ _chunkGQ77QZBOjs.writeFileSync.call(
98056
+ void 0,
98057
+ outFileName,
98058
+ formatDistributionExports(currentExports, outFileName, outDir)
98059
+ );
98060
+ }
97993
98061
  }
97994
98062
  async function runDtsRollup(options, exports2) {
97995
98063
  try {
@@ -105021,11 +105089,11 @@ ${Object.keys(options).map(
105021
105089
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
105022
105090
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
105023
105091
  const outputPath = applyWorkspaceTokens(
105024
- options.outputPath ? options.outputPath : (0, import_path3.join)(workspaceRoot, "dist", projectRoot),
105092
+ options.outputPath ? options.outputPath : "dist/{projectRoot}",
105025
105093
  context
105026
105094
  );
105027
105095
  options.entry = applyWorkspaceTokens(
105028
- options.entry ? options.entry : (0, import_path3.join)(sourceRoot, "index.ts"),
105096
+ options.entry ? options.entry : "{sourceRoot}/index.ts",
105029
105097
  context
105030
105098
  );
105031
105099
  if (options.clean !== false) {
@@ -105043,7 +105111,7 @@ ${Object.keys(options).map(
105043
105111
  glob: "LICENSE",
105044
105112
  output: "."
105045
105113
  });
105046
- if (options.includeSrc) {
105114
+ if (options.includeSrc !== false) {
105047
105115
  assets.push({
105048
105116
  input: sourceRoot,
105049
105117
  glob: "**/{*.ts,*.tsx,*.js,*.jsx}",
@@ -105136,13 +105204,19 @@ ${externalDependencies.map((dep) => {
105136
105204
  packageJson.main ??= "dist/legacy/index.cjs";
105137
105205
  packageJson.module ??= "dist/legacy/index.js";
105138
105206
  options.platform && options.platform !== "node" && (packageJson.browser ??= "dist/modern/index.global.js");
105139
- options.includeSrc && (packageJson.source ??= `./${(0, import_path3.join)(
105140
- sourceRoot.replace(projectRoot, ""),
105141
- "index.ts"
105142
- ).replaceAll("\\", "/")}`);
105207
+ if (options.includeSrc !== false) {
105208
+ let distSrc = sourceRoot.replace(projectRoot, "");
105209
+ if (distSrc.startsWith("/")) {
105210
+ distSrc = distSrc.substring(1);
105211
+ }
105212
+ packageJson.source ??= `./${(0, import_path3.join)(distSrc, "index.ts").replaceAll(
105213
+ "\\",
105214
+ "/"
105215
+ )}`;
105216
+ }
105143
105217
  packageJson.sideEffects ??= false;
105144
105218
  packageJson.files ??= ["dist"];
105145
- if (options.includeSrc && !packageJson.files.includes("src")) {
105219
+ if (options.includeSrc !== false && !packageJson.files.includes("src")) {
105146
105220
  packageJson.files.push("src");
105147
105221
  }
105148
105222
  packageJson.publishConfig ??= {
@@ -105176,12 +105250,12 @@ ${externalDependencies.map((dep) => {
105176
105250
  endOfLine: "lf"
105177
105251
  })
105178
105252
  );
105179
- if (options.banner && options.includeSrc) {
105253
+ if (options.banner && options.includeSrc !== false) {
105180
105254
  const files = globSync([
105181
- (0, import_path3.join)(context.root, outputPath, "src/**/*.ts").replaceAll("/", "\\"),
105182
- (0, import_path3.join)(context.root, outputPath, "src/**/*.tsx").replaceAll("/", "\\"),
105183
- (0, import_path3.join)(context.root, outputPath, "src/**/*.js").replaceAll("/", "\\"),
105184
- (0, import_path3.join)(context.root, outputPath, "src/**/*.jsx").replaceAll("/", "\\")
105255
+ (0, import_devkit.joinPathFragments)(context.root, outputPath, "src/**/*.ts"),
105256
+ (0, import_devkit.joinPathFragments)(context.root, outputPath, "src/**/*.tsx"),
105257
+ (0, import_devkit.joinPathFragments)(context.root, outputPath, "src/**/*.js"),
105258
+ (0, import_devkit.joinPathFragments)(context.root, outputPath, "src/**/*.jsx")
105185
105259
  ]);
105186
105260
  await Promise.allSettled(
105187
105261
  files.map(
@@ -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=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/chunk-EPAEWGCP.js
243
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/node_modules/tsup/dist/chunk-EPAEWGCP.js
244
244
  var require_chunk_EPAEWGCP = __commonJS({
245
- "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) {
245
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/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=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/chunk-GQ77QZBO.js
6552
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/node_modules/tsup/dist/chunk-GQ77QZBO.js
6553
6553
  var require_chunk_GQ77QZBO = __commonJS({
6554
- "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) {
6554
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/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=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/chunk-UIX4URMV.js
6832
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/node_modules/tsup/dist/chunk-UIX4URMV.js
6833
6833
  var require_chunk_UIX4URMV = __commonJS({
6834
- "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) {
6834
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/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=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/chunk-7G76EW2R.js
7768
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/node_modules/tsup/dist/chunk-7G76EW2R.js
7769
7769
  var require_chunk_7G76EW2R = __commonJS({
7770
- "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) {
7770
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/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=d2blsoru5emald3pptgqr7ui44_@microsoft+api-extractor@7.38.3_@swc+core@1._mqw7rfk4yr63tv2o25rdqexiv4/node_modules/tsup/dist/index.js
61576
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/node_modules/tsup/dist/index.js
61577
61577
  var require_dist5 = __commonJS({
61578
- "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) {
61578
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=mwafxokpvbjw3x2brcsxgpq25u_@microsoft+api-extractor@7.38.3_@swc+core@1._oivrduymnsbv3knduf2tb3tfgy/node_modules/tsup/dist/index.js"(exports) {
61579
61579
  "use strict";
61580
61580
  Object.defineProperty(exports, "__esModule", { value: true });
61581
61581
  function _interopRequireDefault(obj) {
@@ -63935,58 +63935,112 @@ var require_dist5 = __commonJS({
63935
63935
  throw new Error("Unknown declaration");
63936
63936
  }
63937
63937
  }
63938
+ function formatDistributionExports(exports2, fromFilePath, toFilePath) {
63939
+ let importPath = _chunkGQ77QZBOjs.trimDtsExtension.call(
63940
+ void 0,
63941
+ _path2.default.posix.relative(
63942
+ _path2.default.posix.dirname(_path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(void 0, fromFilePath))),
63943
+ _path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(void 0, toFilePath))
63944
+ )
63945
+ );
63946
+ if (!importPath.match(/^\.+\//)) {
63947
+ importPath = "./" + importPath;
63948
+ }
63949
+ let seen = {
63950
+ named: /* @__PURE__ */ new Set(),
63951
+ module: /* @__PURE__ */ new Set()
63952
+ };
63953
+ const lines = exports2.filter((declaration) => {
63954
+ if (declaration.kind === "module") {
63955
+ if (seen.module.has(declaration.moduleName)) {
63956
+ return false;
63957
+ }
63958
+ seen.module.add(declaration.moduleName);
63959
+ return true;
63960
+ } else if (declaration.kind === "named") {
63961
+ if (seen.named.has(declaration.name)) {
63962
+ return false;
63963
+ }
63964
+ seen.named.add(declaration.name);
63965
+ return true;
63966
+ } else {
63967
+ return false;
63968
+ }
63969
+ }).map((declaration) => formatDistributionExport(declaration, importPath)).filter(_chunkGQ77QZBOjs.truthy);
63970
+ if (lines.length === 0) {
63971
+ lines.push("export {};");
63972
+ }
63973
+ return lines.join("\n") + "\n";
63974
+ }
63975
+ function formatDistributionExport(declaration, dest) {
63976
+ if (declaration.kind === "named") {
63977
+ return [
63978
+ "export",
63979
+ declaration.isTypeOnly ? "type" : "",
63980
+ "{",
63981
+ declaration.alias,
63982
+ declaration.name === declaration.alias ? "" : `as ${declaration.name}`,
63983
+ "} from",
63984
+ `'${dest}';`
63985
+ ].filter(_chunkGQ77QZBOjs.truthy).join(" ");
63986
+ } else if (declaration.kind === "module") {
63987
+ return `export * from '${declaration.moduleName}';`;
63988
+ }
63989
+ return "";
63990
+ }
63938
63991
  var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
63939
63992
  function rollupDtsFile(options, inputFilePath, dtsExtension, tsconfigFilePath) {
63940
63993
  let projectFolder = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
63941
63994
  !options.silent && logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${projectFolder}`);
63942
- const apiReferenceProjectDir = _path2.default.join(
63943
- options.workspaceRoot,
63995
+ const apiReferenceProjectDir = `<projectFolder>/${_path2.default.join(
63944
63996
  "docs",
63945
63997
  "api-reports",
63946
63998
  options.projectRoot
63947
- ).replaceAll("/", "\\");
63999
+ ).replaceAll("\\", "/")}`;
63948
64000
  let configObject = {
63949
- mainEntryPointFilePath: inputFilePath.includes(options.workspaceRoot) ? inputFilePath : _path2.default.join(options.workspaceRoot, inputFilePath),
64001
+ mainEntryPointFilePath: inputFilePath,
63950
64002
  apiReport: {
63951
64003
  enabled: options.apiReport !== false,
63952
64004
  reportFileName: "api-report.md",
63953
64005
  reportFolder: apiReferenceProjectDir,
63954
- reportTempFolder: _path2.default.join(
63955
- options.workspaceRoot,
64006
+ reportTempFolder: `<projectFolder>/${_path2.default.join(
63956
64007
  "tmp",
63957
64008
  "api-reports"
63958
- ).replaceAll("/", "\\")
64009
+ ).replaceAll("\\", "/")}`
63959
64010
  },
63960
64011
  docModel: {
63961
64012
  enabled: options.docModel !== false,
63962
64013
  apiJsonFilePath: _path2.default.join(
63963
64014
  apiReferenceProjectDir,
63964
64015
  "documents-model.api.json"
63965
- ).replaceAll("/", "\\")
64016
+ ).replaceAll("\\", "/")
63966
64017
  },
63967
64018
  dtsRollup: {
63968
64019
  enabled: true,
63969
64020
  untrimmedFilePath: `<projectFolder>/${_path2.default.join(
63970
- options.outDir.replaceAll("\\", "/").replace(projectFolder.replaceAll("\\", "/"), ""),
64021
+ options.outDir,
63971
64022
  `index${dtsExtension}`
63972
64023
  ).replaceAll("\\", "/")}`,
63973
64024
  betaTrimmedFilePath: `<projectFolder>/${_path2.default.join(
63974
- options.outDir.replaceAll("\\", "/").replace(projectFolder.replaceAll("\\", "/"), ""),
63975
- "index-beta.d.ts"
64025
+ options.outDir,
64026
+ `index-beta${dtsExtension}`
63976
64027
  ).replaceAll("\\", "/")}`,
63977
64028
  publicTrimmedFilePath: `<projectFolder>/${_path2.default.join(
63978
- options.outDir.replaceAll("\\", "/").replace(projectFolder.replaceAll("\\", "/"), ""),
63979
- "index-public.d.ts"
64029
+ options.outDir,
64030
+ `index-public${dtsExtension}`
63980
64031
  ).replaceAll("\\", "/")}`
63981
64032
  },
63982
64033
  tsdocMetadata: {
63983
64034
  enabled: options.tsdocMetadata !== false,
63984
- tsdocMetadataFilePath: "<projectFolder>/tsdoc-metadata.api.json"
64035
+ tsdocMetadataFilePath: `<projectFolder>/${_path2.default.join(
64036
+ projectFolder,
64037
+ "tsdoc-metadata.api.json"
64038
+ ).replaceAll("\\", "/")}`
63985
64039
  },
63986
64040
  compiler: {
63987
64041
  tsconfigFilePath
63988
64042
  },
63989
- projectFolder: `./${projectFolder}`
64043
+ projectFolder: `./`
63990
64044
  };
63991
64045
  const prepareOptions = {
63992
64046
  configObject,
@@ -64043,7 +64097,7 @@ var require_dist5 = __commonJS({
64043
64097
  let dtsExtension = _chunkGQ77QZBOjs.defaultOutExtension.call(void 0, { format, pkgType: pkg.type }).dts;
64044
64098
  let dtsInputFilePath = _path2.default.join(
64045
64099
  declarationDir,
64046
- outDir.replaceAll("\\", "/").replace(pkgPath.replaceAll("\\", "/"), ""),
64100
+ pkgPath,
64047
64101
  "_tsup-dts-aggregation" + dtsExtension
64048
64102
  );
64049
64103
  dtsInputFilePath = dtsInputFilePath.replace(/\.d\.mts$/, ".dmts.d.ts").replace(/\.d\.cts$/, ".dcts.d.ts");
@@ -64058,6 +64112,20 @@ var require_dist5 = __commonJS({
64058
64112
  dtsExtension,
64059
64113
  options.tsconfig || "tsconfig.json"
64060
64114
  );
64115
+ for (let [out, sourceFileName] of Object.entries(
64116
+ options.experimentalDts.entry
64117
+ )) {
64118
+ sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName);
64119
+ const outFileName = _path2.default.join(outDir, out + dtsExtension);
64120
+ const currentExports = exports2.filter(
64121
+ (declaration) => declaration.sourceFileName === sourceFileName
64122
+ );
64123
+ _chunkGQ77QZBOjs.writeFileSync.call(
64124
+ void 0,
64125
+ outFileName,
64126
+ formatDistributionExports(currentExports, outFileName, outDir)
64127
+ );
64128
+ }
64061
64129
  }
64062
64130
  async function runDtsRollup(options, exports2) {
64063
64131
  try {