@storm-software/config-tools 1.39.2 → 1.40.0

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/config-tools",
3
- "version": "1.39.2",
3
+ "version": "1.40.0",
4
4
  "private": false,
5
5
  "description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
6
6
  "repository": {
@@ -55,8 +55,11 @@ function findFolderUp(startPath, endFileNames) {
55
55
  // packages/config-tools/src/utilities/find-workspace-root.ts
56
56
  var rootFiles = [
57
57
  "storm.json",
58
- "storm.config.js",
59
- "storm.config.ts",
58
+ "storm.json",
59
+ "storm.yaml",
60
+ "storm.yml",
61
+ "storm.js",
62
+ "storm.ts",
60
63
  ".storm.json",
61
64
  ".storm.yaml",
62
65
  ".storm.yml",
@@ -87,9 +90,13 @@ var rootFiles = [
87
90
  ];
88
91
  function findWorkspaceRootSafe(pathInsideMonorepo) {
89
92
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
90
- return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
93
+ return correctPaths(
94
+ process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
95
+ );
91
96
  }
92
- return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
97
+ return correctPaths(
98
+ findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
99
+ );
93
100
  }
94
101
  function findWorkspaceRoot(pathInsideMonorepo) {
95
102
  const result = findWorkspaceRootSafe(pathInsideMonorepo);
@@ -29,8 +29,11 @@ function findFolderUp(startPath, endFileNames) {
29
29
  // packages/config-tools/src/utilities/find-workspace-root.ts
30
30
  var rootFiles = [
31
31
  "storm.json",
32
- "storm.config.js",
33
- "storm.config.ts",
32
+ "storm.json",
33
+ "storm.yaml",
34
+ "storm.yml",
35
+ "storm.js",
36
+ "storm.ts",
34
37
  ".storm.json",
35
38
  ".storm.yaml",
36
39
  ".storm.yml",
@@ -61,9 +64,13 @@ var rootFiles = [
61
64
  ];
62
65
  function findWorkspaceRootSafe(pathInsideMonorepo) {
63
66
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
64
- return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
67
+ return correctPaths(
68
+ process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
69
+ );
65
70
  }
66
- return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
71
+ return correctPaths(
72
+ findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
73
+ );
67
74
  }
68
75
  function findWorkspaceRoot(pathInsideMonorepo) {
69
76
  const result = findWorkspaceRootSafe(pathInsideMonorepo);