@storm-software/workspace-tools 1.62.32 → 1.62.34

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.62.34 (2024-03-03)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Resolved issues with inconsistent path formats ([f34a6029](https://github.com/storm-software/storm-ops/commit/f34a6029))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.62.33 (2024-03-03)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **workspace-tools:** Added code to resolve issues with paths saved to `StormConfig` ([bafecf5b](https://github.com/storm-software/storm-ops/commit/bafecf5b))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.62.32 (2024-03-03)
2
26
 
3
27
 
package/README.md CHANGED
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
16
16
 
17
17
  <h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
18
18
 
19
- [![Version](https://img.shields.io/badge/version-1.62.25-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
+ [![Version](https://img.shields.io/badge/version-1.62.33-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
20
20
  [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
21
21
 
22
22
  > [!IMPORTANT]
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,11 +474785,11 @@ 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,
474791
- (0, import_node_path2.dirname)(options8.tsConfig)
474792
+ correctPaths((0, import_node_path2.dirname)(options8.tsConfig))
474792
474793
  );
474793
474794
  parsedTsconfig.options.pathsBasePath = workspaceRoot;
474794
474795
  if (parsedTsconfig.options.paths) {
@@ -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;
@@ -474804,8 +474805,11 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
474804
474805
  {}
474805
474806
  );
474806
474807
  }
474808
+ if (parsedTsconfig.fileNames) {
474809
+ parsedTsconfig.fileNames = parsedTsconfig.fileNames.map((fileName) => correctPaths(fileName));
474810
+ }
474807
474811
  if (parsedTsconfig.options.incremental) {
474808
- parsedTsconfig.options.tsBuildInfoFile = (0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo");
474812
+ parsedTsconfig.options.tsBuildInfoFile = correctPaths((0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo"));
474809
474813
  }
474810
474814
  return parsedTsconfig;
474811
474815
  }