@storm-software/workspace-tools 1.62.32 → 1.62.33

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,15 @@
1
+ ## 1.62.33 (2024-03-03)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Added code to resolve issues with paths saved to `StormConfig` ([bafecf5b](https://github.com/storm-software/storm-ops/commit/bafecf5b))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
1
13
  ## 1.62.32 (2024-03-03)
2
14
 
3
15
 
package/index.js CHANGED
@@ -474670,8 +474670,8 @@ var applyDefaultOptions = (options8) => {
474670
474670
  return options8;
474671
474671
  };
474672
474672
  var runTsupBuild = async (context, config, options8) => {
474673
- const { writeInfo, writeTrace, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
474674
- const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
474673
+ const { writeInfo, writeTrace, writeWarning, correctPaths, findWorkspaceRoot } = await import("@storm-software/config-tools");
474674
+ const workspaceRoot = correctPaths(config?.workspaceRoot ?? findWorkspaceRoot());
474675
474675
  const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
474676
474676
  ret[key2] = options8.env?.[key2];
474677
474677
  return ret;
@@ -474683,7 +474683,7 @@ var runTsupBuild = async (context, config, options8) => {
474683
474683
  })
474684
474684
  );
474685
474685
  options8.plugins?.push(environmentPlugin(stormEnv));
474686
- const dtsTsConfig = getNormalizedTsConfig(
474686
+ const dtsTsConfig = await getNormalizedTsConfig(
474687
474687
  workspaceRoot,
474688
474688
  options8.outputPath,
474689
474689
  createTypeScriptCompilationOptions(
@@ -474762,7 +474762,8 @@ ${options8.banner}
474762
474762
  );
474763
474763
  }
474764
474764
  };
474765
- function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
474765
+ async function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
474766
+ const { correctPaths } = await import("@storm-software/config-tools");
474766
474767
  const rawTsconfig = (0, import_typescript.readConfigFile)(options8.tsConfig, import_typescript.sys.readFile);
474767
474768
  if (!rawTsconfig?.config || rawTsconfig?.error) {
474768
474769
  throw new Error(
@@ -474784,7 +474785,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
474784
474785
  emitDeclarationOnly: true,
474785
474786
  declaration: true,
474786
474787
  declarationMap: true,
474787
- declarationDir: (0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration")
474788
+ declarationDir: correctPaths((0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration"))
474788
474789
  }
474789
474790
  },
474790
474791
  import_typescript.sys,
@@ -474796,7 +474797,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
474796
474797
  (ret, key2) => {
474797
474798
  if (parsedTsconfig.options.paths?.[key2]) {
474798
474799
  ret[key2] = parsedTsconfig.options.paths[key2]?.map(
474799
- (path15) => (0, import_node_path2.join)(workspaceRoot, path15)
474800
+ (path15) => correctPaths((0, import_node_path2.join)(workspaceRoot, path15))
474800
474801
  );
474801
474802
  }
474802
474803
  return ret;
@@ -474805,7 +474806,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
474805
474806
  );
474806
474807
  }
474807
474808
  if (parsedTsconfig.options.incremental) {
474808
- parsedTsconfig.options.tsBuildInfoFile = (0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo");
474809
+ parsedTsconfig.options.tsBuildInfoFile = correctPaths((0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo"));
474809
474810
  }
474810
474811
  return parsedTsconfig;
474811
474812
  }