@storm-software/config-tools 1.119.0 → 1.130.2

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.
Files changed (157) hide show
  1. package/README.md +1 -1
  2. package/dist/chunk-4IYEDNYJ.mjs +426 -0
  3. package/dist/chunk-5QZ7AV2J.js +27 -0
  4. package/dist/chunk-64RYHF5D.mjs +51 -0
  5. package/dist/chunk-66ACWURQ.mjs +125 -0
  6. package/dist/chunk-6OYLNZFT.mjs +169 -0
  7. package/dist/chunk-6SJLAEJ3.js +70 -0
  8. package/dist/chunk-6WPG3DXV.js +32 -0
  9. package/dist/chunk-7KVSSDMX.mjs +545 -0
  10. package/dist/chunk-7XY63NME.js +44 -0
  11. package/dist/chunk-A7VLTBS6.mjs +271 -0
  12. package/dist/chunk-BS5OC5E6.js +426 -0
  13. package/dist/chunk-E3IN3SQD.mjs +6 -0
  14. package/dist/chunk-FW22KPOW.mjs +27 -0
  15. package/dist/chunk-GIZ23UUE.js +189 -0
  16. package/dist/chunk-GOQAHXJF.mjs +28 -0
  17. package/dist/chunk-H6XXDZ7A.js +28 -0
  18. package/dist/chunk-HCF3QA4H.js +102 -0
  19. package/dist/chunk-JDK3PXQR.js +545 -0
  20. package/dist/chunk-K6TQN2LZ.js +6 -0
  21. package/dist/chunk-LKZSRXS7.js +169 -0
  22. package/dist/chunk-MGI2M3SX.js +6 -0
  23. package/dist/chunk-N32EGEJB.js +90 -0
  24. package/dist/chunk-N4BRCEYB.js +27 -0
  25. package/dist/chunk-OXK45X3L.js +125 -0
  26. package/dist/chunk-PEHVR33I.js +67 -0
  27. package/dist/chunk-PQNCKJAR.js +271 -0
  28. package/dist/chunk-PVPSTJNJ.mjs +90 -0
  29. package/dist/chunk-QHVHX67K.js +6 -0
  30. package/dist/chunk-QUVGIEZZ.mjs +6 -0
  31. package/dist/chunk-RAWSXKTG.mjs +189 -0
  32. package/dist/chunk-SJO5XZQA.js +6 -0
  33. package/dist/chunk-TEKFJAJJ.mjs +70 -0
  34. package/dist/chunk-TTCXDK6S.mjs +27 -0
  35. package/dist/chunk-UCUOC6LA.mjs +70 -0
  36. package/dist/chunk-VQLOUFMG.mjs +32 -0
  37. package/dist/chunk-WRFJFYOU.mjs +51 -0
  38. package/dist/chunk-WXOSG64C.js +70 -0
  39. package/dist/chunk-WXYJGX4C.mjs +6 -0
  40. package/dist/chunk-X6VIYUJR.mjs +6 -0
  41. package/dist/chunk-XJEQHMOE.js +49 -0
  42. package/dist/chunk-XLMGW4ZW.mjs +67 -0
  43. package/dist/chunk-XXHENMLT.mjs +44 -0
  44. package/dist/chunk-Z2EXWNIQ.mjs +102 -0
  45. package/dist/chunk-ZVXEYJQO.js +51 -0
  46. package/dist/config-file/get-config-file.d.mts +20 -0
  47. package/dist/config-file/get-config-file.d.ts +20 -0
  48. package/dist/config-file/get-config-file.js +23 -0
  49. package/dist/config-file/get-config-file.mjs +23 -0
  50. package/dist/config-file/index.d.mts +4 -0
  51. package/dist/config-file/index.d.ts +4 -0
  52. package/dist/config-file/index.js +24 -0
  53. package/dist/config-file/index.mjs +24 -0
  54. package/dist/create-storm-config.d.mts +29 -0
  55. package/dist/create-storm-config.d.ts +29 -0
  56. package/dist/create-storm-config.js +30 -0
  57. package/dist/create-storm-config.mjs +30 -0
  58. package/dist/env/get-env.d.mts +19 -0
  59. package/dist/env/get-env.d.ts +19 -0
  60. package/dist/env/get-env.js +13 -0
  61. package/dist/env/get-env.mjs +13 -0
  62. package/dist/env/index.d.mts +5 -0
  63. package/dist/env/index.d.ts +5 -0
  64. package/dist/env/index.js +20 -0
  65. package/dist/env/index.mjs +20 -0
  66. package/{src/env/get-env.d.ts → dist/env/set-env.d.mts} +7 -4
  67. package/{src → dist}/env/set-env.d.ts +7 -3
  68. package/dist/env/set-env.js +12 -0
  69. package/dist/env/set-env.mjs +12 -0
  70. package/dist/index.d.mts +19 -0
  71. package/dist/index.d.ts +19 -0
  72. package/dist/index.js +132 -0
  73. package/dist/index.mjs +132 -0
  74. package/dist/logger/chalk.d.mts +25 -0
  75. package/{src/utilities → dist/logger}/chalk.d.ts +4 -2
  76. package/dist/logger/chalk.js +7 -0
  77. package/dist/logger/chalk.mjs +7 -0
  78. package/dist/logger/console.d.mts +82 -0
  79. package/{src/utilities/logger.d.ts → dist/logger/console.d.ts} +18 -14
  80. package/dist/logger/console.js +35 -0
  81. package/dist/logger/console.mjs +35 -0
  82. package/dist/logger/get-log-level.d.mts +27 -0
  83. package/{src/utilities → dist/logger}/get-log-level.d.ts +9 -4
  84. package/dist/logger/get-log-level.js +12 -0
  85. package/dist/logger/get-log-level.mjs +12 -0
  86. package/dist/logger/index.d.mts +6 -0
  87. package/dist/logger/index.d.ts +6 -0
  88. package/dist/logger/index.js +46 -0
  89. package/dist/logger/index.mjs +46 -0
  90. package/dist/types-DGWqy1xb.d.mts +1395 -0
  91. package/dist/types-DGWqy1xb.d.ts +1395 -0
  92. package/dist/types.d.mts +40 -0
  93. package/{src → dist}/types.d.ts +14 -7
  94. package/dist/types.js +9 -0
  95. package/dist/types.mjs +9 -0
  96. package/dist/utilities/apply-workspace-tokens.d.mts +9 -0
  97. package/dist/utilities/apply-workspace-tokens.d.ts +9 -0
  98. package/dist/utilities/apply-workspace-tokens.js +14 -0
  99. package/dist/utilities/apply-workspace-tokens.mjs +14 -0
  100. package/dist/utilities/correct-paths.d.mts +19 -0
  101. package/dist/utilities/correct-paths.d.ts +19 -0
  102. package/dist/utilities/correct-paths.js +9 -0
  103. package/dist/utilities/correct-paths.mjs +9 -0
  104. package/dist/utilities/file-path-utils.d.mts +4 -0
  105. package/dist/utilities/file-path-utils.d.ts +4 -0
  106. package/dist/utilities/file-path-utils.js +9 -0
  107. package/dist/utilities/file-path-utils.mjs +9 -0
  108. package/dist/utilities/find-up.d.mts +6 -0
  109. package/dist/utilities/find-up.d.ts +6 -0
  110. package/dist/utilities/find-up.js +7 -0
  111. package/dist/utilities/find-up.mjs +7 -0
  112. package/dist/utilities/find-workspace-root.d.mts +16 -0
  113. package/{src → dist}/utilities/find-workspace-root.d.ts +4 -2
  114. package/dist/utilities/find-workspace-root.js +11 -0
  115. package/dist/utilities/find-workspace-root.mjs +11 -0
  116. package/dist/utilities/get-default-config.d.mts +15 -0
  117. package/dist/utilities/get-default-config.d.ts +15 -0
  118. package/dist/utilities/get-default-config.js +13 -0
  119. package/dist/utilities/get-default-config.mjs +13 -0
  120. package/dist/utilities/index.d.mts +11 -0
  121. package/dist/utilities/index.d.ts +11 -0
  122. package/dist/utilities/index.js +58 -0
  123. package/dist/utilities/index.mjs +58 -0
  124. package/dist/utilities/process-handler.d.mts +8 -0
  125. package/dist/utilities/process-handler.d.ts +8 -0
  126. package/dist/utilities/process-handler.js +20 -0
  127. package/dist/utilities/process-handler.mjs +20 -0
  128. package/dist/utilities/run.d.mts +36 -0
  129. package/dist/utilities/run.d.ts +36 -0
  130. package/dist/utilities/run.js +11 -0
  131. package/dist/utilities/run.mjs +11 -0
  132. package/package.json +1 -24
  133. package/CHANGELOG.md +0 -3122
  134. package/declarations.d.ts +0 -304
  135. package/index.cjs +0 -67508
  136. package/index.js +0 -67463
  137. package/meta.cjs.json +0 -5352
  138. package/meta.esm.json +0 -5413
  139. package/src/config-file/get-config-file.d.ts +0 -16
  140. package/src/config-file/index.d.ts +0 -1
  141. package/src/create-storm-config.d.ts +0 -26
  142. package/src/env/index.d.ts +0 -2
  143. package/src/index.d.ts +0 -13
  144. package/src/utilities/apply-workspace-tokens.d.ts +0 -4
  145. package/src/utilities/correct-paths.d.ts +0 -1
  146. package/src/utilities/file-path-utils.d.ts +0 -2
  147. package/src/utilities/find-up.d.ts +0 -4
  148. package/src/utilities/get-default-config.d.ts +0 -15
  149. package/src/utilities/index.d.ts +0 -10
  150. package/src/utilities/process-handler.d.ts +0 -4
  151. package/src/utilities/run.d.ts +0 -18
  152. package/utilities/chalk.cjs +0 -1610
  153. package/utilities/chalk.js +0 -1605
  154. package/utilities/find-workspace-root.cjs +0 -118
  155. package/utilities/find-workspace-root.js +0 -91
  156. package/utilities/logger.cjs +0 -5914
  157. package/utilities/logger.js +0 -5897
@@ -1,118 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // packages/config-tools/src/utilities/find-workspace-root.ts
20
- var find_workspace_root_exports = {};
21
- __export(find_workspace_root_exports, {
22
- findWorkspaceRoot: () => findWorkspaceRoot,
23
- findWorkspaceRootSafe: () => findWorkspaceRootSafe
24
- });
25
- module.exports = __toCommonJS(find_workspace_root_exports);
26
-
27
- // packages/config-tools/src/utilities/correct-paths.ts
28
- var correctPaths = (path) => {
29
- if (!path) {
30
- return "";
31
- }
32
- if (!path.toUpperCase().startsWith("C:") && path.includes("\\")) {
33
- path = `C:${path}`;
34
- }
35
- return path.replaceAll("\\", "/");
36
- };
37
-
38
- // packages/config-tools/src/utilities/find-up.ts
39
- var import_node_fs = require("node:fs");
40
- var import_node_path = require("node:path");
41
- var MAX_PATH_SEARCH_DEPTH = 30;
42
- var depth = 0;
43
- function findFolderUp(startPath, endFileNames) {
44
- const _startPath = startPath ?? process.cwd();
45
- if (endFileNames.some((endFileName) => (0, import_node_fs.existsSync)((0, import_node_path.join)(_startPath, endFileName)))) {
46
- return _startPath;
47
- }
48
- if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
49
- const parent = (0, import_node_path.join)(_startPath, "..");
50
- return findFolderUp(parent, endFileNames);
51
- }
52
- return void 0;
53
- }
54
-
55
- // packages/config-tools/src/utilities/find-workspace-root.ts
56
- var rootFiles = [
57
- "storm.json",
58
- "storm.json",
59
- "storm.yaml",
60
- "storm.yml",
61
- "storm.js",
62
- "storm.ts",
63
- ".storm.json",
64
- ".storm.yaml",
65
- ".storm.yml",
66
- ".storm.js",
67
- ".storm.ts",
68
- "lerna.json",
69
- "nx.json",
70
- "turbo.json",
71
- "npm-workspace.json",
72
- "yarn-workspace.json",
73
- "pnpm-workspace.json",
74
- "npm-workspace.yaml",
75
- "yarn-workspace.yaml",
76
- "pnpm-workspace.yaml",
77
- "npm-workspace.yml",
78
- "yarn-workspace.yml",
79
- "pnpm-workspace.yml",
80
- "npm-lock.json",
81
- "yarn-lock.json",
82
- "pnpm-lock.json",
83
- "npm-lock.yaml",
84
- "yarn-lock.yaml",
85
- "pnpm-lock.yaml",
86
- "npm-lock.yml",
87
- "yarn-lock.yml",
88
- "pnpm-lock.yml",
89
- "bun.lockb"
90
- ];
91
- function findWorkspaceRootSafe(pathInsideMonorepo) {
92
- if (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
- );
96
- }
97
- return correctPaths(
98
- findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
99
- );
100
- }
101
- function findWorkspaceRoot(pathInsideMonorepo) {
102
- const result = findWorkspaceRootSafe(pathInsideMonorepo);
103
- if (!result) {
104
- throw new Error(
105
- `Cannot find workspace root upwards from known path. Files search list includes:
106
- ${rootFiles.join(
107
- "\n"
108
- )}
109
- Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
110
- );
111
- }
112
- return result;
113
- }
114
- // Annotate the CommonJS export names for ESM import in node:
115
- 0 && (module.exports = {
116
- findWorkspaceRoot,
117
- findWorkspaceRootSafe
118
- });
@@ -1,91 +0,0 @@
1
- // packages/config-tools/src/utilities/correct-paths.ts
2
- var correctPaths = (path) => {
3
- if (!path) {
4
- return "";
5
- }
6
- if (!path.toUpperCase().startsWith("C:") && path.includes("\\")) {
7
- path = `C:${path}`;
8
- }
9
- return path.replaceAll("\\", "/");
10
- };
11
-
12
- // packages/config-tools/src/utilities/find-up.ts
13
- import { existsSync } from "node:fs";
14
- import { join } from "node:path";
15
- var MAX_PATH_SEARCH_DEPTH = 30;
16
- var depth = 0;
17
- function findFolderUp(startPath, endFileNames) {
18
- const _startPath = startPath ?? process.cwd();
19
- if (endFileNames.some((endFileName) => existsSync(join(_startPath, endFileName)))) {
20
- return _startPath;
21
- }
22
- if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
23
- const parent = join(_startPath, "..");
24
- return findFolderUp(parent, endFileNames);
25
- }
26
- return void 0;
27
- }
28
-
29
- // packages/config-tools/src/utilities/find-workspace-root.ts
30
- var rootFiles = [
31
- "storm.json",
32
- "storm.json",
33
- "storm.yaml",
34
- "storm.yml",
35
- "storm.js",
36
- "storm.ts",
37
- ".storm.json",
38
- ".storm.yaml",
39
- ".storm.yml",
40
- ".storm.js",
41
- ".storm.ts",
42
- "lerna.json",
43
- "nx.json",
44
- "turbo.json",
45
- "npm-workspace.json",
46
- "yarn-workspace.json",
47
- "pnpm-workspace.json",
48
- "npm-workspace.yaml",
49
- "yarn-workspace.yaml",
50
- "pnpm-workspace.yaml",
51
- "npm-workspace.yml",
52
- "yarn-workspace.yml",
53
- "pnpm-workspace.yml",
54
- "npm-lock.json",
55
- "yarn-lock.json",
56
- "pnpm-lock.json",
57
- "npm-lock.yaml",
58
- "yarn-lock.yaml",
59
- "pnpm-lock.yaml",
60
- "npm-lock.yml",
61
- "yarn-lock.yml",
62
- "pnpm-lock.yml",
63
- "bun.lockb"
64
- ];
65
- function findWorkspaceRootSafe(pathInsideMonorepo) {
66
- if (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
- );
70
- }
71
- return correctPaths(
72
- findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles)
73
- );
74
- }
75
- function findWorkspaceRoot(pathInsideMonorepo) {
76
- const result = findWorkspaceRootSafe(pathInsideMonorepo);
77
- if (!result) {
78
- throw new Error(
79
- `Cannot find workspace root upwards from known path. Files search list includes:
80
- ${rootFiles.join(
81
- "\n"
82
- )}
83
- Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
84
- );
85
- }
86
- return result;
87
- }
88
- export {
89
- findWorkspaceRoot,
90
- findWorkspaceRootSafe
91
- };