@storm-software/workspace-tools 1.31.9 → 1.31.11

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.31.9",
3
+ "version": "1.31.11",
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
@@ -8058,7 +8058,7 @@ __export(base_exports, {
8058
8058
  module.exports = __toCommonJS(base_exports);
8059
8059
 
8060
8060
  // packages/config-tools/src/config-file/get-config-file.ts
8061
- var import_cosmiconfig = __toESM(require_dist());
8061
+ var import_cosmiconfig = __toESM(require_dist(), 1);
8062
8062
  var _static_cache = void 0;
8063
8063
  var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
8064
8064
  var getConfigFile = async () => {
@@ -11786,7 +11786,10 @@ var getDefaultConfig = (config = {}) => {
11786
11786
  let repository = "https://github.com/storm-software/storm-stack";
11787
11787
  let license = DefaultStormConfig.license;
11788
11788
  let homepage = DefaultStormConfig.homepage;
11789
- const workspaceRoot = getWorkspaceRoot() ?? process.cwd();
11789
+ const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
11790
+ if (typeof workspaceRoot !== "string") {
11791
+ throw new Error("Could not find workspace root");
11792
+ }
11790
11793
  if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
11791
11794
  const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
11792
11795
  encoding: "utf-8"
@@ -11814,12 +11817,6 @@ var getDefaultConfig = (config = {}) => {
11814
11817
  })
11815
11818
  );
11816
11819
  };
11817
- var getWorkspaceRoot = () => {
11818
- const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
11819
- process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
11820
- process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
11821
- return root?.dir;
11822
- };
11823
11820
 
11824
11821
  // packages/config-tools/src/utilities/get-log-level.ts
11825
11822
  var getLogLevel = (label) => {
@@ -12005,7 +12002,7 @@ var chalk = __toESM(require_source());
12005
12002
 
12006
12003
  // packages/workspace-tools/src/utils/get-workspace-root.ts
12007
12004
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
12008
- var getWorkspaceRoot2 = () => {
12005
+ var getWorkspaceRoot = () => {
12009
12006
  const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
12010
12007
  process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
12011
12008
  process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
@@ -12057,7 +12054,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
12057
12054
  if (result.includes("{workspaceRoot}")) {
12058
12055
  result = result.replaceAll(
12059
12056
  "{workspaceRoot}",
12060
- tokenizerOptions.workspaceRoot ?? getWorkspaceRoot2()
12057
+ tokenizerOptions.workspaceRoot ?? getWorkspaceRoot()
12061
12058
  );
12062
12059
  }
12063
12060
  return result;
@@ -12083,7 +12080,7 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
12083
12080
  if (result.includes("{workspaceRoot}")) {
12084
12081
  result = result.replaceAll(
12085
12082
  "{workspaceRoot}",
12086
- tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot2()
12083
+ tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot()
12087
12084
  );
12088
12085
  }
12089
12086
  return result;
@@ -12131,7 +12128,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {
12131
12128
  "The Build process failed because the context is not valid. Please run this command from a workspace."
12132
12129
  );
12133
12130
  }
12134
- const workspaceRoot = getWorkspaceRoot2();
12131
+ const workspaceRoot = getWorkspaceRoot();
12135
12132
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
12136
12133
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
12137
12134
  const projectName = context.projectsConfigurations.projects[context.projectName].name;
@@ -61427,7 +61427,7 @@ var createTailwindConfig = ({ inputPath }) => {
61427
61427
  };
61428
61428
 
61429
61429
  // packages/config-tools/src/config-file/get-config-file.ts
61430
- var import_cosmiconfig = __toESM(require_dist17());
61430
+ var import_cosmiconfig = __toESM(require_dist17(), 1);
61431
61431
  var _static_cache = void 0;
61432
61432
  var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
61433
61433
  var getConfigFile = async () => {
@@ -65155,7 +65155,10 @@ var getDefaultConfig = (config = {}) => {
65155
65155
  let repository = "https://github.com/storm-software/storm-stack";
65156
65156
  let license = DefaultStormConfig.license;
65157
65157
  let homepage = DefaultStormConfig.homepage;
65158
- const workspaceRoot = getWorkspaceRoot() ?? process.cwd();
65158
+ const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
65159
+ if (typeof workspaceRoot !== "string") {
65160
+ throw new Error("Could not find workspace root");
65161
+ }
65159
65162
  if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
65160
65163
  const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
65161
65164
  encoding: "utf-8"
@@ -65183,12 +65186,6 @@ var getDefaultConfig = (config = {}) => {
65183
65186
  })
65184
65187
  );
65185
65188
  };
65186
- var getWorkspaceRoot = () => {
65187
- const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
65188
- process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
65189
- process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
65190
- return root?.dir;
65191
- };
65192
65189
 
65193
65190
  // packages/config-tools/src/utilities/get-log-level.ts
65194
65191
  var getLogLevel = (label) => {
@@ -65374,7 +65371,7 @@ var chalk = __toESM(require_source());
65374
65371
 
65375
65372
  // packages/workspace-tools/src/utils/get-workspace-root.ts
65376
65373
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
65377
- var getWorkspaceRoot2 = () => {
65374
+ var getWorkspaceRoot = () => {
65378
65375
  const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
65379
65376
  process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
65380
65377
  process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
@@ -65426,7 +65423,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
65426
65423
  if (result.includes("{workspaceRoot}")) {
65427
65424
  result = result.replaceAll(
65428
65425
  "{workspaceRoot}",
65429
- tokenizerOptions.workspaceRoot ?? getWorkspaceRoot2()
65426
+ tokenizerOptions.workspaceRoot ?? getWorkspaceRoot()
65430
65427
  );
65431
65428
  }
65432
65429
  return result;
@@ -65474,7 +65471,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {
65474
65471
  "The Build process failed because the context is not valid. Please run this command from a workspace."
65475
65472
  );
65476
65473
  }
65477
- const workspaceRoot = getWorkspaceRoot2();
65474
+ const workspaceRoot = getWorkspaceRoot();
65478
65475
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
65479
65476
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
65480
65477
  const projectName = context.projectsConfigurations.projects[context.projectName].name;
@@ -112457,7 +112457,7 @@ var import_tsup = __toESM(require_dist5());
112457
112457
  var ts = __toESM(require("typescript"));
112458
112458
 
112459
112459
  // packages/config-tools/src/config-file/get-config-file.ts
112460
- var import_cosmiconfig = __toESM(require_dist6());
112460
+ var import_cosmiconfig = __toESM(require_dist6(), 1);
112461
112461
  var _static_cache = void 0;
112462
112462
  var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
112463
112463
  var getConfigFile = async () => {
@@ -116185,7 +116185,10 @@ var getDefaultConfig = (config = {}) => {
116185
116185
  let repository = "https://github.com/storm-software/storm-stack";
116186
116186
  let license = DefaultStormConfig.license;
116187
116187
  let homepage = DefaultStormConfig.homepage;
116188
- const workspaceRoot = getWorkspaceRoot() ?? process.cwd();
116188
+ const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
116189
+ if (typeof workspaceRoot !== "string") {
116190
+ throw new Error("Could not find workspace root");
116191
+ }
116189
116192
  if ((0, import_fs2.existsSync)((0, import_path2.join)(workspaceRoot, "package.json"))) {
116190
116193
  const file = (0, import_fs2.readFileSync)((0, import_path2.join)(workspaceRoot, "package.json"), {
116191
116194
  encoding: "utf-8"
@@ -116213,12 +116216,6 @@ var getDefaultConfig = (config = {}) => {
116213
116216
  })
116214
116217
  );
116215
116218
  };
116216
- var getWorkspaceRoot = () => {
116217
- const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
116218
- process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
116219
- process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
116220
- return root?.dir;
116221
- };
116222
116219
 
116223
116220
  // packages/config-tools/src/utilities/get-log-level.ts
116224
116221
  var getLogLevel = (label) => {
@@ -116404,7 +116401,7 @@ var chalk = __toESM(require_source());
116404
116401
 
116405
116402
  // packages/workspace-tools/src/utils/get-workspace-root.ts
116406
116403
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
116407
- var getWorkspaceRoot2 = () => {
116404
+ var getWorkspaceRoot = () => {
116408
116405
  const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
116409
116406
  process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
116410
116407
  process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
@@ -116456,7 +116453,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
116456
116453
  if (result.includes("{workspaceRoot}")) {
116457
116454
  result = result.replaceAll(
116458
116455
  "{workspaceRoot}",
116459
- tokenizerOptions.workspaceRoot ?? getWorkspaceRoot2()
116456
+ tokenizerOptions.workspaceRoot ?? getWorkspaceRoot()
116460
116457
  );
116461
116458
  }
116462
116459
  return result;
@@ -116504,7 +116501,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {
116504
116501
  "The Build process failed because the context is not valid. Please run this command from a workspace."
116505
116502
  );
116506
116503
  }
116507
- const workspaceRoot = getWorkspaceRoot2();
116504
+ const workspaceRoot = getWorkspaceRoot();
116508
116505
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
116509
116506
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
116510
116507
  const projectName = context.projectsConfigurations.projects[context.projectName].name;
@@ -116610,7 +116607,7 @@ var removeExtension = (filePath) => {
116610
116607
  // packages/workspace-tools/src/utils/get-project-configurations.ts
116611
116608
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
116612
116609
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
116613
- getWorkspaceRoot2()
116610
+ getWorkspaceRoot()
116614
116611
  );
116615
116612
 
116616
116613
  // packages/workspace-tools/src/utils/get-project-deps.ts
@@ -116833,7 +116830,7 @@ ${Object.keys(options).map(
116833
116830
  "The Build process failed because the context is not valid. Please run this command from a workspace."
116834
116831
  );
116835
116832
  }
116836
- const workspaceRoot = getWorkspaceRoot2();
116833
+ const workspaceRoot = getWorkspaceRoot();
116837
116834
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
116838
116835
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
116839
116836
  if (options.clean !== false) {
@@ -106223,7 +106223,7 @@ __export(executor_exports, {
106223
106223
  module.exports = __toCommonJS(executor_exports);
106224
106224
 
106225
106225
  // packages/config-tools/src/config-file/get-config-file.ts
106226
- var import_cosmiconfig = __toESM(require_dist());
106226
+ var import_cosmiconfig = __toESM(require_dist(), 1);
106227
106227
  var _static_cache = void 0;
106228
106228
  var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
106229
106229
  var getConfigFile = async () => {
@@ -109951,7 +109951,10 @@ var getDefaultConfig = (config = {}) => {
109951
109951
  let repository = "https://github.com/storm-software/storm-stack";
109952
109952
  let license = DefaultStormConfig.license;
109953
109953
  let homepage = DefaultStormConfig.homepage;
109954
- const workspaceRoot = getWorkspaceRoot() ?? process.cwd();
109954
+ const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
109955
+ if (typeof workspaceRoot !== "string") {
109956
+ throw new Error("Could not find workspace root");
109957
+ }
109955
109958
  if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
109956
109959
  const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
109957
109960
  encoding: "utf-8"
@@ -109979,12 +109982,6 @@ var getDefaultConfig = (config = {}) => {
109979
109982
  })
109980
109983
  );
109981
109984
  };
109982
- var getWorkspaceRoot = () => {
109983
- const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
109984
- process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
109985
- process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
109986
- return root?.dir;
109987
- };
109988
109985
 
109989
109986
  // packages/config-tools/src/utilities/get-log-level.ts
109990
109987
  var getLogLevel = (label) => {
@@ -110170,7 +110167,7 @@ var chalk = __toESM(require_source());
110170
110167
 
110171
110168
  // packages/workspace-tools/src/utils/get-workspace-root.ts
110172
110169
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
110173
- var getWorkspaceRoot2 = () => {
110170
+ var getWorkspaceRoot = () => {
110174
110171
  const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
110175
110172
  process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
110176
110173
  process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
@@ -110222,7 +110219,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
110222
110219
  if (result.includes("{workspaceRoot}")) {
110223
110220
  result = result.replaceAll(
110224
110221
  "{workspaceRoot}",
110225
- tokenizerOptions.workspaceRoot ?? getWorkspaceRoot2()
110222
+ tokenizerOptions.workspaceRoot ?? getWorkspaceRoot()
110226
110223
  );
110227
110224
  }
110228
110225
  return result;
@@ -110270,7 +110267,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {
110270
110267
  "The Build process failed because the context is not valid. Please run this command from a workspace."
110271
110268
  );
110272
110269
  }
110273
- const workspaceRoot = getWorkspaceRoot2();
110270
+ const workspaceRoot = getWorkspaceRoot();
110274
110271
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
110275
110272
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
110276
110273
  const projectName = context.projectsConfigurations.projects[context.projectName].name;
@@ -116641,7 +116638,7 @@ var removeExtension = (filePath) => {
116641
116638
  // packages/workspace-tools/src/utils/get-project-configurations.ts
116642
116639
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
116643
116640
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
116644
- getWorkspaceRoot2()
116641
+ getWorkspaceRoot()
116645
116642
  );
116646
116643
 
116647
116644
  // packages/workspace-tools/src/utils/get-project-deps.ts
@@ -116864,7 +116861,7 @@ ${Object.keys(options).map(
116864
116861
  "The Build process failed because the context is not valid. Please run this command from a workspace."
116865
116862
  );
116866
116863
  }
116867
- const workspaceRoot = getWorkspaceRoot2();
116864
+ const workspaceRoot = getWorkspaceRoot();
116868
116865
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
116869
116866
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
116870
116867
  if (options.clean !== false) {
@@ -106223,7 +106223,7 @@ __export(executor_exports, {
106223
106223
  module.exports = __toCommonJS(executor_exports);
106224
106224
 
106225
106225
  // packages/config-tools/src/config-file/get-config-file.ts
106226
- var import_cosmiconfig = __toESM(require_dist());
106226
+ var import_cosmiconfig = __toESM(require_dist(), 1);
106227
106227
  var _static_cache = void 0;
106228
106228
  var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
106229
106229
  var getConfigFile = async () => {
@@ -109951,7 +109951,10 @@ var getDefaultConfig = (config = {}) => {
109951
109951
  let repository = "https://github.com/storm-software/storm-stack";
109952
109952
  let license = DefaultStormConfig.license;
109953
109953
  let homepage = DefaultStormConfig.homepage;
109954
- const workspaceRoot = getWorkspaceRoot() ?? process.cwd();
109954
+ const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
109955
+ if (typeof workspaceRoot !== "string") {
109956
+ throw new Error("Could not find workspace root");
109957
+ }
109955
109958
  if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
109956
109959
  const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
109957
109960
  encoding: "utf-8"
@@ -109979,12 +109982,6 @@ var getDefaultConfig = (config = {}) => {
109979
109982
  })
109980
109983
  );
109981
109984
  };
109982
- var getWorkspaceRoot = () => {
109983
- const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
109984
- process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
109985
- process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
109986
- return root?.dir;
109987
- };
109988
109985
 
109989
109986
  // packages/config-tools/src/utilities/get-log-level.ts
109990
109987
  var getLogLevel = (label) => {
@@ -110170,7 +110167,7 @@ var chalk = __toESM(require_source());
110170
110167
 
110171
110168
  // packages/workspace-tools/src/utils/get-workspace-root.ts
110172
110169
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
110173
- var getWorkspaceRoot2 = () => {
110170
+ var getWorkspaceRoot = () => {
110174
110171
  const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
110175
110172
  process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
110176
110173
  process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
@@ -110222,7 +110219,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
110222
110219
  if (result.includes("{workspaceRoot}")) {
110223
110220
  result = result.replaceAll(
110224
110221
  "{workspaceRoot}",
110225
- tokenizerOptions.workspaceRoot ?? getWorkspaceRoot2()
110222
+ tokenizerOptions.workspaceRoot ?? getWorkspaceRoot()
110226
110223
  );
110227
110224
  }
110228
110225
  return result;
@@ -110270,7 +110267,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {
110270
110267
  "The Build process failed because the context is not valid. Please run this command from a workspace."
110271
110268
  );
110272
110269
  }
110273
- const workspaceRoot = getWorkspaceRoot2();
110270
+ const workspaceRoot = getWorkspaceRoot();
110274
110271
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
110275
110272
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
110276
110273
  const projectName = context.projectsConfigurations.projects[context.projectName].name;
@@ -116641,7 +116638,7 @@ var removeExtension = (filePath) => {
116641
116638
  // packages/workspace-tools/src/utils/get-project-configurations.ts
116642
116639
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
116643
116640
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
116644
- getWorkspaceRoot2()
116641
+ getWorkspaceRoot()
116645
116642
  );
116646
116643
 
116647
116644
  // packages/workspace-tools/src/utils/get-project-deps.ts
@@ -116864,7 +116861,7 @@ ${Object.keys(options).map(
116864
116861
  "The Build process failed because the context is not valid. Please run this command from a workspace."
116865
116862
  );
116866
116863
  }
116867
- const workspaceRoot = getWorkspaceRoot2();
116864
+ const workspaceRoot = getWorkspaceRoot();
116868
116865
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
116869
116866
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
116870
116867
  if (options.clean !== false) {
@@ -106223,7 +106223,7 @@ __export(executor_exports, {
106223
106223
  module.exports = __toCommonJS(executor_exports);
106224
106224
 
106225
106225
  // packages/config-tools/src/config-file/get-config-file.ts
106226
- var import_cosmiconfig = __toESM(require_dist());
106226
+ var import_cosmiconfig = __toESM(require_dist(), 1);
106227
106227
  var _static_cache = void 0;
106228
106228
  var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
106229
106229
  var getConfigFile = async () => {
@@ -109951,7 +109951,10 @@ var getDefaultConfig = (config = {}) => {
109951
109951
  let repository = "https://github.com/storm-software/storm-stack";
109952
109952
  let license = DefaultStormConfig.license;
109953
109953
  let homepage = DefaultStormConfig.homepage;
109954
- const workspaceRoot = getWorkspaceRoot() ?? process.cwd();
109954
+ const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
109955
+ if (typeof workspaceRoot !== "string") {
109956
+ throw new Error("Could not find workspace root");
109957
+ }
109955
109958
  if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
109956
109959
  const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
109957
109960
  encoding: "utf-8"
@@ -109979,12 +109982,6 @@ var getDefaultConfig = (config = {}) => {
109979
109982
  })
109980
109983
  );
109981
109984
  };
109982
- var getWorkspaceRoot = () => {
109983
- const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
109984
- process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
109985
- process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
109986
- return root?.dir;
109987
- };
109988
109985
 
109989
109986
  // packages/config-tools/src/utilities/get-log-level.ts
109990
109987
  var getLogLevel = (label) => {
@@ -110170,7 +110167,7 @@ var chalk = __toESM(require_source());
110170
110167
 
110171
110168
  // packages/workspace-tools/src/utils/get-workspace-root.ts
110172
110169
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
110173
- var getWorkspaceRoot2 = () => {
110170
+ var getWorkspaceRoot = () => {
110174
110171
  const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
110175
110172
  process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
110176
110173
  process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
@@ -110222,7 +110219,7 @@ var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
110222
110219
  if (result.includes("{workspaceRoot}")) {
110223
110220
  result = result.replaceAll(
110224
110221
  "{workspaceRoot}",
110225
- tokenizerOptions.workspaceRoot ?? getWorkspaceRoot2()
110222
+ tokenizerOptions.workspaceRoot ?? getWorkspaceRoot()
110226
110223
  );
110227
110224
  }
110228
110225
  return result;
@@ -110270,7 +110267,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {
110270
110267
  "The Build process failed because the context is not valid. Please run this command from a workspace."
110271
110268
  );
110272
110269
  }
110273
- const workspaceRoot = getWorkspaceRoot2();
110270
+ const workspaceRoot = getWorkspaceRoot();
110274
110271
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
110275
110272
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
110276
110273
  const projectName = context.projectsConfigurations.projects[context.projectName].name;
@@ -116641,7 +116638,7 @@ var removeExtension = (filePath) => {
116641
116638
  // packages/workspace-tools/src/utils/get-project-configurations.ts
116642
116639
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
116643
116640
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
116644
- getWorkspaceRoot2()
116641
+ getWorkspaceRoot()
116645
116642
  );
116646
116643
 
116647
116644
  // packages/workspace-tools/src/utils/get-project-deps.ts
@@ -116864,7 +116861,7 @@ ${Object.keys(options).map(
116864
116861
  "The Build process failed because the context is not valid. Please run this command from a workspace."
116865
116862
  );
116866
116863
  }
116867
- const workspaceRoot = getWorkspaceRoot2();
116864
+ const workspaceRoot = getWorkspaceRoot();
116868
116865
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
116869
116866
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
116870
116867
  if (options.clean !== false) {
@@ -43504,7 +43504,7 @@ module.exports = __toCommonJS(generator_exports);
43504
43504
  var import_devkit2 = __toESM(require_devkit());
43505
43505
 
43506
43506
  // packages/config-tools/src/config-file/get-config-file.ts
43507
- var import_cosmiconfig = __toESM(require_dist());
43507
+ var import_cosmiconfig = __toESM(require_dist(), 1);
43508
43508
  var _static_cache = void 0;
43509
43509
  var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
43510
43510
  var getConfigFile = async () => {
@@ -47232,7 +47232,10 @@ var getDefaultConfig = (config = {}) => {
47232
47232
  let repository = "https://github.com/storm-software/storm-stack";
47233
47233
  let license = DefaultStormConfig.license;
47234
47234
  let homepage = DefaultStormConfig.homepage;
47235
- const workspaceRoot = getWorkspaceRoot() ?? process.cwd();
47235
+ const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
47236
+ if (typeof workspaceRoot !== "string") {
47237
+ throw new Error("Could not find workspace root");
47238
+ }
47236
47239
  if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
47237
47240
  const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
47238
47241
  encoding: "utf-8"
@@ -47260,12 +47263,6 @@ var getDefaultConfig = (config = {}) => {
47260
47263
  })
47261
47264
  );
47262
47265
  };
47263
- var getWorkspaceRoot = () => {
47264
- const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
47265
- process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
47266
- process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
47267
- return root?.dir;
47268
- };
47269
47266
 
47270
47267
  // packages/config-tools/src/utilities/get-log-level.ts
47271
47268
  var getLogLevel = (label) => {
@@ -47451,7 +47448,7 @@ var chalk = __toESM(require_source());
47451
47448
 
47452
47449
  // packages/workspace-tools/src/utils/get-workspace-root.ts
47453
47450
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
47454
- var getWorkspaceRoot2 = () => {
47451
+ var getWorkspaceRoot = () => {
47455
47452
  const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
47456
47453
  process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
47457
47454
  process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
@@ -47480,7 +47477,7 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
47480
47477
  if (result.includes("{workspaceRoot}")) {
47481
47478
  result = result.replaceAll(
47482
47479
  "{workspaceRoot}",
47483
- tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot2()
47480
+ tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot()
47484
47481
  );
47485
47482
  }
47486
47483
  return result;
@@ -26262,7 +26262,7 @@ module.exports = __toCommonJS(generator_exports);
26262
26262
  var import_devkit = __toESM(require_devkit());
26263
26263
 
26264
26264
  // packages/config-tools/src/config-file/get-config-file.ts
26265
- var import_cosmiconfig = __toESM(require_dist());
26265
+ var import_cosmiconfig = __toESM(require_dist(), 1);
26266
26266
  var _static_cache = void 0;
26267
26267
  var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
26268
26268
  var getConfigFile = async () => {
@@ -29990,7 +29990,10 @@ var getDefaultConfig = (config = {}) => {
29990
29990
  let repository = "https://github.com/storm-software/storm-stack";
29991
29991
  let license = DefaultStormConfig.license;
29992
29992
  let homepage = DefaultStormConfig.homepage;
29993
- const workspaceRoot = getWorkspaceRoot() ?? process.cwd();
29993
+ const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
29994
+ if (typeof workspaceRoot !== "string") {
29995
+ throw new Error("Could not find workspace root");
29996
+ }
29994
29997
  if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
29995
29998
  const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
29996
29999
  encoding: "utf-8"
@@ -30018,12 +30021,6 @@ var getDefaultConfig = (config = {}) => {
30018
30021
  })
30019
30022
  );
30020
30023
  };
30021
- var getWorkspaceRoot = () => {
30022
- const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
30023
- process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
30024
- process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
30025
- return root?.dir;
30026
- };
30027
30024
 
30028
30025
  // packages/config-tools/src/utilities/get-log-level.ts
30029
30026
  var getLogLevel = (label) => {
@@ -31224,7 +31221,7 @@ var chalk = __toESM(require_source());
31224
31221
 
31225
31222
  // packages/workspace-tools/src/utils/get-workspace-root.ts
31226
31223
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
31227
- var getWorkspaceRoot2 = () => {
31224
+ var getWorkspaceRoot = () => {
31228
31225
  const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
31229
31226
  process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
31230
31227
  process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
@@ -31253,7 +31250,7 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
31253
31250
  if (result.includes("{workspaceRoot}")) {
31254
31251
  result = result.replaceAll(
31255
31252
  "{workspaceRoot}",
31256
- tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot2()
31253
+ tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot()
31257
31254
  );
31258
31255
  }
31259
31256
  return result;
@@ -31380,13 +31377,13 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
31380
31377
  // packages/workspace-tools/src/utils/get-project-configurations.ts
31381
31378
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
31382
31379
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
31383
- getWorkspaceRoot2()
31380
+ getWorkspaceRoot()
31384
31381
  );
31385
31382
 
31386
31383
  // packages/workspace-tools/src/generators/config-schema/generator.ts
31387
31384
  async function configSchemaGeneratorFn(tree, options) {
31388
31385
  const projectConfigurations = getProjectConfigurations();
31389
- const workspaceRoot = getWorkspaceRoot2();
31386
+ const workspaceRoot = getWorkspaceRoot();
31390
31387
  const modules = await Promise.all(
31391
31388
  Object.keys(projectConfigurations).map(async (key) => {
31392
31389
  if (projectConfigurations[key]?.config) {
@@ -43504,7 +43504,7 @@ module.exports = __toCommonJS(generator_exports);
43504
43504
  var import_devkit2 = __toESM(require_devkit());
43505
43505
 
43506
43506
  // packages/config-tools/src/config-file/get-config-file.ts
43507
- var import_cosmiconfig = __toESM(require_dist());
43507
+ var import_cosmiconfig = __toESM(require_dist(), 1);
43508
43508
  var _static_cache = void 0;
43509
43509
  var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
43510
43510
  var getConfigFile = async () => {
@@ -47232,7 +47232,10 @@ var getDefaultConfig = (config = {}) => {
47232
47232
  let repository = "https://github.com/storm-software/storm-stack";
47233
47233
  let license = DefaultStormConfig.license;
47234
47234
  let homepage = DefaultStormConfig.homepage;
47235
- const workspaceRoot = getWorkspaceRoot() ?? process.cwd();
47235
+ const workspaceRoot = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
47236
+ if (typeof workspaceRoot !== "string") {
47237
+ throw new Error("Could not find workspace root");
47238
+ }
47236
47239
  if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
47237
47240
  const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
47238
47241
  encoding: "utf-8"
@@ -47260,12 +47263,6 @@ var getDefaultConfig = (config = {}) => {
47260
47263
  })
47261
47264
  );
47262
47265
  };
47263
- var getWorkspaceRoot = () => {
47264
- const root = (0, import_find_workspace_root.findWorkspaceRoot)(process.cwd());
47265
- process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
47266
- process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
47267
- return root?.dir;
47268
- };
47269
47266
 
47270
47267
  // packages/config-tools/src/utilities/get-log-level.ts
47271
47268
  var getLogLevel = (label) => {
@@ -47451,7 +47448,7 @@ var chalk = __toESM(require_source());
47451
47448
 
47452
47449
  // packages/workspace-tools/src/utils/get-workspace-root.ts
47453
47450
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
47454
- var getWorkspaceRoot2 = () => {
47451
+ var getWorkspaceRoot = () => {
47455
47452
  const root = (0, import_find_workspace_root2.findWorkspaceRoot)(process.cwd());
47456
47453
  process.env.STORM_WORKSPACE_ROOT ??= root?.dir;
47457
47454
  process.env.NX_WORKSPACE_ROOT_PATH ??= root?.dir;
@@ -47480,7 +47477,7 @@ var applyWorkspaceGeneratorTokens = (option, tokenizerOptions) => {
47480
47477
  if (result.includes("{workspaceRoot}")) {
47481
47478
  result = result.replaceAll(
47482
47479
  "{workspaceRoot}",
47483
- tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot2()
47480
+ tokenizerOptions.workspaceRoot ?? tokenizerOptions.config.workspaceRoot ?? getWorkspaceRoot()
47484
47481
  );
47485
47482
  }
47486
47483
  return result;