@storm-software/workspace-tools 1.65.2 → 1.65.4

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.65.2",
3
+ "version": "1.65.4",
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
@@ -391308,7 +391308,6 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
391308
391308
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
391309
391309
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
391310
391310
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
391311
- process.chdir(workspaceRoot);
391312
391311
  if (!executorOptions.skipReadingConfig) {
391313
391312
  writeDebug(
391314
391313
  config,
@@ -391437,7 +391436,6 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391437
391436
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
391438
391437
  );
391439
391438
  }
391440
- process.chdir(workspaceRoot);
391441
391439
  if (generatorOptions?.hooks?.applyDefaultOptions) {
391442
391440
  writeDebug(config, "Running the applyDefaultOptions hook...");
391443
391441
  options8 = await Promise.resolve(
@@ -116,7 +116,6 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
116
116
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
117
117
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
118
118
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
119
- process.chdir(workspaceRoot);
120
119
  if (!executorOptions.skipReadingConfig) {
121
120
  writeDebug(
122
121
  config,
@@ -116,7 +116,6 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
116
116
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
117
117
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
118
118
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
119
- process.chdir(workspaceRoot);
120
119
  if (!executorOptions.skipReadingConfig) {
121
120
  writeDebug(
122
121
  config,
@@ -116,7 +116,6 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
116
116
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
117
117
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
118
118
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
119
- process.chdir(workspaceRoot);
120
119
  if (!executorOptions.skipReadingConfig) {
121
120
  writeDebug(
122
121
  config,
@@ -116,7 +116,6 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
116
116
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
117
117
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
118
118
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
119
- process.chdir(workspaceRoot);
120
119
  if (!executorOptions.skipReadingConfig) {
121
120
  writeDebug(
122
121
  config,
@@ -227856,7 +227856,6 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
227856
227856
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
227857
227857
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
227858
227858
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
227859
- process.chdir(workspaceRoot);
227860
227859
  if (!executorOptions.skipReadingConfig) {
227861
227860
  writeDebug(
227862
227861
  config,
@@ -391259,7 +391259,6 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391259
391259
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
391260
391260
  );
391261
391261
  }
391262
- process.chdir(workspaceRoot);
391263
391262
  if (generatorOptions?.hooks?.applyDefaultOptions) {
391264
391263
  writeDebug(config, "Running the applyDefaultOptions hook...");
391265
391264
  options8 = await Promise.resolve(
@@ -176583,7 +176583,6 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
176583
176583
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
176584
176584
  );
176585
176585
  }
176586
- process.chdir(workspaceRoot);
176587
176586
  if (generatorOptions?.hooks?.applyDefaultOptions) {
176588
176587
  writeDebug(config, "Running the applyDefaultOptions hook...");
176589
176588
  options8 = await Promise.resolve(
@@ -391259,7 +391259,6 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391259
391259
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
391260
391260
  );
391261
391261
  }
391262
- process.chdir(workspaceRoot);
391263
391262
  if (generatorOptions?.hooks?.applyDefaultOptions) {
391264
391263
  writeDebug(config, "Running the applyDefaultOptions hook...");
391265
391264
  options8 = await Promise.resolve(
@@ -391259,7 +391259,6 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
391259
391259
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
391260
391260
  );
391261
391261
  }
391262
- process.chdir(workspaceRoot);
391263
391262
  if (generatorOptions?.hooks?.applyDefaultOptions) {
391264
391263
  writeDebug(config, "Running the applyDefaultOptions hook...");
391265
391264
  options8 = await Promise.resolve(
@@ -171997,7 +171997,6 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
171997
171997
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
171998
171998
  );
171999
171999
  }
172000
- process.chdir(workspaceRoot);
172001
172000
  if (generatorOptions?.hooks?.applyDefaultOptions) {
172002
172001
  writeDebug(config, "Running the applyDefaultOptions hook...");
172003
172002
  options8 = await Promise.resolve(
@@ -174464,7 +174464,6 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
174464
174464
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
174465
174465
  );
174466
174466
  }
174467
- process.chdir(workspaceRoot);
174468
174467
  if (generatorOptions?.hooks?.applyDefaultOptions) {
174469
174468
  writeDebug(config, "Running the applyDefaultOptions hook...");
174470
174469
  options8 = await Promise.resolve(
@@ -1,11 +0,0 @@
1
- // Shim globals in cjs bundle
2
- // There's a weird bug that esbuild will always inject importMetaUrl
3
- // if we export it as `const importMetaUrl = ... __filename ...`
4
- // But using a function will not cause this issue
5
-
6
- const getImportMetaUrl = () =>
7
- typeof document === "undefined"
8
- ? new URL(`file:${__filename}`).href
9
- : document.currentScript?.src || new URL("main.js", document.baseURI).href;
10
-
11
- export const importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -1,9 +0,0 @@
1
- // Shim globals in esm bundle
2
- import path from "node:path";
3
- import { fileURLToPath } from "node:url";
4
-
5
- const getFilename = () => fileURLToPath(import.meta.url);
6
- const getDirname = () => path.dirname(getFilename());
7
-
8
- export const __dirname = /* @__PURE__ */ getDirname();
9
- export const __filename = /* @__PURE__ */ getFilename();