@storm-software/workspace-tools 1.72.2 → 1.72.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.
@@ -73,9 +73,13 @@ var init_find_up = __esm({
73
73
  // packages/config-tools/src/utilities/find-workspace-root.ts
74
74
  function findWorkspaceRootSafe(pathInsideMonorepo) {
75
75
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
76
- return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
76
+ return correctPaths(
77
+ process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
78
+ );
77
79
  }
78
- return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
80
+ return correctPaths(
81
+ findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
82
+ );
79
83
  }
80
84
  function findWorkspaceRoot(pathInsideMonorepo) {
81
85
  const result = findWorkspaceRootSafe(pathInsideMonorepo);
@@ -97,8 +101,11 @@ var init_find_workspace_root = __esm({
97
101
  init_find_up();
98
102
  rootFiles = [
99
103
  "storm.json",
100
- "storm.config.js",
101
- "storm.config.ts",
104
+ "storm.json",
105
+ "storm.yaml",
106
+ "storm.yml",
107
+ "storm.js",
108
+ "storm.ts",
102
109
  ".storm.json",
103
110
  ".storm.yaml",
104
111
  ".storm.yml",
@@ -73268,8 +73275,14 @@ ${Object.keys(options).map(
73268
73275
  );
73269
73276
  writeDebug2("Completed the preProcess hook", config);
73270
73277
  }
73278
+ const ret = executorFn(tokenized, context, config);
73279
+ if (_isFunction(ret?.next)) {
73280
+ const asyncGen = ret;
73281
+ for await (const iter of asyncGen) {
73282
+ }
73283
+ }
73271
73284
  const result = await Promise.resolve(
73272
- executorFn(tokenized, context, config)
73285
+ ret
73273
73286
  );
73274
73287
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
73275
73288
  throw new Error(`The ${name} executor failed to run`, {
@@ -73,9 +73,13 @@ var init_find_up = __esm({
73
73
  // packages/config-tools/src/utilities/find-workspace-root.ts
74
74
  function findWorkspaceRootSafe(pathInsideMonorepo) {
75
75
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
76
- return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
76
+ return correctPaths(
77
+ process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
78
+ );
77
79
  }
78
- return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
80
+ return correctPaths(
81
+ findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
82
+ );
79
83
  }
80
84
  function findWorkspaceRoot(pathInsideMonorepo) {
81
85
  const result = findWorkspaceRootSafe(pathInsideMonorepo);
@@ -97,8 +101,11 @@ var init_find_workspace_root = __esm({
97
101
  init_find_up();
98
102
  rootFiles = [
99
103
  "storm.json",
100
- "storm.config.js",
101
- "storm.config.ts",
104
+ "storm.json",
105
+ "storm.yaml",
106
+ "storm.yml",
107
+ "storm.js",
108
+ "storm.ts",
102
109
  ".storm.json",
103
110
  ".storm.yaml",
104
111
  ".storm.yml",
@@ -73268,8 +73275,14 @@ ${Object.keys(options).map(
73268
73275
  );
73269
73276
  writeDebug2("Completed the preProcess hook", config);
73270
73277
  }
73278
+ const ret = executorFn(tokenized, context, config);
73279
+ if (_isFunction(ret?.next)) {
73280
+ const asyncGen = ret;
73281
+ for await (const iter of asyncGen) {
73282
+ }
73283
+ }
73271
73284
  const result = await Promise.resolve(
73272
- executorFn(tokenized, context, config)
73285
+ ret
73273
73286
  );
73274
73287
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
73275
73288
  throw new Error(`The ${name} executor failed to run`, {
@@ -73,9 +73,13 @@ var init_find_up = __esm({
73
73
  // packages/config-tools/src/utilities/find-workspace-root.ts
74
74
  function findWorkspaceRootSafe(pathInsideMonorepo) {
75
75
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
76
- return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
76
+ return correctPaths(
77
+ process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
78
+ );
77
79
  }
78
- return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
80
+ return correctPaths(
81
+ findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
82
+ );
79
83
  }
80
84
  function findWorkspaceRoot(pathInsideMonorepo) {
81
85
  const result = findWorkspaceRootSafe(pathInsideMonorepo);
@@ -97,8 +101,11 @@ var init_find_workspace_root = __esm({
97
101
  init_find_up();
98
102
  rootFiles = [
99
103
  "storm.json",
100
- "storm.config.js",
101
- "storm.config.ts",
104
+ "storm.json",
105
+ "storm.yaml",
106
+ "storm.yml",
107
+ "storm.js",
108
+ "storm.ts",
102
109
  ".storm.json",
103
110
  ".storm.yaml",
104
111
  ".storm.yml",
@@ -73268,8 +73275,14 @@ ${Object.keys(options).map(
73268
73275
  );
73269
73276
  writeDebug2("Completed the preProcess hook", config);
73270
73277
  }
73278
+ const ret = executorFn(tokenized, context, config);
73279
+ if (_isFunction(ret?.next)) {
73280
+ const asyncGen = ret;
73281
+ for await (const iter of asyncGen) {
73282
+ }
73283
+ }
73271
73284
  const result = await Promise.resolve(
73272
- executorFn(tokenized, context, config)
73285
+ ret
73273
73286
  );
73274
73287
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
73275
73288
  throw new Error(`The ${name} executor failed to run`, {
@@ -73,9 +73,13 @@ var init_find_up = __esm({
73
73
  // packages/config-tools/src/utilities/find-workspace-root.ts
74
74
  function findWorkspaceRootSafe(pathInsideMonorepo) {
75
75
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
76
- return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
76
+ return correctPaths(
77
+ process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
78
+ );
77
79
  }
78
- return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
80
+ return correctPaths(
81
+ findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
82
+ );
79
83
  }
80
84
  function findWorkspaceRoot(pathInsideMonorepo) {
81
85
  const result = findWorkspaceRootSafe(pathInsideMonorepo);
@@ -97,8 +101,11 @@ var init_find_workspace_root = __esm({
97
101
  init_find_up();
98
102
  rootFiles = [
99
103
  "storm.json",
100
- "storm.config.js",
101
- "storm.config.ts",
104
+ "storm.json",
105
+ "storm.yaml",
106
+ "storm.yml",
107
+ "storm.js",
108
+ "storm.ts",
102
109
  ".storm.json",
103
110
  ".storm.yaml",
104
111
  ".storm.yml",
@@ -73268,8 +73275,14 @@ ${Object.keys(options).map(
73268
73275
  );
73269
73276
  writeDebug2("Completed the preProcess hook", config);
73270
73277
  }
73278
+ const ret = executorFn(tokenized, context, config);
73279
+ if (_isFunction(ret?.next)) {
73280
+ const asyncGen = ret;
73281
+ for await (const iter of asyncGen) {
73282
+ }
73283
+ }
73271
73284
  const result = await Promise.resolve(
73272
- executorFn(tokenized, context, config)
73285
+ ret
73273
73286
  );
73274
73287
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
73275
73288
  throw new Error(`The ${name} executor failed to run`, {
@@ -73,9 +73,13 @@ var init_find_up = __esm({
73
73
  // packages/config-tools/src/utilities/find-workspace-root.ts
74
74
  function findWorkspaceRootSafe(pathInsideMonorepo) {
75
75
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
76
- return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
76
+ return correctPaths(
77
+ process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
78
+ );
77
79
  }
78
- return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
80
+ return correctPaths(
81
+ findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
82
+ );
79
83
  }
80
84
  function findWorkspaceRoot(pathInsideMonorepo) {
81
85
  const result = findWorkspaceRootSafe(pathInsideMonorepo);
@@ -97,8 +101,11 @@ var init_find_workspace_root = __esm({
97
101
  init_find_up();
98
102
  rootFiles = [
99
103
  "storm.json",
100
- "storm.config.js",
101
- "storm.config.ts",
104
+ "storm.json",
105
+ "storm.yaml",
106
+ "storm.yml",
107
+ "storm.js",
108
+ "storm.ts",
102
109
  ".storm.json",
103
110
  ".storm.yaml",
104
111
  ".storm.yml",
@@ -73268,8 +73275,14 @@ ${Object.keys(options).map(
73268
73275
  );
73269
73276
  writeDebug2("Completed the preProcess hook", config);
73270
73277
  }
73278
+ const ret = executorFn(tokenized, context, config);
73279
+ if (_isFunction(ret?.next)) {
73280
+ const asyncGen = ret;
73281
+ for await (const iter of asyncGen) {
73282
+ }
73283
+ }
73271
73284
  const result = await Promise.resolve(
73272
- executorFn(tokenized, context, config)
73285
+ ret
73273
73286
  );
73274
73287
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
73275
73288
  throw new Error(`The ${name} executor failed to run`, {
@@ -2272,9 +2272,13 @@ var init_find_up = __esm({
2272
2272
  // packages/config-tools/src/utilities/find-workspace-root.ts
2273
2273
  function findWorkspaceRootSafe(pathInsideMonorepo) {
2274
2274
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
2275
- return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
2275
+ return correctPaths(
2276
+ process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
2277
+ );
2276
2278
  }
2277
- return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
2279
+ return correctPaths(
2280
+ findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
2281
+ );
2278
2282
  }
2279
2283
  function findWorkspaceRoot(pathInsideMonorepo) {
2280
2284
  const result = findWorkspaceRootSafe(pathInsideMonorepo);
@@ -2296,8 +2300,11 @@ var init_find_workspace_root = __esm({
2296
2300
  init_find_up();
2297
2301
  rootFiles = [
2298
2302
  "storm.json",
2299
- "storm.config.js",
2300
- "storm.config.ts",
2303
+ "storm.json",
2304
+ "storm.yaml",
2305
+ "storm.yml",
2306
+ "storm.js",
2307
+ "storm.ts",
2301
2308
  ".storm.json",
2302
2309
  ".storm.yaml",
2303
2310
  ".storm.yml",
@@ -305425,8 +305432,14 @@ ${Object.keys(options).map(
305425
305432
  );
305426
305433
  writeDebug2("Completed the preProcess hook", config);
305427
305434
  }
305435
+ const ret = executorFn(tokenized, context, config);
305436
+ if (_isFunction(ret?.next)) {
305437
+ const asyncGen = ret;
305438
+ for await (const iter of asyncGen) {
305439
+ }
305440
+ }
305428
305441
  const result = await Promise.resolve(
305429
- executorFn(tokenized, context, config)
305442
+ ret
305430
305443
  );
305431
305444
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
305432
305445
  throw new Error(`The ${name} executor failed to run`, {
@@ -73,9 +73,13 @@ var init_find_up = __esm({
73
73
  // packages/config-tools/src/utilities/find-workspace-root.ts
74
74
  function findWorkspaceRootSafe(pathInsideMonorepo) {
75
75
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
76
- return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
76
+ return correctPaths(
77
+ process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
78
+ );
77
79
  }
78
- return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
80
+ return correctPaths(
81
+ findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
82
+ );
79
83
  }
80
84
  function findWorkspaceRoot(pathInsideMonorepo) {
81
85
  const result = findWorkspaceRootSafe(pathInsideMonorepo);
@@ -97,8 +101,11 @@ var init_find_workspace_root = __esm({
97
101
  init_find_up();
98
102
  rootFiles = [
99
103
  "storm.json",
100
- "storm.config.js",
101
- "storm.config.ts",
104
+ "storm.json",
105
+ "storm.yaml",
106
+ "storm.yml",
107
+ "storm.js",
108
+ "storm.ts",
102
109
  ".storm.json",
103
110
  ".storm.yaml",
104
111
  ".storm.yml",
@@ -73268,8 +73275,14 @@ ${Object.keys(options).map(
73268
73275
  );
73269
73276
  writeDebug2("Completed the preProcess hook", config);
73270
73277
  }
73278
+ const ret = executorFn(tokenized, context, config);
73279
+ if (_isFunction(ret?.next)) {
73280
+ const asyncGen = ret;
73281
+ for await (const iter of asyncGen) {
73282
+ }
73283
+ }
73271
73284
  const result = await Promise.resolve(
73272
- executorFn(tokenized, context, config)
73285
+ ret
73273
73286
  );
73274
73287
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
73275
73288
  throw new Error(`The ${name} executor failed to run`, {