@storm-software/workspace-tools 1.61.0 → 1.62.1

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.
@@ -79,7 +79,7 @@ var init_find_workspace_root = __esm({
79
79
  "packages/config-tools/src/utilities/find-workspace-root.ts"() {
80
80
  init_find_up();
81
81
  rootFiles = [
82
- "lerna.json",
82
+ "storm.json",
83
83
  "storm.config.js",
84
84
  "storm.config.ts",
85
85
  ".storm.json",
@@ -87,6 +87,7 @@ var init_find_workspace_root = __esm({
87
87
  ".storm.yml",
88
88
  ".storm.js",
89
89
  ".storm.ts",
90
+ "lerna.json",
90
91
  "nx.json",
91
92
  "turbo.json",
92
93
  "npm-workspace.json",
@@ -211472,25 +211473,23 @@ var init_get_config_file = __esm({
211472
211473
  } : { config: {}, filepath: jsonPath, isEmpty };
211473
211474
  };
211474
211475
  getConfigFile = async (filePath, additionalFileNames = []) => {
211475
- const workspacePath = filePath ? filePath : findWorkspaceRootSafe(filePath);
211476
- let cosmiconfigResult = await getJsonConfigFile("storm", workspacePath);
211477
- if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
211478
- if (!defaultExplorer) {
211479
- defaultExplorer = await getConfigFileExplorer("storm");
211480
- }
211481
- if (defaultExplorer) {
211482
- cosmiconfigResult = await defaultExplorer.search(workspacePath);
211483
- }
211484
- if ((!cosmiconfigResult || cosmiconfigResult.isEmpty) && additionalFileNames.length > 0) {
211485
- for (const additionalFileName of additionalFileNames) {
211486
- cosmiconfigResult = await getJsonConfigFile(additionalFileName, workspacePath);
211487
- if (cosmiconfigResult && !cosmiconfigResult.isEmpty) {
211488
- break;
211489
- }
211490
- cosmiconfigResult = await getConfigFileByName(additionalFileName, workspacePath);
211491
- if (cosmiconfigResult && !cosmiconfigResult.isEmpty) {
211492
- break;
211493
- }
211476
+ const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
211477
+ if (!defaultExplorer) {
211478
+ defaultExplorer = await getConfigFileExplorer("storm");
211479
+ }
211480
+ let cosmiconfigResult = null;
211481
+ if (defaultExplorer) {
211482
+ cosmiconfigResult = await defaultExplorer.search(workspacePath);
211483
+ }
211484
+ if ((!cosmiconfigResult || cosmiconfigResult.isEmpty) && additionalFileNames.length > 0) {
211485
+ for (const additionalFileName of additionalFileNames) {
211486
+ cosmiconfigResult = await getJsonConfigFile(additionalFileName, workspacePath);
211487
+ if (cosmiconfigResult && !cosmiconfigResult.isEmpty) {
211488
+ break;
211489
+ }
211490
+ cosmiconfigResult = await getConfigFileByName(additionalFileName, workspacePath);
211491
+ if (cosmiconfigResult && !cosmiconfigResult.isEmpty) {
211492
+ break;
211494
211493
  }
211495
211494
  }
211496
211495
  }