@storm-software/workspace-tools 1.13.10 → 1.13.12

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.13.10",
3
+ "version": "1.13.12",
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": [
@@ -37426,9 +37426,9 @@ var require_brace_expansion2 = __commonJS({
37426
37426
  }
37427
37427
  });
37428
37428
 
37429
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-EPAEWGCP.js
37429
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/chunk-EPAEWGCP.js
37430
37430
  var require_chunk_EPAEWGCP = __commonJS({
37431
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
37431
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
37432
37432
  "use strict";
37433
37433
  Object.defineProperty(exports, "__esModule", { value: true });
37434
37434
  var version = "8.0.0";
@@ -39075,9 +39075,9 @@ var require_resolve_from = __commonJS({
39075
39075
  }
39076
39076
  });
39077
39077
 
39078
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-GQ77QZBO.js
39078
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/chunk-GQ77QZBO.js
39079
39079
  var require_chunk_GQ77QZBO = __commonJS({
39080
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
39080
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
39081
39081
  "use strict";
39082
39082
  Object.defineProperty(exports, "__esModule", { value: true });
39083
39083
  function _interopRequireDefault(obj) {
@@ -39355,9 +39355,9 @@ var require_chunk_GQ77QZBO = __commonJS({
39355
39355
  }
39356
39356
  });
39357
39357
 
39358
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-UIX4URMV.js
39358
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/chunk-UIX4URMV.js
39359
39359
  var require_chunk_UIX4URMV = __commonJS({
39360
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
39360
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
39361
39361
  "use strict";
39362
39362
  Object.defineProperty(exports, "__esModule", { value: true });
39363
39363
  function _interopRequireWildcard(obj) {
@@ -40291,9 +40291,9 @@ var require_dist2 = __commonJS({
40291
40291
  }
40292
40292
  });
40293
40293
 
40294
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-7G76EW2R.js
40294
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/chunk-7G76EW2R.js
40295
40295
  var require_chunk_7G76EW2R = __commonJS({
40296
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
40296
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
40297
40297
  "use strict";
40298
40298
  Object.defineProperty(exports, "__esModule", { value: true });
40299
40299
  function _interopRequireDefault(obj) {
@@ -95291,9 +95291,9 @@ var require_chokidar = __commonJS({
95291
95291
  }
95292
95292
  });
95293
95293
 
95294
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/index.js
95294
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/index.js
95295
95295
  var require_dist6 = __commonJS({
95296
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/index.js"(exports) {
95296
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/index.js"(exports) {
95297
95297
  "use strict";
95298
95298
  Object.defineProperty(exports, "__esModule", { value: true });
95299
95299
  function _interopRequireDefault(obj) {
@@ -97528,8 +97528,11 @@ var require_dist6 = __commonJS({
97528
97528
  return _fs2.default.promises.readFile(name, "utf8");
97529
97529
  };
97530
97530
  var addFile = async (name, map, options, logger3) => {
97531
- const relativeName = name.replaceAll("/", "\\").replace(options.workspaceRoot, "").replaceAll("\\", "/");
97532
- if (map && map.has(relativeName)) {
97531
+ let relativeName = name.replaceAll("/", "\\").replace(options.workspaceRoot, "").replaceAll("\\", "/");
97532
+ if (!relativeName.startsWith("/")) {
97533
+ relativeName = `/${relativeName}`;
97534
+ }
97535
+ if (map && !map.has(relativeName)) {
97533
97536
  logger3.info("tsc", `Adding file to FS Map: ${relativeName}`);
97534
97537
  const file = await getFile(name, logger3);
97535
97538
  map.set(relativeName, file);
@@ -97562,6 +97565,7 @@ var require_dist6 = __commonJS({
97562
97565
  ...rawTsconfig.data,
97563
97566
  compilerOptions: {
97564
97567
  ...rawTsconfig.data.compilerOptions,
97568
+ ...compilerOptions,
97565
97569
  // Enable declaration emit and disable javascript emit
97566
97570
  outDir: options.outDir,
97567
97571
  allowJs: true,
@@ -97622,10 +97626,16 @@ var require_dist6 = __commonJS({
97622
97626
  logger.info("tsc", "Created program");
97623
97627
  logger.info("tsc", "Emitting DTS files with the following options: ");
97624
97628
  logger.info("tsc", parsedTsconfig.options);
97625
- logger.info("tsc", "Emitting DTS files");
97626
- program.emit();
97627
- logger.info("tsc", "Emit DTS files complete");
97628
- logger.info("tsc", fsMap);
97629
+ try {
97630
+ logger.info("tsc", "Emitting DTS files");
97631
+ logger.info("tsc", fsMap);
97632
+ program.emit();
97633
+ logger.info("tsc", "Emit DTS files complete");
97634
+ logger.info("tsc", fsMap);
97635
+ } catch (e) {
97636
+ logger.error("tsc", "An error occured while emitting DTS files");
97637
+ logger.error("tsc", e);
97638
+ }
97629
97639
  return getExports(options, program, fsMap);
97630
97640
  }
97631
97641
  async function runTypeScriptCompiler(options) {
@@ -97636,7 +97646,11 @@ var require_dist6 = __commonJS({
97636
97646
  };
97637
97647
  logger.info("tsc", "Build start");
97638
97648
  const dtsOptions = options.experimentalDts;
97639
- const exports2 = await emit(options, dtsOptions.compilerOptions, options.tsconfig);
97649
+ const exports2 = await emit(
97650
+ options,
97651
+ dtsOptions.compilerOptions,
97652
+ options.tsconfig
97653
+ );
97640
97654
  logger.success("tsc", `\u26A1\uFE0F Build success in ${getDuration()}`);
97641
97655
  return exports2;
97642
97656
  } catch (error) {
@@ -97736,23 +97750,17 @@ var require_dist6 = __commonJS({
97736
97750
  pkgPath = pkgPath.slice(0, -1);
97737
97751
  }
97738
97752
  logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${pkgPath}`);
97739
- let packageJsonFullPath = options.workspaceRoot ? _path2.default.join(options.workspaceRoot, pkgPath, "package.json") : _path2.default.join(pkgPath, "package.json");
97740
- const splits = pkgPath.split("\\");
97741
- logger2.info("dts", splits);
97742
- let packageName = pkgPath;
97743
- if (splits.length > 2) {
97744
- packageName = splits[splits.length - 2];
97745
- }
97746
97753
  const apiReferenceProjectDir = _path2.default.join(
97747
97754
  "<projectFolder>",
97748
- pkgPath,
97749
- "api-reports"
97755
+ "docs",
97756
+ "api-reports",
97757
+ options.projectRoot
97750
97758
  );
97751
97759
  let configObject = {
97752
97760
  mainEntryPointFilePath: inputFilePath,
97753
97761
  apiReport: {
97754
97762
  enabled: options.apiReport !== false,
97755
- reportFileName: `${packageName}.api.md`,
97763
+ reportFileName: "api-report.md",
97756
97764
  reportFolder: apiReferenceProjectDir,
97757
97765
  reportTempFolder: _path2.default.join(
97758
97766
  "<projectFolder>",
@@ -97764,7 +97772,7 @@ var require_dist6 = __commonJS({
97764
97772
  enabled: options.docModel !== false,
97765
97773
  apiJsonFilePath: _path2.default.join(
97766
97774
  apiReferenceProjectDir,
97767
- `${packageName}.api.json`
97775
+ "documents-model.api.json"
97768
97776
  )
97769
97777
  },
97770
97778
  dtsRollup: {
@@ -97777,19 +97785,20 @@ var require_dist6 = __commonJS({
97777
97785
  betaTrimmedFilePath: _path2.default.join(
97778
97786
  "<projectFolder>",
97779
97787
  options.outDir,
97780
- `index-beta.d.ts`
97788
+ "index-beta.d.ts"
97781
97789
  ),
97782
97790
  publicTrimmedFilePath: _path2.default.join(
97783
97791
  "<projectFolder>",
97784
97792
  options.outDir,
97785
- `index-public.d.ts`
97793
+ "index-public.d.ts"
97786
97794
  )
97787
97795
  },
97788
97796
  tsdocMetadata: {
97789
97797
  enabled: options.tsdocMetadata !== false,
97790
97798
  tsdocMetadataFilePath: _path2.default.join(
97791
- apiReferenceProjectDir,
97792
- `${packageName}.api.tsdoc-metadata.json`
97799
+ "<projectFolder>",
97800
+ pkgPath,
97801
+ "tsdoc-metadata.api.json"
97793
97802
  )
97794
97803
  },
97795
97804
  compiler: {
@@ -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=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-EPAEWGCP.js
243
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/chunk-EPAEWGCP.js
244
244
  var require_chunk_EPAEWGCP = __commonJS({
245
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
245
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/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=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-GQ77QZBO.js
6552
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/chunk-GQ77QZBO.js
6553
6553
  var require_chunk_GQ77QZBO = __commonJS({
6554
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
6554
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/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=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-UIX4URMV.js
6832
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/chunk-UIX4URMV.js
6833
6833
  var require_chunk_UIX4URMV = __commonJS({
6834
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
6834
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/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=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-7G76EW2R.js
7768
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/chunk-7G76EW2R.js
7769
7769
  var require_chunk_7G76EW2R = __commonJS({
7770
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
7770
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/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) {
@@ -62765,9 +62765,9 @@ var require_chokidar = __commonJS({
62765
62765
  }
62766
62766
  });
62767
62767
 
62768
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/index.js
62768
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/index.js
62769
62769
  var require_dist6 = __commonJS({
62770
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=qwons7v7lum2v4wah3jzfocdxq_@microsoft+api-extractor@7.38.3_@swc+core@1._xc4l5l3wzuyqyow7vb757qxpvq/node_modules/tsup/dist/index.js"(exports) {
62770
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=qpq4mfyowuxksz23pdogh2uc4i_@microsoft+api-extractor@7.38.3_@swc+core@1._p3ksrt6te5ke5cutzhpgt27u7m/node_modules/tsup/dist/index.js"(exports) {
62771
62771
  "use strict";
62772
62772
  Object.defineProperty(exports, "__esModule", { value: true });
62773
62773
  function _interopRequireDefault(obj) {
@@ -65002,8 +65002,11 @@ var require_dist6 = __commonJS({
65002
65002
  return _fs2.default.promises.readFile(name, "utf8");
65003
65003
  };
65004
65004
  var addFile = async (name, map, options, logger3) => {
65005
- const relativeName = name.replaceAll("/", "\\").replace(options.workspaceRoot, "").replaceAll("\\", "/");
65006
- if (map && map.has(relativeName)) {
65005
+ let relativeName = name.replaceAll("/", "\\").replace(options.workspaceRoot, "").replaceAll("\\", "/");
65006
+ if (!relativeName.startsWith("/")) {
65007
+ relativeName = `/${relativeName}`;
65008
+ }
65009
+ if (map && !map.has(relativeName)) {
65007
65010
  logger3.info("tsc", `Adding file to FS Map: ${relativeName}`);
65008
65011
  const file = await getFile(name, logger3);
65009
65012
  map.set(relativeName, file);
@@ -65036,6 +65039,7 @@ var require_dist6 = __commonJS({
65036
65039
  ...rawTsconfig.data,
65037
65040
  compilerOptions: {
65038
65041
  ...rawTsconfig.data.compilerOptions,
65042
+ ...compilerOptions,
65039
65043
  // Enable declaration emit and disable javascript emit
65040
65044
  outDir: options.outDir,
65041
65045
  allowJs: true,
@@ -65096,10 +65100,16 @@ var require_dist6 = __commonJS({
65096
65100
  logger.info("tsc", "Created program");
65097
65101
  logger.info("tsc", "Emitting DTS files with the following options: ");
65098
65102
  logger.info("tsc", parsedTsconfig.options);
65099
- logger.info("tsc", "Emitting DTS files");
65100
- program.emit();
65101
- logger.info("tsc", "Emit DTS files complete");
65102
- logger.info("tsc", fsMap);
65103
+ try {
65104
+ logger.info("tsc", "Emitting DTS files");
65105
+ logger.info("tsc", fsMap);
65106
+ program.emit();
65107
+ logger.info("tsc", "Emit DTS files complete");
65108
+ logger.info("tsc", fsMap);
65109
+ } catch (e) {
65110
+ logger.error("tsc", "An error occured while emitting DTS files");
65111
+ logger.error("tsc", e);
65112
+ }
65103
65113
  return getExports(options, program, fsMap);
65104
65114
  }
65105
65115
  async function runTypeScriptCompiler(options) {
@@ -65110,7 +65120,11 @@ var require_dist6 = __commonJS({
65110
65120
  };
65111
65121
  logger.info("tsc", "Build start");
65112
65122
  const dtsOptions = options.experimentalDts;
65113
- const exports2 = await emit(options, dtsOptions.compilerOptions, options.tsconfig);
65123
+ const exports2 = await emit(
65124
+ options,
65125
+ dtsOptions.compilerOptions,
65126
+ options.tsconfig
65127
+ );
65114
65128
  logger.success("tsc", `\u26A1\uFE0F Build success in ${getDuration()}`);
65115
65129
  return exports2;
65116
65130
  } catch (error) {
@@ -65210,23 +65224,17 @@ var require_dist6 = __commonJS({
65210
65224
  pkgPath = pkgPath.slice(0, -1);
65211
65225
  }
65212
65226
  logger2.info("dts", `\u26A1 Preparing to run API Extractor (DTS generate): ${pkgPath}`);
65213
- let packageJsonFullPath = options.workspaceRoot ? _path2.default.join(options.workspaceRoot, pkgPath, "package.json") : _path2.default.join(pkgPath, "package.json");
65214
- const splits = pkgPath.split("\\");
65215
- logger2.info("dts", splits);
65216
- let packageName = pkgPath;
65217
- if (splits.length > 2) {
65218
- packageName = splits[splits.length - 2];
65219
- }
65220
65227
  const apiReferenceProjectDir = _path2.default.join(
65221
65228
  "<projectFolder>",
65222
- pkgPath,
65223
- "api-reports"
65229
+ "docs",
65230
+ "api-reports",
65231
+ options.projectRoot
65224
65232
  );
65225
65233
  let configObject = {
65226
65234
  mainEntryPointFilePath: inputFilePath,
65227
65235
  apiReport: {
65228
65236
  enabled: options.apiReport !== false,
65229
- reportFileName: `${packageName}.api.md`,
65237
+ reportFileName: "api-report.md",
65230
65238
  reportFolder: apiReferenceProjectDir,
65231
65239
  reportTempFolder: _path2.default.join(
65232
65240
  "<projectFolder>",
@@ -65238,7 +65246,7 @@ var require_dist6 = __commonJS({
65238
65246
  enabled: options.docModel !== false,
65239
65247
  apiJsonFilePath: _path2.default.join(
65240
65248
  apiReferenceProjectDir,
65241
- `${packageName}.api.json`
65249
+ "documents-model.api.json"
65242
65250
  )
65243
65251
  },
65244
65252
  dtsRollup: {
@@ -65251,19 +65259,20 @@ var require_dist6 = __commonJS({
65251
65259
  betaTrimmedFilePath: _path2.default.join(
65252
65260
  "<projectFolder>",
65253
65261
  options.outDir,
65254
- `index-beta.d.ts`
65262
+ "index-beta.d.ts"
65255
65263
  ),
65256
65264
  publicTrimmedFilePath: _path2.default.join(
65257
65265
  "<projectFolder>",
65258
65266
  options.outDir,
65259
- `index-public.d.ts`
65267
+ "index-public.d.ts"
65260
65268
  )
65261
65269
  },
65262
65270
  tsdocMetadata: {
65263
65271
  enabled: options.tsdocMetadata !== false,
65264
65272
  tsdocMetadataFilePath: _path2.default.join(
65265
- apiReferenceProjectDir,
65266
- `${packageName}.api.tsdoc-metadata.json`
65273
+ "<projectFolder>",
65274
+ pkgPath,
65275
+ "tsdoc-metadata.api.json"
65267
65276
  )
65268
65277
  },
65269
65278
  compiler: {