@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/CHANGELOG.md +24 -0
- package/README.md +10 -6
- package/index.cjs +9640 -9147
- package/index.js +9644 -9151
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +1 -1
- package/utilities/find-workspace-root.cjs +11 -4
- package/utilities/find-workspace-root.js +11 -4
- package/utilities/logger.cjs +3918 -41
- package/utilities/logger.js +3918 -41
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.
|
|
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.
|
|
59
|
-
"storm.
|
|
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(
|
|
93
|
+
return correctPaths(
|
|
94
|
+
process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
|
|
95
|
+
);
|
|
91
96
|
}
|
|
92
|
-
return correctPaths(
|
|
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.
|
|
33
|
-
"storm.
|
|
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(
|
|
67
|
+
return correctPaths(
|
|
68
|
+
process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH
|
|
69
|
+
);
|
|
65
70
|
}
|
|
66
|
-
return correctPaths(
|
|
71
|
+
return correctPaths(
|
|
72
|
+
findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
|
|
73
|
+
);
|
|
67
74
|
}
|
|
68
75
|
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
69
76
|
const result = findWorkspaceRootSafe(pathInsideMonorepo);
|