@storm-software/workspace-tools 1.13.3 → 1.13.5

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,17 @@
1
+ ## [1.13.4](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.13.3...workspace-tools-v1.13.4) (2023-11-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Resolved issue with incorrectly written config file ([bc93e00](https://github.com/storm-software/storm-ops/commit/bc93e00986d962c55323d85dec22c7c543614417))
7
+
8
+ ## [1.13.3](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.13.2...workspace-tools-v1.13.3) (2023-11-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **workspace-tools:** Updated the way options are passed to `createProgram` ([aa03cd7](https://github.com/storm-software/storm-ops/commit/aa03cd764dcf0fee436d12d385cae5cec74aab9d))
14
+
1
15
  ## [1.13.2](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.13.1...workspace-tools-v1.13.2) (2023-11-25)
2
16
 
3
17
 
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=ybg3rnrkb7z4wrhtmctk3xf2xa_@microsoft+api-extractor@7.38.3_@swc+core@1._vmvcgkou2vhmpkh35paxyf23ue/node_modules/tsup/dist/chunk-EPAEWGCP.js
37429
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-EPAEWGCP.js
37430
37430
  var require_chunk_EPAEWGCP = __commonJS({
37431
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ybg3rnrkb7z4wrhtmctk3xf2xa_@microsoft+api-extractor@7.38.3_@swc+core@1._vmvcgkou2vhmpkh35paxyf23ue/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
37431
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/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=ybg3rnrkb7z4wrhtmctk3xf2xa_@microsoft+api-extractor@7.38.3_@swc+core@1._vmvcgkou2vhmpkh35paxyf23ue/node_modules/tsup/dist/chunk-GQ77QZBO.js
39078
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-GQ77QZBO.js
39079
39079
  var require_chunk_GQ77QZBO = __commonJS({
39080
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ybg3rnrkb7z4wrhtmctk3xf2xa_@microsoft+api-extractor@7.38.3_@swc+core@1._vmvcgkou2vhmpkh35paxyf23ue/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
39080
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/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=ybg3rnrkb7z4wrhtmctk3xf2xa_@microsoft+api-extractor@7.38.3_@swc+core@1._vmvcgkou2vhmpkh35paxyf23ue/node_modules/tsup/dist/chunk-UIX4URMV.js
39358
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-UIX4URMV.js
39359
39359
  var require_chunk_UIX4URMV = __commonJS({
39360
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ybg3rnrkb7z4wrhtmctk3xf2xa_@microsoft+api-extractor@7.38.3_@swc+core@1._vmvcgkou2vhmpkh35paxyf23ue/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
39360
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/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=ybg3rnrkb7z4wrhtmctk3xf2xa_@microsoft+api-extractor@7.38.3_@swc+core@1._vmvcgkou2vhmpkh35paxyf23ue/node_modules/tsup/dist/chunk-7G76EW2R.js
40294
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/chunk-7G76EW2R.js
40295
40295
  var require_chunk_7G76EW2R = __commonJS({
40296
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ybg3rnrkb7z4wrhtmctk3xf2xa_@microsoft+api-extractor@7.38.3_@swc+core@1._vmvcgkou2vhmpkh35paxyf23ue/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
40296
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/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=ybg3rnrkb7z4wrhtmctk3xf2xa_@microsoft+api-extractor@7.38.3_@swc+core@1._vmvcgkou2vhmpkh35paxyf23ue/node_modules/tsup/dist/index.js
95294
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/index.js
95295
95295
  var require_dist6 = __commonJS({
95296
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=ybg3rnrkb7z4wrhtmctk3xf2xa_@microsoft+api-extractor@7.38.3_@swc+core@1._vmvcgkou2vhmpkh35paxyf23ue/node_modules/tsup/dist/index.js"(exports) {
95296
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=2gnbhc5k747ci2r5lkneyxj3ny_@microsoft+api-extractor@7.38.3_@swc+core@1._yi5pxgiltt3pddrphpjwu6xlpm/node_modules/tsup/dist/index.js"(exports) {
95297
95297
  "use strict";
95298
95298
  Object.defineProperty(exports, "__esModule", { value: true });
95299
95299
  function _interopRequireDefault(obj) {
@@ -97582,12 +97582,17 @@ var require_dist6 = __commonJS({
97582
97582
  }
97583
97583
  return fileMapping;
97584
97584
  }
97585
- var getLib = (name) => {
97586
- const lib = _path.dirname.call(void 0, require.resolve("typescript"));
97587
- return _fs2.default.readFileSync(_path.join(lib, name), "utf8");
97585
+ var getFile = (name, logger3) => {
97586
+ logger3.info("tsc", `Reading file content for: ${name}`);
97587
+ return _fs2.default.promises.readFile(name, "utf8");
97588
97588
  };
97589
- var addLib = (name, map) => {
97590
- map.set("/" + name, getLib(name));
97589
+ var addFile = async (name, map, options, logger3) => {
97590
+ const file = await getFile(name, logger3);
97591
+ map.set(name, file);
97592
+ if (name.includes(options.workspaceRoot)) {
97593
+ const relativeName = name.replace(options.workspaceRoot, "");
97594
+ map.set(relativeName.startsWith("/") ? relativeName : `/${relativeName}`, file);
97595
+ }
97591
97596
  };
97592
97597
  async function emit(options, compilerOptions, tsconfig) {
97593
97598
  logger.info("tsc", `Trying to find ${tsconfig || "tsconfig.json"}`);
@@ -97655,8 +97660,8 @@ var require_dist6 = __commonJS({
97655
97660
  options.tsCdnStorage
97656
97661
  );
97657
97662
  logger.info("tsc", "Created FS Map");
97658
- parsedTsconfig.options.lib.forEach((lib) => addLib(lib, fsMap));
97659
- logger.info("tsc", "Added libs to FS Map");
97663
+ await Promise.all(parsedTsconfig.fileNames.map((fileName) => addFile(fileName, fsMap, options, logger)));
97664
+ logger.info("tsc", "Added files to FS Map");
97660
97665
  const system = _tsvfs2.createSystem(fsMap);
97661
97666
  logger.info("tsc", "Created virtual file system");
97662
97667
  const host = _tsvfs2.createVirtualCompilerHost(