@storm-software/workspace-tools 1.63.1 → 1.63.3

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.63.1",
3
+ "version": "1.63.3",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
package/src/base/index.js CHANGED
@@ -391354,6 +391354,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
391354
391354
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
391355
391355
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
391356
391356
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
391357
+ process.chdir(workspaceRoot);
391357
391358
  if (!executorOptions.skipReadingConfig) {
391358
391359
  writeDebug(
391359
391360
  config,
@@ -391457,7 +391458,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391457
391458
  writeInfo,
391458
391459
  writeSuccess,
391459
391460
  writeTrace,
391460
- findWorkspaceRootSafe,
391461
+ findWorkspaceRoot,
391461
391462
  loadStormConfig
391462
391463
  } = await import("@storm-software/config-tools");
391463
391464
  const stopwatch = getStopwatch(name);
@@ -391467,7 +391468,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391467
391468
  writeInfo(config, `\u26A1 Running the ${name} generator...
391468
391469
 
391469
391470
  `);
391470
- const workspaceRoot = findWorkspaceRootSafe();
391471
+ const workspaceRoot = findWorkspaceRoot();
391471
391472
  if (!generatorOptions.skipReadingConfig) {
391472
391473
  writeDebug(
391473
391474
  config,
@@ -391481,6 +391482,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391481
391482
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
391482
391483
  );
391483
391484
  }
391485
+ process.chdir(workspaceRoot);
391484
391486
  if (generatorOptions?.hooks?.applyDefaultOptions) {
391485
391487
  writeDebug(config, "Running the applyDefaultOptions hook...");
391486
391488
  options8 = await Promise.resolve(
@@ -452822,6 +452822,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
452822
452822
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
452823
452823
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
452824
452824
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
452825
+ process.chdir(workspaceRoot);
452825
452826
  if (!executorOptions.skipReadingConfig) {
452826
452827
  writeDebug(
452827
452828
  config,
@@ -453282,6 +453283,8 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
453282
453283
  compilerOptions: {
453283
453284
  ...rawTsconfig.config?.compilerOptions,
453284
453285
  outDir: outputPath,
453286
+ rootDir: ".",
453287
+ baseUrl: correctPaths(workspaceRoot),
453285
453288
  noEmit: false,
453286
453289
  emitDeclarationOnly: true,
453287
453290
  declaration: true,
@@ -453290,7 +453293,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
453290
453293
  }
453291
453294
  },
453292
453295
  import_typescript.sys,
453293
- correctPaths(workspaceRoot)
453296
+ correctPaths((0, import_node_path2.dirname)(options8.tsConfig))
453294
453297
  );
453295
453298
  parsedTsconfig.options.pathsBasePath = correctPaths(workspaceRoot);
453296
453299
  if (parsedTsconfig.options.paths) {
@@ -446641,6 +446641,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
446641
446641
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
446642
446642
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
446643
446643
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
446644
+ process.chdir(workspaceRoot);
446644
446645
  if (!executorOptions.skipReadingConfig) {
446645
446646
  writeDebug(
446646
446647
  config,
@@ -447087,6 +447088,8 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
447087
447088
  compilerOptions: {
447088
447089
  ...rawTsconfig.config?.compilerOptions,
447089
447090
  outDir: outputPath,
447091
+ rootDir: ".",
447092
+ baseUrl: correctPaths(workspaceRoot),
447090
447093
  noEmit: false,
447091
447094
  emitDeclarationOnly: true,
447092
447095
  declaration: true,
@@ -447095,7 +447098,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
447095
447098
  }
447096
447099
  },
447097
447100
  import_typescript.sys,
447098
- correctPaths(workspaceRoot)
447101
+ correctPaths((0, import_node_path2.dirname)(options8.tsConfig))
447099
447102
  );
447100
447103
  parsedTsconfig.options.pathsBasePath = correctPaths(workspaceRoot);
447101
447104
  if (parsedTsconfig.options.paths) {
@@ -446641,6 +446641,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
446641
446641
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
446642
446642
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
446643
446643
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
446644
+ process.chdir(workspaceRoot);
446644
446645
  if (!executorOptions.skipReadingConfig) {
446645
446646
  writeDebug(
446646
446647
  config,
@@ -447087,6 +447088,8 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
447087
447088
  compilerOptions: {
447088
447089
  ...rawTsconfig.config?.compilerOptions,
447089
447090
  outDir: outputPath,
447091
+ rootDir: ".",
447092
+ baseUrl: correctPaths(workspaceRoot),
447090
447093
  noEmit: false,
447091
447094
  emitDeclarationOnly: true,
447092
447095
  declaration: true,
@@ -447095,7 +447098,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
447095
447098
  }
447096
447099
  },
447097
447100
  import_typescript.sys,
447098
- correctPaths(workspaceRoot)
447101
+ correctPaths((0, import_node_path2.dirname)(options8.tsConfig))
447099
447102
  );
447100
447103
  parsedTsconfig.options.pathsBasePath = correctPaths(workspaceRoot);
447101
447104
  if (parsedTsconfig.options.paths) {
@@ -446641,6 +446641,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
446641
446641
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
446642
446642
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
446643
446643
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
446644
+ process.chdir(workspaceRoot);
446644
446645
  if (!executorOptions.skipReadingConfig) {
446645
446646
  writeDebug(
446646
446647
  config,
@@ -447087,6 +447088,8 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
447087
447088
  compilerOptions: {
447088
447089
  ...rawTsconfig.config?.compilerOptions,
447089
447090
  outDir: outputPath,
447091
+ rootDir: ".",
447092
+ baseUrl: correctPaths(workspaceRoot),
447090
447093
  noEmit: false,
447091
447094
  emitDeclarationOnly: true,
447092
447095
  declaration: true,
@@ -447095,7 +447098,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
447095
447098
  }
447096
447099
  },
447097
447100
  import_typescript.sys,
447098
- correctPaths(workspaceRoot)
447101
+ correctPaths((0, import_node_path2.dirname)(options8.tsConfig))
447099
447102
  );
447100
447103
  parsedTsconfig.options.pathsBasePath = correctPaths(workspaceRoot);
447101
447104
  if (parsedTsconfig.options.paths) {
@@ -227875,6 +227875,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
227875
227875
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
227876
227876
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
227877
227877
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
227878
+ process.chdir(workspaceRoot);
227878
227879
  if (!executorOptions.skipReadingConfig) {
227879
227880
  writeDebug(
227880
227881
  config,
@@ -391280,7 +391280,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391280
391280
  writeInfo,
391281
391281
  writeSuccess,
391282
391282
  writeTrace,
391283
- findWorkspaceRootSafe,
391283
+ findWorkspaceRoot,
391284
391284
  loadStormConfig
391285
391285
  } = await import("@storm-software/config-tools");
391286
391286
  const stopwatch = getStopwatch(name);
@@ -391290,7 +391290,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391290
391290
  writeInfo(config, `\u26A1 Running the ${name} generator...
391291
391291
 
391292
391292
  `);
391293
- const workspaceRoot = findWorkspaceRootSafe();
391293
+ const workspaceRoot = findWorkspaceRoot();
391294
391294
  if (!generatorOptions.skipReadingConfig) {
391295
391295
  writeDebug(
391296
391296
  config,
@@ -391304,6 +391304,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391304
391304
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
391305
391305
  );
391306
391306
  }
391307
+ process.chdir(workspaceRoot);
391307
391308
  if (generatorOptions?.hooks?.applyDefaultOptions) {
391308
391309
  writeDebug(config, "Running the applyDefaultOptions hook...");
391309
391310
  options8 = await Promise.resolve(
@@ -176604,7 +176604,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
176604
176604
  writeInfo,
176605
176605
  writeSuccess,
176606
176606
  writeTrace,
176607
- findWorkspaceRootSafe,
176607
+ findWorkspaceRoot,
176608
176608
  loadStormConfig
176609
176609
  } = await import("@storm-software/config-tools");
176610
176610
  const stopwatch = getStopwatch(name);
@@ -176614,7 +176614,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
176614
176614
  writeInfo(config, `\u26A1 Running the ${name} generator...
176615
176615
 
176616
176616
  `);
176617
- const workspaceRoot = findWorkspaceRootSafe();
176617
+ const workspaceRoot = findWorkspaceRoot();
176618
176618
  if (!generatorOptions.skipReadingConfig) {
176619
176619
  writeDebug(
176620
176620
  config,
@@ -176628,6 +176628,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
176628
176628
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
176629
176629
  );
176630
176630
  }
176631
+ process.chdir(workspaceRoot);
176631
176632
  if (generatorOptions?.hooks?.applyDefaultOptions) {
176632
176633
  writeDebug(config, "Running the applyDefaultOptions hook...");
176633
176634
  options8 = await Promise.resolve(
@@ -391280,7 +391280,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391280
391280
  writeInfo,
391281
391281
  writeSuccess,
391282
391282
  writeTrace,
391283
- findWorkspaceRootSafe,
391283
+ findWorkspaceRoot,
391284
391284
  loadStormConfig
391285
391285
  } = await import("@storm-software/config-tools");
391286
391286
  const stopwatch = getStopwatch(name);
@@ -391290,7 +391290,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391290
391290
  writeInfo(config, `\u26A1 Running the ${name} generator...
391291
391291
 
391292
391292
  `);
391293
- const workspaceRoot = findWorkspaceRootSafe();
391293
+ const workspaceRoot = findWorkspaceRoot();
391294
391294
  if (!generatorOptions.skipReadingConfig) {
391295
391295
  writeDebug(
391296
391296
  config,
@@ -391304,6 +391304,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391304
391304
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
391305
391305
  );
391306
391306
  }
391307
+ process.chdir(workspaceRoot);
391307
391308
  if (generatorOptions?.hooks?.applyDefaultOptions) {
391308
391309
  writeDebug(config, "Running the applyDefaultOptions hook...");
391309
391310
  options8 = await Promise.resolve(
@@ -391280,7 +391280,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391280
391280
  writeInfo,
391281
391281
  writeSuccess,
391282
391282
  writeTrace,
391283
- findWorkspaceRootSafe,
391283
+ findWorkspaceRoot,
391284
391284
  loadStormConfig
391285
391285
  } = await import("@storm-software/config-tools");
391286
391286
  const stopwatch = getStopwatch(name);
@@ -391290,7 +391290,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391290
391290
  writeInfo(config, `\u26A1 Running the ${name} generator...
391291
391291
 
391292
391292
  `);
391293
- const workspaceRoot = findWorkspaceRootSafe();
391293
+ const workspaceRoot = findWorkspaceRoot();
391294
391294
  if (!generatorOptions.skipReadingConfig) {
391295
391295
  writeDebug(
391296
391296
  config,
@@ -391304,6 +391304,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391304
391304
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
391305
391305
  );
391306
391306
  }
391307
+ process.chdir(workspaceRoot);
391307
391308
  if (generatorOptions?.hooks?.applyDefaultOptions) {
391308
391309
  writeDebug(config, "Running the applyDefaultOptions hook...");
391309
391310
  options8 = await Promise.resolve(
@@ -172018,7 +172018,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
172018
172018
  writeInfo,
172019
172019
  writeSuccess,
172020
172020
  writeTrace,
172021
- findWorkspaceRootSafe,
172021
+ findWorkspaceRoot,
172022
172022
  loadStormConfig
172023
172023
  } = await import("@storm-software/config-tools");
172024
172024
  const stopwatch = getStopwatch(name);
@@ -172028,7 +172028,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
172028
172028
  writeInfo(config, `\u26A1 Running the ${name} generator...
172029
172029
 
172030
172030
  `);
172031
- const workspaceRoot = findWorkspaceRootSafe();
172031
+ const workspaceRoot = findWorkspaceRoot();
172032
172032
  if (!generatorOptions.skipReadingConfig) {
172033
172033
  writeDebug(
172034
172034
  config,
@@ -172042,6 +172042,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
172042
172042
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
172043
172043
  );
172044
172044
  }
172045
+ process.chdir(workspaceRoot);
172045
172046
  if (generatorOptions?.hooks?.applyDefaultOptions) {
172046
172047
  writeDebug(config, "Running the applyDefaultOptions hook...");
172047
172048
  options8 = await Promise.resolve(
@@ -174485,7 +174485,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
174485
174485
  writeInfo,
174486
174486
  writeSuccess,
174487
174487
  writeTrace,
174488
- findWorkspaceRootSafe,
174488
+ findWorkspaceRoot,
174489
174489
  loadStormConfig
174490
174490
  } = await import("@storm-software/config-tools");
174491
174491
  const stopwatch = getStopwatch(name);
@@ -174495,7 +174495,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
174495
174495
  writeInfo(config, `\u26A1 Running the ${name} generator...
174496
174496
 
174497
174497
  `);
174498
- const workspaceRoot = findWorkspaceRootSafe();
174498
+ const workspaceRoot = findWorkspaceRoot();
174499
174499
  if (!generatorOptions.skipReadingConfig) {
174500
174500
  writeDebug(
174501
174501
  config,
@@ -174509,6 +174509,7 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
174509
174509
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
174510
174510
  );
174511
174511
  }
174512
+ process.chdir(workspaceRoot);
174512
174513
  if (generatorOptions?.hooks?.applyDefaultOptions) {
174513
174514
  writeDebug(config, "Running the applyDefaultOptions hook...");
174514
174515
  options8 = await Promise.resolve(
@@ -457349,6 +457349,8 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
457349
457349
  compilerOptions: {
457350
457350
  ...rawTsconfig.config?.compilerOptions,
457351
457351
  outDir: outputPath,
457352
+ rootDir: ".",
457353
+ baseUrl: correctPaths(workspaceRoot),
457352
457354
  noEmit: false,
457353
457355
  emitDeclarationOnly: true,
457354
457356
  declaration: true,
@@ -457357,7 +457359,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
457357
457359
  }
457358
457360
  },
457359
457361
  import_typescript.sys,
457360
- correctPaths(workspaceRoot)
457362
+ correctPaths((0, import_node_path2.dirname)(options8.tsConfig))
457361
457363
  );
457362
457364
  parsedTsconfig.options.pathsBasePath = correctPaths(workspaceRoot);
457363
457365
  if (parsedTsconfig.options.paths) {