@storm-software/config-tools 1.119.0 → 1.130.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.
Files changed (144) hide show
  1. package/README.md +1 -1
  2. package/dist/chunk-4IYEDNYJ.mjs +426 -0
  3. package/dist/chunk-5P4S7DMV.js +51 -0
  4. package/dist/chunk-5QZ7AV2J.js +27 -0
  5. package/dist/chunk-6OYLNZFT.mjs +169 -0
  6. package/dist/chunk-6SJLAEJ3.js +70 -0
  7. package/dist/chunk-6WPG3DXV.js +32 -0
  8. package/dist/chunk-7XY63NME.js +44 -0
  9. package/dist/chunk-A7VLTBS6.mjs +271 -0
  10. package/dist/chunk-BNNLKDKI.mjs +102 -0
  11. package/dist/chunk-BO45V6E2.mjs +51 -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-K6TQN2LZ.js +6 -0
  19. package/dist/chunk-LCD7F65X.js +545 -0
  20. package/dist/chunk-LKZSRXS7.js +169 -0
  21. package/dist/chunk-MGI2M3SX.js +6 -0
  22. package/dist/chunk-N32EGEJB.js +90 -0
  23. package/dist/chunk-N4BRCEYB.js +27 -0
  24. package/dist/chunk-PEHVR33I.js +67 -0
  25. package/dist/chunk-PQNCKJAR.js +271 -0
  26. package/dist/chunk-PVPSTJNJ.mjs +90 -0
  27. package/dist/chunk-QHVHX67K.js +6 -0
  28. package/dist/chunk-QUVGIEZZ.mjs +6 -0
  29. package/dist/chunk-RAWSXKTG.mjs +189 -0
  30. package/dist/chunk-RHGJNRVE.mjs +125 -0
  31. package/dist/chunk-RYIDKM6L.mjs +545 -0
  32. package/dist/chunk-SJO5XZQA.js +6 -0
  33. package/dist/chunk-T2X5W62C.js +125 -0
  34. package/dist/chunk-TEKFJAJJ.mjs +70 -0
  35. package/dist/chunk-TTCXDK6S.mjs +27 -0
  36. package/dist/chunk-UCUOC6LA.mjs +70 -0
  37. package/dist/chunk-VFRDDJD4.js +102 -0
  38. package/dist/chunk-VQLOUFMG.mjs +32 -0
  39. package/dist/chunk-WRFJFYOU.mjs +51 -0
  40. package/dist/chunk-WXOSG64C.js +70 -0
  41. package/dist/chunk-WXYJGX4C.mjs +6 -0
  42. package/dist/chunk-X6VIYUJR.mjs +6 -0
  43. package/dist/chunk-XJEQHMOE.js +49 -0
  44. package/dist/chunk-XLMGW4ZW.mjs +67 -0
  45. package/dist/chunk-XXHENMLT.mjs +44 -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/types-DGWqy1xb.d.mts +1395 -0
  75. package/dist/types-DGWqy1xb.d.ts +1395 -0
  76. package/dist/types.d.mts +40 -0
  77. package/{src → dist}/types.d.ts +14 -7
  78. package/dist/types.js +9 -0
  79. package/dist/types.mjs +9 -0
  80. package/dist/utilities/apply-workspace-tokens.d.mts +9 -0
  81. package/dist/utilities/apply-workspace-tokens.d.ts +9 -0
  82. package/dist/utilities/apply-workspace-tokens.js +14 -0
  83. package/dist/utilities/apply-workspace-tokens.mjs +14 -0
  84. package/dist/utilities/correct-paths.d.mts +19 -0
  85. package/dist/utilities/correct-paths.d.ts +19 -0
  86. package/dist/utilities/correct-paths.js +9 -0
  87. package/dist/utilities/correct-paths.mjs +9 -0
  88. package/dist/utilities/file-path-utils.d.mts +4 -0
  89. package/dist/utilities/file-path-utils.d.ts +4 -0
  90. package/dist/utilities/file-path-utils.js +9 -0
  91. package/dist/utilities/file-path-utils.mjs +9 -0
  92. package/dist/utilities/find-up.d.mts +6 -0
  93. package/dist/utilities/find-up.d.ts +6 -0
  94. package/dist/utilities/find-up.js +7 -0
  95. package/dist/utilities/find-up.mjs +7 -0
  96. package/dist/utilities/find-workspace-root.d.mts +16 -0
  97. package/{src → dist}/utilities/find-workspace-root.d.ts +4 -2
  98. package/dist/utilities/find-workspace-root.js +11 -0
  99. package/dist/utilities/find-workspace-root.mjs +11 -0
  100. package/dist/utilities/get-default-config.d.mts +15 -0
  101. package/dist/utilities/get-default-config.d.ts +15 -0
  102. package/dist/utilities/get-default-config.js +13 -0
  103. package/dist/utilities/get-default-config.mjs +13 -0
  104. package/dist/utilities/index.d.mts +11 -0
  105. package/dist/utilities/index.d.ts +11 -0
  106. package/dist/utilities/index.js +58 -0
  107. package/dist/utilities/index.mjs +58 -0
  108. package/dist/utilities/process-handler.d.mts +8 -0
  109. package/dist/utilities/process-handler.d.ts +8 -0
  110. package/dist/utilities/process-handler.js +20 -0
  111. package/dist/utilities/process-handler.mjs +20 -0
  112. package/dist/utilities/run.d.mts +36 -0
  113. package/dist/utilities/run.d.ts +36 -0
  114. package/dist/utilities/run.js +11 -0
  115. package/dist/utilities/run.mjs +11 -0
  116. package/package.json +1 -24
  117. package/CHANGELOG.md +0 -3122
  118. package/declarations.d.ts +0 -304
  119. package/index.cjs +0 -67508
  120. package/index.js +0 -67463
  121. package/meta.cjs.json +0 -5352
  122. package/meta.esm.json +0 -5413
  123. package/src/config-file/get-config-file.d.ts +0 -16
  124. package/src/config-file/index.d.ts +0 -1
  125. package/src/create-storm-config.d.ts +0 -26
  126. package/src/env/index.d.ts +0 -2
  127. package/src/index.d.ts +0 -13
  128. package/src/utilities/apply-workspace-tokens.d.ts +0 -4
  129. package/src/utilities/chalk.d.ts +0 -23
  130. package/src/utilities/correct-paths.d.ts +0 -1
  131. package/src/utilities/file-path-utils.d.ts +0 -2
  132. package/src/utilities/find-up.d.ts +0 -4
  133. package/src/utilities/get-default-config.d.ts +0 -15
  134. package/src/utilities/get-log-level.d.ts +0 -22
  135. package/src/utilities/index.d.ts +0 -10
  136. package/src/utilities/logger.d.ts +0 -78
  137. package/src/utilities/process-handler.d.ts +0 -4
  138. package/src/utilities/run.d.ts +0 -18
  139. package/utilities/chalk.cjs +0 -1610
  140. package/utilities/chalk.js +0 -1605
  141. package/utilities/find-workspace-root.cjs +0 -118
  142. package/utilities/find-workspace-root.js +0 -91
  143. package/utilities/logger.cjs +0 -5914
  144. 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
- };