@storm-software/workspace-tools 1.63.3 → 1.63.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,27 @@
1
+ ## 1.63.5 (2024-03-05)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Update the compiler option paths after normalization ([98128e4e](https://github.com/storm-software/storm-ops/commit/98128e4e))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.63.4 (2024-03-05)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **storm-ops:** Resolve issue with path corrections logic ([2f84316c](https://github.com/storm-software/storm-ops/commit/2f84316c))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.63.3 (2024-03-03)
2
26
 
3
27
 
package/index.js CHANGED
@@ -474674,6 +474674,7 @@ var applyDefaultOptions = (options8) => {
474674
474674
  var runTsupBuild = async (context, config, options8) => {
474675
474675
  const { writeInfo, writeTrace, writeWarning, correctPaths, findWorkspaceRoot } = await import("@storm-software/config-tools");
474676
474676
  const workspaceRoot = correctPaths(config?.workspaceRoot ?? findWorkspaceRoot());
474677
+ process.chdir(workspaceRoot);
474677
474678
  const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
474678
474679
  ret[key2] = options8.env?.[key2];
474679
474680
  return ret;
@@ -474775,31 +474776,34 @@ async function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
474775
474776
  Error: ${rawTsconfig.error.messageText}` : ""}`
474776
474777
  );
474777
474778
  }
474779
+ const basePath = correctPaths(workspaceRoot);
474780
+ const declarationDir = correctPaths((0, import_node_path2.join)(basePath, "tmp", ".tsup", "declaration"));
474778
474781
  const parsedTsconfig = (0, import_typescript.parseJsonConfigFileContent)(
474779
474782
  {
474780
474783
  ...rawTsconfig.config,
474781
474784
  compilerOptions: {
474782
474785
  ...rawTsconfig.config?.compilerOptions,
474783
474786
  outDir: outputPath,
474784
- rootDir: ".",
474785
- baseUrl: correctPaths(workspaceRoot),
474786
474787
  noEmit: false,
474787
474788
  emitDeclarationOnly: true,
474788
474789
  declaration: true,
474789
474790
  declarationMap: true,
474790
- declarationDir: correctPaths((0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration"))
474791
+ declarationDir
474791
474792
  }
474792
474793
  },
474793
474794
  import_typescript.sys,
474794
474795
  correctPaths((0, import_node_path2.dirname)(options8.tsConfig))
474795
474796
  );
474796
- parsedTsconfig.options.pathsBasePath = correctPaths(workspaceRoot);
474797
+ parsedTsconfig.options.rootDir = basePath;
474798
+ parsedTsconfig.options.baseUrl = basePath;
474799
+ parsedTsconfig.options.pathsBasePath = basePath;
474800
+ parsedTsconfig.options.declarationDir = declarationDir;
474797
474801
  if (parsedTsconfig.options.paths) {
474798
474802
  parsedTsconfig.options.paths = Object.keys(parsedTsconfig.options.paths).reduce(
474799
474803
  (ret, key2) => {
474800
474804
  if (parsedTsconfig.options.paths?.[key2]) {
474801
474805
  ret[key2] = parsedTsconfig.options.paths[key2]?.map(
474802
- (path15) => correctPaths((0, import_node_path2.join)(workspaceRoot, path15))
474806
+ (path15) => correctPaths((0, import_node_path2.join)(basePath, path15))
474803
474807
  );
474804
474808
  }
474805
474809
  return ret;