@storm-software/workspace-tools 1.179.4 → 1.179.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.179.4",
3
+ "version": "1.179.6",
4
4
  "type": "commonjs",
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "repository": {
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
package/src/base/index.js CHANGED
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -63615,6 +63615,7 @@ var init_correct_paths = __esm({
63615
63615
  }
63616
63616
  if (!path6.toUpperCase().startsWith("C:") && path6.includes("\\")) {
63617
63617
  path6 = `C:${path6}`;
63618
+ return path6.replaceAll("/", "\\");
63618
63619
  }
63619
63620
  return path6.replaceAll("\\", "/");
63620
63621
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -88208,6 +88208,7 @@ var init_correct_paths = __esm({
88208
88208
  }
88209
88209
  if (!path9.toUpperCase().startsWith("C:") && path9.includes("\\")) {
88210
88210
  path9 = `C:${path9}`;
88211
+ return path9.replaceAll("/", "\\");
88211
88212
  }
88212
88213
  return path9.replaceAll("\\", "/");
88213
88214
  };
@@ -409521,10 +409522,10 @@ function analyze() {
409521
409522
  };
409522
409523
  }
409523
409524
  async function withRollupConfig(rawOptions, rollupConfig = {}, dependencies, config) {
409524
- const { writeWarning: writeWarning2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
409525
+ const { writeWarning: writeWarning2, correctPaths: correctPaths2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
409525
409526
  const finalConfig = { ...rollupConfig };
409526
409527
  const projectNode = getProjectNode();
409527
- const projectRoot = (0, import_node_path13.join)(import_devkit2.workspaceRoot, projectNode.data.root);
409528
+ const projectRoot = correctPaths2((0, import_node_path13.join)(import_devkit2.workspaceRoot, projectNode.data.root));
409528
409529
  const projectGraph = global.NX_GRAPH_CREATION ? null : (0, import_devkit2.readCachedProjectGraph)();
409529
409530
  if (!projectGraph) {
409530
409531
  throw new Error(`Cannot find project graph.`);
@@ -409559,7 +409560,9 @@ async function withRollupConfig(rawOptions, rollupConfig = {}, dependencies, con
409559
409560
  projectNode.data.sourceRoot,
409560
409561
  rawOptions
409561
409562
  );
409562
- const tsConfigPath = (0, import_devkit2.joinPathFragments)(import_devkit2.workspaceRoot, options.tsConfig);
409563
+ const tsConfigPath = correctPaths2(
409564
+ (0, import_devkit2.joinPathFragments)(import_devkit2.workspaceRoot, options.tsConfig)
409565
+ );
409563
409566
  const tsConfigFile = ts.readConfigFile(tsConfigPath, ts.sys.readFile);
409564
409567
  const tsConfig = ts.parseJsonConfigFileContent(
409565
409568
  tsConfigFile.config,
@@ -409599,7 +409602,7 @@ async function withRollupConfig(rawOptions, rollupConfig = {}, dependencies, con
409599
409602
  // Options are not normalized with project root during graph creation due to the lack of project and project root.
409600
409603
  // Cannot be joined with workspace root now, but will be handled by @nx/rollup/plugin.
409601
409604
  options.outputPath
409602
- ) : (0, import_node_path13.join)(import_devkit2.workspaceRoot, options.outputPath),
409605
+ ) : correctPaths2((0, import_node_path13.join)(import_devkit2.workspaceRoot, options.outputPath)),
409603
409606
  sourcemap: options.sourceMap
409604
409607
  }));
409605
409608
  }
@@ -409668,8 +409671,7 @@ async function withRollupConfig(rawOptions, rollupConfig = {}, dependencies, con
409668
409671
  config
409669
409672
  )
409670
409673
  },
409671
- verbosity: 3,
409672
- useTsconfigDeclarationDir: true
409674
+ verbosity: 3
409673
409675
  }),
409674
409676
  (0, import_type_definitions.typeDefinitions)({
409675
409677
  projectRoot
@@ -409698,9 +409700,11 @@ async function withRollupConfig(rawOptions, rollupConfig = {}, dependencies, con
409698
409700
  supportsStaticESM: true,
409699
409701
  isModern: true
409700
409702
  },
409701
- cwd: (0, import_node_path13.join)(
409702
- import_devkit2.workspaceRoot,
409703
- projectNode.data.sourceRoot ?? projectNode.data.root
409703
+ cwd: correctPaths2(
409704
+ (0, import_node_path13.join)(
409705
+ import_devkit2.workspaceRoot,
409706
+ projectNode.data.sourceRoot ?? projectNode.data.root
409707
+ )
409704
409708
  ),
409705
409709
  rootMode: options.babelUpwardRootMode ? "upward" : void 0,
409706
409710
  babelrc: true,
@@ -409732,13 +409736,17 @@ function createInput(options) {
409732
409736
  }
409733
409737
  async function createTsCompilerOptions(parsedCommandLine, options, dependencies, config) {
409734
409738
  const { correctPaths: correctPaths2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
409739
+ if (!config?.workspaceRoot) {
409740
+ throw new Error(`Cannot find workspace root in the config.`);
409741
+ }
409742
+ parsedCommandLine.options.rootDir = correctPaths2(config?.workspaceRoot);
409743
+ parsedCommandLine.options.baseUrl = correctPaths2(config?.workspaceRoot);
409735
409744
  const compilerOptionPaths = (0, import_buildable_libs_utils.computeCompilerOptionsPaths)(
409736
409745
  parsedCommandLine,
409737
409746
  dependencies ?? []
409738
409747
  );
409739
409748
  const compilerOptions = {
409740
409749
  rootDir: correctPaths2(config?.workspaceRoot).replaceAll("/", "\\"),
409741
- baseUrl: correctPaths2(config?.workspaceRoot).replaceAll("/", "\\"),
409742
409750
  declaration: true,
409743
409751
  skipLibCheck: true,
409744
409752
  skipDefaultLibCheck: true,
@@ -61782,6 +61782,7 @@ var init_correct_paths = __esm({
61782
61782
  }
61783
61783
  if (!path6.toUpperCase().startsWith("C:") && path6.includes("\\")) {
61784
61784
  path6 = `C:${path6}`;
61785
+ return path6.replaceAll("/", "\\");
61785
61786
  }
61786
61787
  return path6.replaceAll("\\", "/");
61787
61788
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -294558,6 +294558,7 @@ var init_correct_paths = __esm({
294558
294558
  }
294559
294559
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
294560
294560
  path5 = `C:${path5}`;
294561
+ return path5.replaceAll("/", "\\");
294561
294562
  }
294562
294563
  return path5.replaceAll("\\", "/");
294563
294564
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -65396,6 +65396,7 @@ var init_correct_paths = __esm({
65396
65396
  }
65397
65397
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
65398
65398
  path5 = `C:${path5}`;
65399
+ return path5.replaceAll("/", "\\");
65399
65400
  }
65400
65401
  return path5.replaceAll("\\", "/");
65401
65402
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path6.toUpperCase().startsWith("C:") && path6.includes("\\")) {
61296
61296
  path6 = `C:${path6}`;
61297
+ return path6.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path6.replaceAll("\\", "/");
61299
61300
  };
@@ -63118,6 +63118,7 @@ var init_correct_paths = __esm({
63118
63118
  }
63119
63119
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
63120
63120
  path5 = `C:${path5}`;
63121
+ return path5.replaceAll("/", "\\");
63121
63122
  }
63122
63123
  return path5.replaceAll("\\", "/");
63123
63124
  };
@@ -61294,6 +61294,7 @@ var init_correct_paths = __esm({
61294
61294
  }
61295
61295
  if (!path5.toUpperCase().startsWith("C:") && path5.includes("\\")) {
61296
61296
  path5 = `C:${path5}`;
61297
+ return path5.replaceAll("/", "\\");
61297
61298
  }
61298
61299
  return path5.replaceAll("\\", "/");
61299
61300
  };