@storm-software/workspace-tools 1.13.10 → 1.13.11

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,10 @@
1
+ ## [1.13.10](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.13.9...workspace-tools-v1.13.10) (2023-11-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Updated how emit is called ([dcc7bc5](https://github.com/storm-software/storm-ops/commit/dcc7bc54a6de0123d47decc548ea0e611cdecd95))
7
+
1
8
  ## [1.13.9](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.13.8...workspace-tools-v1.13.9) (2023-11-26)
2
9
 
3
10
 
package/index.js CHANGED
@@ -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=ey2bly4qh77gvdv3ymoz7pnvnm_@microsoft+api-extractor@7.38.3_@swc+core@1._rzdpkyxhwa3hk5iyolbhuxsk3a/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=ey2bly4qh77gvdv3ymoz7pnvnm_@microsoft+api-extractor@7.38.3_@swc+core@1._rzdpkyxhwa3hk5iyolbhuxsk3a/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=ey2bly4qh77gvdv3ymoz7pnvnm_@microsoft+api-extractor@7.38.3_@swc+core@1._rzdpkyxhwa3hk5iyolbhuxsk3a/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=ey2bly4qh77gvdv3ymoz7pnvnm_@microsoft+api-extractor@7.38.3_@swc+core@1._rzdpkyxhwa3hk5iyolbhuxsk3a/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=ey2bly4qh77gvdv3ymoz7pnvnm_@microsoft+api-extractor@7.38.3_@swc+core@1._rzdpkyxhwa3hk5iyolbhuxsk3a/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=ey2bly4qh77gvdv3ymoz7pnvnm_@microsoft+api-extractor@7.38.3_@swc+core@1._rzdpkyxhwa3hk5iyolbhuxsk3a/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=ey2bly4qh77gvdv3ymoz7pnvnm_@microsoft+api-extractor@7.38.3_@swc+core@1._rzdpkyxhwa3hk5iyolbhuxsk3a/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=ey2bly4qh77gvdv3ymoz7pnvnm_@microsoft+api-extractor@7.38.3_@swc+core@1._rzdpkyxhwa3hk5iyolbhuxsk3a/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=ey2bly4qh77gvdv3ymoz7pnvnm_@microsoft+api-extractor@7.38.3_@swc+core@1._rzdpkyxhwa3hk5iyolbhuxsk3a/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=ey2bly4qh77gvdv3ymoz7pnvnm_@microsoft+api-extractor@7.38.3_@swc+core@1._rzdpkyxhwa3hk5iyolbhuxsk3a/node_modules/tsup/dist/index.js"(exports) {
95297
95297
  "use strict";
95298
95298
  Object.defineProperty(exports, "__esModule", { value: true });
95299
95299
  function _interopRequireDefault(obj) {
@@ -97562,6 +97562,7 @@ var require_dist6 = __commonJS({
97562
97562
  ...rawTsconfig.data,
97563
97563
  compilerOptions: {
97564
97564
  ...rawTsconfig.data.compilerOptions,
97565
+ ...compilerOptions,
97565
97566
  // Enable declaration emit and disable javascript emit
97566
97567
  outDir: options.outDir,
97567
97568
  allowJs: true,
@@ -97622,10 +97623,16 @@ var require_dist6 = __commonJS({
97622
97623
  logger.info("tsc", "Created program");
97623
97624
  logger.info("tsc", "Emitting DTS files with the following options: ");
97624
97625
  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);
97626
+ try {
97627
+ logger.info("tsc", "Emitting DTS files");
97628
+ logger.info("tsc", fsMap);
97629
+ program.emit();
97630
+ logger.info("tsc", "Emit DTS files complete");
97631
+ logger.info("tsc", fsMap);
97632
+ } catch (e) {
97633
+ logger.error("tsc", "An error occured while emitting DTS files");
97634
+ logger.error("tsc", e);
97635
+ }
97629
97636
  return getExports(options, program, fsMap);
97630
97637
  }
97631
97638
  async function runTypeScriptCompiler(options) {
@@ -97636,7 +97643,11 @@ var require_dist6 = __commonJS({
97636
97643
  };
97637
97644
  logger.info("tsc", "Build start");
97638
97645
  const dtsOptions = options.experimentalDts;
97639
- const exports2 = await emit(options, dtsOptions.compilerOptions, options.tsconfig);
97646
+ const exports2 = await emit(
97647
+ options,
97648
+ dtsOptions.compilerOptions,
97649
+ options.tsconfig
97650
+ );
97640
97651
  logger.success("tsc", `\u26A1\uFE0F Build success in ${getDuration()}`);
97641
97652
  return exports2;
97642
97653
  } catch (error) {
@@ -97736,23 +97747,17 @@ var require_dist6 = __commonJS({
97736
97747
  pkgPath = pkgPath.slice(0, -1);
97737
97748
  }
97738
97749
  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
97750
  const apiReferenceProjectDir = _path2.default.join(
97747
97751
  "<projectFolder>",
97748
- pkgPath,
97749
- "api-reports"
97752
+ "docs",
97753
+ "api-reports",
97754
+ options.projectRoot
97750
97755
  );
97751
97756
  let configObject = {
97752
97757
  mainEntryPointFilePath: inputFilePath,
97753
97758
  apiReport: {
97754
97759
  enabled: options.apiReport !== false,
97755
- reportFileName: `${packageName}.api.md`,
97760
+ reportFileName: "api-report.md",
97756
97761
  reportFolder: apiReferenceProjectDir,
97757
97762
  reportTempFolder: _path2.default.join(
97758
97763
  "<projectFolder>",
@@ -97764,7 +97769,7 @@ var require_dist6 = __commonJS({
97764
97769
  enabled: options.docModel !== false,
97765
97770
  apiJsonFilePath: _path2.default.join(
97766
97771
  apiReferenceProjectDir,
97767
- `${packageName}.api.json`
97772
+ "documents-model.api.json"
97768
97773
  )
97769
97774
  },
97770
97775
  dtsRollup: {
@@ -97777,19 +97782,19 @@ var require_dist6 = __commonJS({
97777
97782
  betaTrimmedFilePath: _path2.default.join(
97778
97783
  "<projectFolder>",
97779
97784
  options.outDir,
97780
- `index-beta.d.ts`
97785
+ "index-beta.d.ts"
97781
97786
  ),
97782
97787
  publicTrimmedFilePath: _path2.default.join(
97783
97788
  "<projectFolder>",
97784
97789
  options.outDir,
97785
- `index-public.d.ts`
97790
+ "index-public.d.ts"
97786
97791
  )
97787
97792
  },
97788
97793
  tsdocMetadata: {
97789
97794
  enabled: options.tsdocMetadata !== false,
97790
97795
  tsdocMetadataFilePath: _path2.default.join(
97791
97796
  apiReferenceProjectDir,
97792
- `${packageName}.api.tsdoc-metadata.json`
97797
+ "tsdoc-metadata.api.json"
97793
97798
  )
97794
97799
  },
97795
97800
  compiler: {