@storm-software/config-tools 1.190.150 → 1.190.152
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/bin/config.cjs +20 -40
- package/bin/config.mjs +19 -38
- package/dist/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/config-file/get-config-file.cjs +1 -2
- package/dist/config-file/get-config-file.d.cts +0 -2
- package/dist/config-file/get-config-file.d.mts +0 -2
- package/dist/config-file/get-config-file.mjs +1 -2
- package/dist/create-storm-config.cjs +1 -2
- package/dist/create-storm-config.d.cts +0 -2
- package/dist/create-storm-config.d.mts +0 -2
- package/dist/create-storm-config.mjs +1 -2
- package/dist/env/get-env.cjs +1 -2
- package/dist/env/get-env.d.cts +0 -2
- package/dist/env/get-env.d.mts +0 -2
- package/dist/env/get-env.mjs +1 -2
- package/dist/env/set-env.cjs +1 -2
- package/dist/env/set-env.d.cts +0 -2
- package/dist/env/set-env.d.mts +0 -2
- package/dist/env/set-env.mjs +1 -2
- package/dist/get-config.cjs +1 -2
- package/dist/get-config.d.cts +0 -2
- package/dist/get-config.d.mts +0 -2
- package/dist/get-config.mjs +1 -2
- package/dist/logger/chalk.cjs +1 -2
- package/dist/logger/chalk.d.cts +0 -2
- package/dist/logger/chalk.d.mts +0 -2
- package/dist/logger/chalk.mjs +1 -2
- package/dist/logger/console-icons.cjs +1 -2
- package/dist/logger/console-icons.d.cts +0 -2
- package/dist/logger/console-icons.d.mts +0 -2
- package/dist/logger/console-icons.mjs +1 -2
- package/dist/logger/console.cjs +1 -2
- package/dist/logger/console.d.cts +0 -2
- package/dist/logger/console.d.mts +0 -2
- package/dist/logger/console.mjs +1 -2
- package/dist/logger/create-logger.cjs +1 -2
- package/dist/logger/create-logger.d.cts +0 -2
- package/dist/logger/create-logger.d.mts +0 -2
- package/dist/logger/create-logger.mjs +1 -2
- package/dist/logger/format-timestamp.cjs +1 -2
- package/dist/logger/format-timestamp.d.cts +0 -2
- package/dist/logger/format-timestamp.d.mts +0 -2
- package/dist/logger/format-timestamp.mjs +1 -2
- package/dist/logger/get-log-level.cjs +1 -2
- package/dist/logger/get-log-level.d.cts +0 -2
- package/dist/logger/get-log-level.d.mts +0 -2
- package/dist/logger/get-log-level.mjs +1 -2
- package/dist/logger/is-unicode-supported.cjs +1 -2
- package/dist/logger/is-unicode-supported.d.cts +0 -2
- package/dist/logger/is-unicode-supported.d.mts +0 -2
- package/dist/logger/is-unicode-supported.mjs +1 -2
- package/dist/types.cjs +1 -2
- package/dist/types.d.cts +0 -2
- package/dist/types.d.mts +0 -2
- package/dist/types.mjs +1 -2
- package/dist/utilities/apply-workspace-tokens.cjs +1 -2
- package/dist/utilities/apply-workspace-tokens.d.cts +0 -2
- package/dist/utilities/apply-workspace-tokens.d.mts +0 -2
- package/dist/utilities/apply-workspace-tokens.mjs +1 -2
- package/dist/utilities/colors.cjs +1 -2
- package/dist/utilities/colors.d.cts +0 -2
- package/dist/utilities/colors.d.mts +0 -2
- package/dist/utilities/colors.mjs +1 -2
- package/dist/utilities/correct-paths.cjs +1 -2
- package/dist/utilities/correct-paths.d.cts +0 -2
- package/dist/utilities/correct-paths.d.mts +0 -2
- package/dist/utilities/correct-paths.mjs +1 -2
- package/dist/utilities/file-path-utils.cjs +1 -2
- package/dist/utilities/file-path-utils.d.cts +0 -2
- package/dist/utilities/file-path-utils.d.mts +0 -2
- package/dist/utilities/file-path-utils.mjs +1 -2
- package/dist/utilities/find-up.cjs +1 -2
- package/dist/utilities/find-up.d.cts +0 -2
- package/dist/utilities/find-up.d.mts +0 -2
- package/dist/utilities/find-up.mjs +1 -2
- package/dist/utilities/find-workspace-root.cjs +1 -2
- package/dist/utilities/find-workspace-root.d.cts +0 -2
- package/dist/utilities/find-workspace-root.d.mts +0 -2
- package/dist/utilities/find-workspace-root.mjs +1 -2
- package/dist/utilities/format-error-message.cjs +1 -2
- package/dist/utilities/format-error-message.d.cts +0 -2
- package/dist/utilities/format-error-message.d.mts +0 -2
- package/dist/utilities/format-error-message.mjs +1 -2
- package/dist/utilities/get-default-config.cjs +1 -2
- package/dist/utilities/get-default-config.d.cts +0 -2
- package/dist/utilities/get-default-config.d.mts +0 -2
- package/dist/utilities/get-default-config.mjs +1 -2
- package/dist/utilities/process-handler.cjs +1 -2
- package/dist/utilities/process-handler.d.cts +0 -2
- package/dist/utilities/process-handler.d.mts +0 -2
- package/dist/utilities/process-handler.mjs +1 -2
- package/dist/utilities/run.cjs +1 -2
- package/dist/utilities/run.d.cts +0 -2
- package/dist/utilities/run.d.mts +0 -2
- package/dist/utilities/run.mjs +1 -2
- package/dist/utilities/toml.cjs +1 -2
- package/dist/utilities/toml.d.cts +0 -2
- package/dist/utilities/toml.d.mts +0 -2
- package/dist/utilities/toml.mjs +1 -2
- package/package.json +4 -4
package/bin/config.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
3
|
+
// \0rolldown/runtime.js
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -21,7 +21,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
value: mod,
|
|
22
22
|
enumerable: true
|
|
23
23
|
}) : target, mod));
|
|
24
|
-
//#endregion
|
|
25
24
|
let chalk = require("chalk");
|
|
26
25
|
chalk = __toESM(chalk, 1);
|
|
27
26
|
let commander = require("commander");
|
|
@@ -34,7 +33,7 @@ require("date-fns/formatDistanceToNow");
|
|
|
34
33
|
let node_path = require("node:path");
|
|
35
34
|
let _storm_software_config = require("@storm-software/config");
|
|
36
35
|
let node_fs_promises = require("node:fs/promises");
|
|
37
|
-
|
|
36
|
+
// src/types.ts
|
|
38
37
|
const LogLevel = {
|
|
39
38
|
SILENT: 0,
|
|
40
39
|
FATAL: 10,
|
|
@@ -59,8 +58,7 @@ const LogLevelLabel = {
|
|
|
59
58
|
TRACE: "trace",
|
|
60
59
|
ALL: "all"
|
|
61
60
|
};
|
|
62
|
-
|
|
63
|
-
//#region src/utilities/colors.ts
|
|
61
|
+
// src/utilities/colors.ts
|
|
64
62
|
/**
|
|
65
63
|
* Storm theme config values used for styling various workspace elements
|
|
66
64
|
*/
|
|
@@ -140,8 +138,7 @@ function getColor(key, config) {
|
|
|
140
138
|
else if (key === "fatal") return getColor("danger", config);
|
|
141
139
|
return getColor("brand", config);
|
|
142
140
|
}
|
|
143
|
-
|
|
144
|
-
//#region src/logger/chalk.ts
|
|
141
|
+
// src/logger/chalk.ts
|
|
145
142
|
const chalkDefault = {
|
|
146
143
|
hex: (_) => (message) => message,
|
|
147
144
|
bgHex: (_) => ({
|
|
@@ -178,14 +175,12 @@ const getChalk = () => {
|
|
|
178
175
|
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) _chalk = chalkDefault;
|
|
179
176
|
return _chalk;
|
|
180
177
|
};
|
|
181
|
-
|
|
182
|
-
//#region src/logger/is-unicode-supported.ts
|
|
178
|
+
// src/logger/is-unicode-supported.ts
|
|
183
179
|
function isUnicodeSupported() {
|
|
184
180
|
if (process.platform !== "win32") return process.env.TERM !== "linux";
|
|
185
181
|
return Boolean(process.env.WT_SESSION) || Boolean(process.env.TERMINUS_SUBLIME) || process.env.ConEmuTask === "{cmd::Cmder}" || process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
186
182
|
}
|
|
187
|
-
|
|
188
|
-
//#region src/logger/console-icons.ts
|
|
183
|
+
// src/logger/console-icons.ts
|
|
189
184
|
const useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
190
185
|
const CONSOLE_ICONS = {
|
|
191
186
|
[LogLevelLabel.ERROR]: useIcon("✘", "×"),
|
|
@@ -198,8 +193,7 @@ const CONSOLE_ICONS = {
|
|
|
198
193
|
[LogLevelLabel.TRACE]: useIcon("⚙", "T"),
|
|
199
194
|
[LogLevelLabel.ALL]: useIcon("✉", "→")
|
|
200
195
|
};
|
|
201
|
-
|
|
202
|
-
//#region src/logger/format-timestamp.ts
|
|
196
|
+
// src/logger/format-timestamp.ts
|
|
203
197
|
/**
|
|
204
198
|
* Format a timestamp to a human-readable string.
|
|
205
199
|
*
|
|
@@ -210,8 +204,7 @@ const CONSOLE_ICONS = {
|
|
|
210
204
|
const formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
211
205
|
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
212
206
|
};
|
|
213
|
-
|
|
214
|
-
//#region src/logger/get-log-level.ts
|
|
207
|
+
// src/logger/get-log-level.ts
|
|
215
208
|
/**
|
|
216
209
|
* Convert the log level label to a log level
|
|
217
210
|
*
|
|
@@ -250,8 +243,7 @@ const getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
250
243
|
if (logLevel <= LogLevel.SILENT) return LogLevelLabel.SILENT;
|
|
251
244
|
return LogLevelLabel.INFO;
|
|
252
245
|
};
|
|
253
|
-
|
|
254
|
-
//#region src/logger/console.ts
|
|
246
|
+
// src/logger/console.ts
|
|
255
247
|
/**
|
|
256
248
|
* Get the log function for a log level
|
|
257
249
|
*
|
|
@@ -391,8 +383,7 @@ const _isFunction = (value) => {
|
|
|
391
383
|
* @returns The brand icon
|
|
392
384
|
*/
|
|
393
385
|
const brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("🗲");
|
|
394
|
-
|
|
395
|
-
//#region src/utilities/correct-paths.ts
|
|
386
|
+
// src/utilities/correct-paths.ts
|
|
396
387
|
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
397
388
|
function normalizeWindowsPath(input = "") {
|
|
398
389
|
if (!input) return input;
|
|
@@ -492,8 +483,7 @@ function normalizeString(path, allowAboveRoot) {
|
|
|
492
483
|
const isAbsolute = function(p) {
|
|
493
484
|
return _IS_ABSOLUTE_RE.test(p);
|
|
494
485
|
};
|
|
495
|
-
|
|
496
|
-
//#region src/utilities/find-up.ts
|
|
486
|
+
// src/utilities/find-up.ts
|
|
497
487
|
const MAX_PATH_SEARCH_DEPTH = 30;
|
|
498
488
|
let depth = 0;
|
|
499
489
|
/**
|
|
@@ -505,8 +495,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
505
495
|
if (endFileNames.some((endFileName) => (0, node_fs.existsSync)((0, node_path.join)(_startPath, endFileName)))) return _startPath;
|
|
506
496
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) return findFolderUp((0, node_path.join)(_startPath, ".."), endFileNames, endDirectoryNames);
|
|
507
497
|
}
|
|
508
|
-
|
|
509
|
-
//#region src/utilities/find-workspace-root.ts
|
|
498
|
+
// src/utilities/find-workspace-root.ts
|
|
510
499
|
const rootFiles = [
|
|
511
500
|
"storm-workspace.json",
|
|
512
501
|
"storm-workspace.yaml",
|
|
@@ -572,8 +561,7 @@ function findWorkspaceRoot(pathInsideMonorepo) {
|
|
|
572
561
|
if (!result) throw new Error(`Cannot find workspace root upwards from known path. Files search list includes: \n${rootFiles.join("\n")}\nPath: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
|
|
573
562
|
return result;
|
|
574
563
|
}
|
|
575
|
-
|
|
576
|
-
//#region src/utilities/get-default-config.ts
|
|
564
|
+
// src/utilities/get-default-config.ts
|
|
577
565
|
/**
|
|
578
566
|
* Get the default Storm config values used during various dev-ops processes
|
|
579
567
|
*
|
|
@@ -636,8 +624,7 @@ function applyDefaultConfig(config) {
|
|
|
636
624
|
}
|
|
637
625
|
return config;
|
|
638
626
|
}
|
|
639
|
-
|
|
640
|
-
//#region src/utilities/process-handler.ts
|
|
627
|
+
// src/utilities/process-handler.ts
|
|
641
628
|
const exitWithError = (config) => {
|
|
642
629
|
writeFatal("Exiting script with an error status...", config);
|
|
643
630
|
process.exit(1);
|
|
@@ -669,8 +656,7 @@ const handleProcess = (config) => {
|
|
|
669
656
|
exitWithError(config);
|
|
670
657
|
});
|
|
671
658
|
};
|
|
672
|
-
|
|
673
|
-
//#region src/config-file/get-config-file.ts
|
|
659
|
+
// src/config-file/get-config-file.ts
|
|
674
660
|
/**
|
|
675
661
|
* Get the config file for the current Storm workspace
|
|
676
662
|
*
|
|
@@ -726,8 +712,7 @@ const getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
726
712
|
config.configFile = configFile;
|
|
727
713
|
return config;
|
|
728
714
|
};
|
|
729
|
-
|
|
730
|
-
//#region src/env/get-env.ts
|
|
715
|
+
// src/env/get-env.ts
|
|
731
716
|
/**
|
|
732
717
|
* Get the config for an extension module of Storm workspace from environment variables
|
|
733
718
|
*
|
|
@@ -922,8 +907,7 @@ const getBaseThemeColorsEnv = (prefix) => {
|
|
|
922
907
|
gradient
|
|
923
908
|
};
|
|
924
909
|
};
|
|
925
|
-
|
|
926
|
-
//#region src/env/set-env.ts
|
|
910
|
+
// src/env/set-env.ts
|
|
927
911
|
/**
|
|
928
912
|
* Get the config for an extension module of Storm workspace from environment variables
|
|
929
913
|
*
|
|
@@ -1146,8 +1130,7 @@ const setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1146
1130
|
if (config.negative) process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
1147
1131
|
if (config.gradient) for (let i = 0; i < config.gradient.length; i++) process.env[`${prefix}GRADIENT_${i}`] = config.gradient[i];
|
|
1148
1132
|
};
|
|
1149
|
-
|
|
1150
|
-
//#region src/create-storm-config.ts
|
|
1133
|
+
// src/create-storm-config.ts
|
|
1151
1134
|
const _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1152
1135
|
let _static_cache = void 0;
|
|
1153
1136
|
/**
|
|
@@ -1224,8 +1207,7 @@ const loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1224
1207
|
if (!skipLogs && !config.skipConfigLogging) writeTrace(`⚙️ Using Storm Workspace configuration: \n${formatLogMessage(config)}`, config);
|
|
1225
1208
|
return config;
|
|
1226
1209
|
};
|
|
1227
|
-
|
|
1228
|
-
//#region src/get-config.ts
|
|
1210
|
+
// src/get-config.ts
|
|
1229
1211
|
/**
|
|
1230
1212
|
* Get the config for the current Storm workspace
|
|
1231
1213
|
*
|
|
@@ -1236,8 +1218,7 @@ const loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1236
1218
|
function getConfig(workspaceRoot, skipLogs = false) {
|
|
1237
1219
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1238
1220
|
}
|
|
1239
|
-
|
|
1240
|
-
//#region bin/config.ts
|
|
1221
|
+
// bin/config.ts
|
|
1241
1222
|
function createProgram() {
|
|
1242
1223
|
writeInfo(`${brandIcon()} Running Storm Configuration Tools`, { logLevel: "all" });
|
|
1243
1224
|
const root = findWorkspaceRootSafe(process.cwd());
|
|
@@ -1292,6 +1273,5 @@ ${Object.entries(config.light).filter(([key, value]) => key !== "gradient" && ty
|
|
|
1292
1273
|
${Object.entries(config.dark).filter(([key, value]) => key !== "gradient" && typeof value === "string" && value.length > 0).map(([key, value]) => chalk.default.hex(String(value))(`${key}: ${chalk.default.bold(value)}`)).join(" \n")}
|
|
1293
1274
|
`;
|
|
1294
1275
|
};
|
|
1295
|
-
//#endregion
|
|
1296
1276
|
exports.createProgram = createProgram;
|
|
1297
1277
|
exports.viewAction = viewAction;
|
package/bin/config.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import "date-fns/formatDistanceToNow";
|
|
|
9
9
|
import { join } from "node:path";
|
|
10
10
|
import { COLOR_KEYS, STORM_DEFAULT_DOCS, STORM_DEFAULT_ERROR_CODES_FILE, STORM_DEFAULT_HOMEPAGE, STORM_DEFAULT_LICENSE, STORM_DEFAULT_LICENSING } from "@storm-software/config";
|
|
11
11
|
import { readFile } from "node:fs/promises";
|
|
12
|
-
|
|
12
|
+
// src/types.ts
|
|
13
13
|
const LogLevel = {
|
|
14
14
|
SILENT: 0,
|
|
15
15
|
FATAL: 10,
|
|
@@ -34,8 +34,7 @@ const LogLevelLabel = {
|
|
|
34
34
|
TRACE: "trace",
|
|
35
35
|
ALL: "all"
|
|
36
36
|
};
|
|
37
|
-
|
|
38
|
-
//#region src/utilities/colors.ts
|
|
37
|
+
// src/utilities/colors.ts
|
|
39
38
|
/**
|
|
40
39
|
* Storm theme config values used for styling various workspace elements
|
|
41
40
|
*/
|
|
@@ -115,8 +114,7 @@ function getColor(key, config) {
|
|
|
115
114
|
else if (key === "fatal") return getColor("danger", config);
|
|
116
115
|
return getColor("brand", config);
|
|
117
116
|
}
|
|
118
|
-
|
|
119
|
-
//#region src/logger/chalk.ts
|
|
117
|
+
// src/logger/chalk.ts
|
|
120
118
|
const chalkDefault = {
|
|
121
119
|
hex: (_) => (message) => message,
|
|
122
120
|
bgHex: (_) => ({
|
|
@@ -153,14 +151,12 @@ const getChalk = () => {
|
|
|
153
151
|
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) _chalk = chalkDefault;
|
|
154
152
|
return _chalk;
|
|
155
153
|
};
|
|
156
|
-
|
|
157
|
-
//#region src/logger/is-unicode-supported.ts
|
|
154
|
+
// src/logger/is-unicode-supported.ts
|
|
158
155
|
function isUnicodeSupported() {
|
|
159
156
|
if (process.platform !== "win32") return process.env.TERM !== "linux";
|
|
160
157
|
return Boolean(process.env.WT_SESSION) || Boolean(process.env.TERMINUS_SUBLIME) || process.env.ConEmuTask === "{cmd::Cmder}" || process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
161
158
|
}
|
|
162
|
-
|
|
163
|
-
//#region src/logger/console-icons.ts
|
|
159
|
+
// src/logger/console-icons.ts
|
|
164
160
|
const useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
165
161
|
const CONSOLE_ICONS = {
|
|
166
162
|
[LogLevelLabel.ERROR]: useIcon("✘", "×"),
|
|
@@ -173,8 +169,7 @@ const CONSOLE_ICONS = {
|
|
|
173
169
|
[LogLevelLabel.TRACE]: useIcon("⚙", "T"),
|
|
174
170
|
[LogLevelLabel.ALL]: useIcon("✉", "→")
|
|
175
171
|
};
|
|
176
|
-
|
|
177
|
-
//#region src/logger/format-timestamp.ts
|
|
172
|
+
// src/logger/format-timestamp.ts
|
|
178
173
|
/**
|
|
179
174
|
* Format a timestamp to a human-readable string.
|
|
180
175
|
*
|
|
@@ -185,8 +180,7 @@ const CONSOLE_ICONS = {
|
|
|
185
180
|
const formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
186
181
|
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
187
182
|
};
|
|
188
|
-
|
|
189
|
-
//#region src/logger/get-log-level.ts
|
|
183
|
+
// src/logger/get-log-level.ts
|
|
190
184
|
/**
|
|
191
185
|
* Convert the log level label to a log level
|
|
192
186
|
*
|
|
@@ -225,8 +219,7 @@ const getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
225
219
|
if (logLevel <= LogLevel.SILENT) return LogLevelLabel.SILENT;
|
|
226
220
|
return LogLevelLabel.INFO;
|
|
227
221
|
};
|
|
228
|
-
|
|
229
|
-
//#region src/logger/console.ts
|
|
222
|
+
// src/logger/console.ts
|
|
230
223
|
/**
|
|
231
224
|
* Get the log function for a log level
|
|
232
225
|
*
|
|
@@ -366,8 +359,7 @@ const _isFunction = (value) => {
|
|
|
366
359
|
* @returns The brand icon
|
|
367
360
|
*/
|
|
368
361
|
const brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("🗲");
|
|
369
|
-
|
|
370
|
-
//#region src/utilities/correct-paths.ts
|
|
362
|
+
// src/utilities/correct-paths.ts
|
|
371
363
|
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
372
364
|
function normalizeWindowsPath(input = "") {
|
|
373
365
|
if (!input) return input;
|
|
@@ -467,8 +459,7 @@ function normalizeString(path, allowAboveRoot) {
|
|
|
467
459
|
const isAbsolute = function(p) {
|
|
468
460
|
return _IS_ABSOLUTE_RE.test(p);
|
|
469
461
|
};
|
|
470
|
-
|
|
471
|
-
//#region src/utilities/find-up.ts
|
|
462
|
+
// src/utilities/find-up.ts
|
|
472
463
|
const MAX_PATH_SEARCH_DEPTH = 30;
|
|
473
464
|
let depth = 0;
|
|
474
465
|
/**
|
|
@@ -480,8 +471,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
480
471
|
if (endFileNames.some((endFileName) => existsSync(join(_startPath, endFileName)))) return _startPath;
|
|
481
472
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) return findFolderUp(join(_startPath, ".."), endFileNames, endDirectoryNames);
|
|
482
473
|
}
|
|
483
|
-
|
|
484
|
-
//#region src/utilities/find-workspace-root.ts
|
|
474
|
+
// src/utilities/find-workspace-root.ts
|
|
485
475
|
const rootFiles = [
|
|
486
476
|
"storm-workspace.json",
|
|
487
477
|
"storm-workspace.yaml",
|
|
@@ -547,8 +537,7 @@ function findWorkspaceRoot(pathInsideMonorepo) {
|
|
|
547
537
|
if (!result) throw new Error(`Cannot find workspace root upwards from known path. Files search list includes: \n${rootFiles.join("\n")}\nPath: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
|
|
548
538
|
return result;
|
|
549
539
|
}
|
|
550
|
-
|
|
551
|
-
//#region src/utilities/get-default-config.ts
|
|
540
|
+
// src/utilities/get-default-config.ts
|
|
552
541
|
/**
|
|
553
542
|
* Get the default Storm config values used during various dev-ops processes
|
|
554
543
|
*
|
|
@@ -611,8 +600,7 @@ function applyDefaultConfig(config) {
|
|
|
611
600
|
}
|
|
612
601
|
return config;
|
|
613
602
|
}
|
|
614
|
-
|
|
615
|
-
//#region src/utilities/process-handler.ts
|
|
603
|
+
// src/utilities/process-handler.ts
|
|
616
604
|
const exitWithError = (config) => {
|
|
617
605
|
writeFatal("Exiting script with an error status...", config);
|
|
618
606
|
process.exit(1);
|
|
@@ -644,8 +632,7 @@ const handleProcess = (config) => {
|
|
|
644
632
|
exitWithError(config);
|
|
645
633
|
});
|
|
646
634
|
};
|
|
647
|
-
|
|
648
|
-
//#region src/config-file/get-config-file.ts
|
|
635
|
+
// src/config-file/get-config-file.ts
|
|
649
636
|
/**
|
|
650
637
|
* Get the config file for the current Storm workspace
|
|
651
638
|
*
|
|
@@ -701,8 +688,7 @@ const getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
701
688
|
config.configFile = configFile;
|
|
702
689
|
return config;
|
|
703
690
|
};
|
|
704
|
-
|
|
705
|
-
//#region src/env/get-env.ts
|
|
691
|
+
// src/env/get-env.ts
|
|
706
692
|
/**
|
|
707
693
|
* Get the config for an extension module of Storm workspace from environment variables
|
|
708
694
|
*
|
|
@@ -897,8 +883,7 @@ const getBaseThemeColorsEnv = (prefix) => {
|
|
|
897
883
|
gradient
|
|
898
884
|
};
|
|
899
885
|
};
|
|
900
|
-
|
|
901
|
-
//#region src/env/set-env.ts
|
|
886
|
+
// src/env/set-env.ts
|
|
902
887
|
/**
|
|
903
888
|
* Get the config for an extension module of Storm workspace from environment variables
|
|
904
889
|
*
|
|
@@ -1121,8 +1106,7 @@ const setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1121
1106
|
if (config.negative) process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
1122
1107
|
if (config.gradient) for (let i = 0; i < config.gradient.length; i++) process.env[`${prefix}GRADIENT_${i}`] = config.gradient[i];
|
|
1123
1108
|
};
|
|
1124
|
-
|
|
1125
|
-
//#region src/create-storm-config.ts
|
|
1109
|
+
// src/create-storm-config.ts
|
|
1126
1110
|
const _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
1127
1111
|
let _static_cache = void 0;
|
|
1128
1112
|
/**
|
|
@@ -1199,8 +1183,7 @@ const loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1199
1183
|
if (!skipLogs && !config.skipConfigLogging) writeTrace(`⚙️ Using Storm Workspace configuration: \n${formatLogMessage(config)}`, config);
|
|
1200
1184
|
return config;
|
|
1201
1185
|
};
|
|
1202
|
-
|
|
1203
|
-
//#region src/get-config.ts
|
|
1186
|
+
// src/get-config.ts
|
|
1204
1187
|
/**
|
|
1205
1188
|
* Get the config for the current Storm workspace
|
|
1206
1189
|
*
|
|
@@ -1211,8 +1194,7 @@ const loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1211
1194
|
function getConfig(workspaceRoot, skipLogs = false) {
|
|
1212
1195
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
1213
1196
|
}
|
|
1214
|
-
|
|
1215
|
-
//#region bin/config.ts
|
|
1197
|
+
// bin/config.ts
|
|
1216
1198
|
function createProgram() {
|
|
1217
1199
|
writeInfo(`${brandIcon()} Running Storm Configuration Tools`, { logLevel: "all" });
|
|
1218
1200
|
const root = findWorkspaceRootSafe(process.cwd());
|
|
@@ -1267,5 +1249,4 @@ ${Object.entries(config.light).filter(([key, value]) => key !== "gradient" && ty
|
|
|
1267
1249
|
${Object.entries(config.dark).filter(([key, value]) => key !== "gradient" && typeof value === "string" && value.length > 0).map(([key, value]) => chalk.hex(String(value))(`${key}: ${chalk.bold(value)}`)).join(" \n")}
|
|
1268
1250
|
`;
|
|
1269
1251
|
};
|
|
1270
|
-
//#endregion
|
|
1271
1252
|
export { createProgram, viewAction };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -19,5 +19,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
19
19
|
value: mod,
|
|
20
20
|
enumerable: true
|
|
21
21
|
}) : target, mod));
|
|
22
|
-
//#endregion
|
|
23
22
|
exports.__toESM = __toESM;
|
|
@@ -6,7 +6,7 @@ const require_utilities_find_workspace_root = require("../utilities/find-workspa
|
|
|
6
6
|
let defu = require("defu");
|
|
7
7
|
defu = require_runtime.__toESM(defu, 1);
|
|
8
8
|
let c12 = require("c12");
|
|
9
|
-
|
|
9
|
+
// src/config-file/get-config-file.ts
|
|
10
10
|
/**
|
|
11
11
|
* Get the config file for the current Storm workspace
|
|
12
12
|
*
|
|
@@ -62,6 +62,5 @@ const getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
62
62
|
config.configFile = configFile;
|
|
63
63
|
return config;
|
|
64
64
|
};
|
|
65
|
-
//#endregion
|
|
66
65
|
exports.getConfigFile = getConfigFile;
|
|
67
66
|
exports.getConfigFileByName = getConfigFileByName;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StormWorkspaceConfigInput } from "@storm-software/config";
|
|
2
2
|
import { LoadConfigOptions, ResolvedConfig } from "c12";
|
|
3
|
-
//#region src/config-file/get-config-file.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Get the config file for the current Storm workspace
|
|
6
5
|
*
|
|
@@ -15,5 +14,4 @@ declare const getConfigFileByName: (fileName: string, filePath?: string, options
|
|
|
15
14
|
* @returns The config file for the current Storm workspace
|
|
16
15
|
*/
|
|
17
16
|
declare const getConfigFile: (filePath?: string, additionalFileNames?: string[]) => Promise<Partial<StormWorkspaceConfigInput> | undefined>;
|
|
18
|
-
//#endregion
|
|
19
17
|
export { getConfigFile, getConfigFileByName };
|
|
@@ -2,7 +2,6 @@ import __tsdown_shims_path from 'node:path';
|
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { LoadConfigOptions, ResolvedConfig } from "c12";
|
|
4
4
|
import { StormWorkspaceConfigInput } from "@storm-software/config";
|
|
5
|
-
//#region src/config-file/get-config-file.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Get the config file for the current Storm workspace
|
|
8
7
|
*
|
|
@@ -17,5 +16,4 @@ declare const getConfigFileByName: (fileName: string, filePath?: string, options
|
|
|
17
16
|
* @returns The config file for the current Storm workspace
|
|
18
17
|
*/
|
|
19
18
|
declare const getConfigFile: (filePath?: string, additionalFileNames?: string[]) => Promise<Partial<StormWorkspaceConfigInput> | undefined>;
|
|
20
|
-
//#endregion
|
|
21
19
|
export { getConfigFile, getConfigFileByName };
|
|
@@ -6,7 +6,7 @@ import { joinPaths } from "../utilities/correct-paths.mjs";
|
|
|
6
6
|
import { findWorkspaceRoot } from "../utilities/find-workspace-root.mjs";
|
|
7
7
|
import defu from "defu";
|
|
8
8
|
import { loadConfig } from "c12";
|
|
9
|
-
|
|
9
|
+
// src/config-file/get-config-file.ts
|
|
10
10
|
/**
|
|
11
11
|
* Get the config file for the current Storm workspace
|
|
12
12
|
*
|
|
@@ -62,5 +62,4 @@ const getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
62
62
|
config.configFile = configFile;
|
|
63
63
|
return config;
|
|
64
64
|
};
|
|
65
|
-
//#endregion
|
|
66
65
|
export { getConfigFile, getConfigFileByName };
|
|
@@ -11,7 +11,7 @@ let _storm_software_config_schema = require("@storm-software/config/schema");
|
|
|
11
11
|
let defu = require("defu");
|
|
12
12
|
defu = require_runtime.__toESM(defu, 1);
|
|
13
13
|
let node_fs = require("node:fs");
|
|
14
|
-
|
|
14
|
+
// src/create-storm-config.ts
|
|
15
15
|
const _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
16
16
|
let _static_cache = void 0;
|
|
17
17
|
/**
|
|
@@ -109,7 +109,6 @@ const tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDe
|
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
|
-
//#endregion
|
|
113
112
|
exports.createConfigExtension = createConfigExtension;
|
|
114
113
|
exports.createStormWorkspaceConfig = createStormWorkspaceConfig;
|
|
115
114
|
exports.loadStormWorkspaceConfig = loadStormWorkspaceConfig;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StormWorkspaceConfig } from "@storm-software/config";
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
//#region src/create-storm-config.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Get the config for the current Storm workspace
|
|
6
5
|
*
|
|
@@ -37,5 +36,4 @@ declare const loadStormWorkspaceConfig: (workspaceRoot?: string, skipLogs?: bool
|
|
|
37
36
|
* @returns The config for the current Storm workspace, or undefined if the config file could not be loaded
|
|
38
37
|
*/
|
|
39
38
|
declare const tryLoadStormWorkspaceConfig: (workspaceRoot?: string, skipLogs?: boolean, useDefault?: boolean) => Promise<StormWorkspaceConfig | undefined>;
|
|
40
|
-
//#endregion
|
|
41
39
|
export { createConfigExtension, createStormWorkspaceConfig, loadStormWorkspaceConfig, tryLoadStormWorkspaceConfig };
|
|
@@ -2,7 +2,6 @@ import __tsdown_shims_path from 'node:path';
|
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { StormWorkspaceConfig } from "@storm-software/config";
|
|
4
4
|
import * as z from "zod";
|
|
5
|
-
//#region src/create-storm-config.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Get the config for the current Storm workspace
|
|
8
7
|
*
|
|
@@ -39,5 +38,4 @@ declare const loadStormWorkspaceConfig: (workspaceRoot?: string, skipLogs?: bool
|
|
|
39
38
|
* @returns The config for the current Storm workspace, or undefined if the config file could not be loaded
|
|
40
39
|
*/
|
|
41
40
|
declare const tryLoadStormWorkspaceConfig: (workspaceRoot?: string, skipLogs?: boolean, useDefault?: boolean) => Promise<StormWorkspaceConfig | undefined>;
|
|
42
|
-
//#endregion
|
|
43
41
|
export { createConfigExtension, createStormWorkspaceConfig, loadStormWorkspaceConfig, tryLoadStormWorkspaceConfig };
|
|
@@ -11,7 +11,7 @@ import { setConfigEnv } from "./env/set-env.mjs";
|
|
|
11
11
|
import { workspaceConfigSchema } from "@storm-software/config/schema";
|
|
12
12
|
import defu from "defu";
|
|
13
13
|
import { existsSync } from "node:fs";
|
|
14
|
-
|
|
14
|
+
// src/create-storm-config.ts
|
|
15
15
|
const _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
16
16
|
let _static_cache = void 0;
|
|
17
17
|
/**
|
|
@@ -109,5 +109,4 @@ const tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDe
|
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
|
-
//#endregion
|
|
113
112
|
export { createConfigExtension, createStormWorkspaceConfig, loadStormWorkspaceConfig, tryLoadStormWorkspaceConfig };
|
package/dist/env/get-env.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_logger_get_log_level = require("../logger/get-log-level.cjs");
|
|
3
3
|
const require_utilities_correct_paths = require("../utilities/correct-paths.cjs");
|
|
4
4
|
let _storm_software_config = require("@storm-software/config");
|
|
5
|
-
|
|
5
|
+
// src/env/get-env.ts
|
|
6
6
|
/**
|
|
7
7
|
* Get the config for an extension module of Storm workspace from environment variables
|
|
8
8
|
*
|
|
@@ -197,6 +197,5 @@ const getBaseThemeColorsEnv = (prefix) => {
|
|
|
197
197
|
gradient
|
|
198
198
|
};
|
|
199
199
|
};
|
|
200
|
-
//#endregion
|
|
201
200
|
exports.getConfigEnv = getConfigEnv;
|
|
202
201
|
exports.getExtensionEnv = getExtensionEnv;
|
package/dist/env/get-env.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DeepPartial } from "../types.cjs";
|
|
2
2
|
import { StormWorkspaceConfig } from "@storm-software/config";
|
|
3
|
-
//#region src/env/get-env.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Get the config for an extension module of Storm workspace from environment variables
|
|
6
5
|
*
|
|
@@ -14,5 +13,4 @@ declare const getExtensionEnv: <TConfig extends Record<string, any> = Record<str
|
|
|
14
13
|
* @returns The config for the current Storm workspace from environment variables
|
|
15
14
|
*/
|
|
16
15
|
declare const getConfigEnv: () => DeepPartial<StormWorkspaceConfig>;
|
|
17
|
-
//#endregion
|
|
18
16
|
export { getConfigEnv, getExtensionEnv };
|
package/dist/env/get-env.d.mts
CHANGED
|
@@ -2,7 +2,6 @@ import __tsdown_shims_path from 'node:path';
|
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { DeepPartial } from "../types.mjs";
|
|
4
4
|
import { StormWorkspaceConfig } from "@storm-software/config";
|
|
5
|
-
//#region src/env/get-env.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Get the config for an extension module of Storm workspace from environment variables
|
|
8
7
|
*
|
|
@@ -16,5 +15,4 @@ declare const getExtensionEnv: <TConfig extends Record<string, any> = Record<str
|
|
|
16
15
|
* @returns The config for the current Storm workspace from environment variables
|
|
17
16
|
*/
|
|
18
17
|
declare const getConfigEnv: () => DeepPartial<StormWorkspaceConfig>;
|
|
19
|
-
//#endregion
|
|
20
18
|
export { getConfigEnv, getExtensionEnv };
|
package/dist/env/get-env.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import.meta.url;
|
|
|
4
4
|
import { getLogLevelLabel } from "../logger/get-log-level.mjs";
|
|
5
5
|
import { correctPaths } from "../utilities/correct-paths.mjs";
|
|
6
6
|
import { COLOR_KEYS, STORM_DEFAULT_DOCS, STORM_DEFAULT_HOMEPAGE, STORM_DEFAULT_LICENSING } from "@storm-software/config";
|
|
7
|
-
|
|
7
|
+
// src/env/get-env.ts
|
|
8
8
|
/**
|
|
9
9
|
* Get the config for an extension module of Storm workspace from environment variables
|
|
10
10
|
*
|
|
@@ -199,5 +199,4 @@ const getBaseThemeColorsEnv = (prefix) => {
|
|
|
199
199
|
gradient
|
|
200
200
|
};
|
|
201
201
|
};
|
|
202
|
-
//#endregion
|
|
203
202
|
export { getConfigEnv, getExtensionEnv };
|
package/dist/env/set-env.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_types = require("../types.cjs");
|
|
3
3
|
const require_logger_get_log_level = require("../logger/get-log-level.cjs");
|
|
4
4
|
const require_utilities_correct_paths = require("../utilities/correct-paths.cjs");
|
|
5
|
-
|
|
5
|
+
// src/env/set-env.ts
|
|
6
6
|
/**
|
|
7
7
|
* Get the config for an extension module of Storm workspace from environment variables
|
|
8
8
|
*
|
|
@@ -225,6 +225,5 @@ const setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
225
225
|
if (config.negative) process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
226
226
|
if (config.gradient) for (let i = 0; i < config.gradient.length; i++) process.env[`${prefix}GRADIENT_${i}`] = config.gradient[i];
|
|
227
227
|
};
|
|
228
|
-
//#endregion
|
|
229
228
|
exports.setConfigEnv = setConfigEnv;
|
|
230
229
|
exports.setExtensionEnv = setExtensionEnv;
|
package/dist/env/set-env.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StormWorkspaceConfig } from "@storm-software/config";
|
|
2
|
-
//#region src/env/set-env.d.ts
|
|
3
2
|
declare global {
|
|
4
3
|
namespace NodeJS {
|
|
5
4
|
interface ProcessEnv {
|
|
@@ -20,5 +19,4 @@ declare const setExtensionEnv: <TConfig extends Record<string, any> = Record<str
|
|
|
20
19
|
* @returns The config for the current Storm workspace from environment variables
|
|
21
20
|
*/
|
|
22
21
|
declare const setConfigEnv: (config: StormWorkspaceConfig) => void;
|
|
23
|
-
//#endregion
|
|
24
22
|
export { setConfigEnv, setExtensionEnv };
|
package/dist/env/set-env.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { StormWorkspaceConfig } from "@storm-software/config";
|
|
4
|
-
//#region src/env/set-env.d.ts
|
|
5
4
|
declare global {
|
|
6
5
|
namespace NodeJS {
|
|
7
6
|
interface ProcessEnv {
|
|
@@ -22,5 +21,4 @@ declare const setExtensionEnv: <TConfig extends Record<string, any> = Record<str
|
|
|
22
21
|
* @returns The config for the current Storm workspace from environment variables
|
|
23
22
|
*/
|
|
24
23
|
declare const setConfigEnv: (config: StormWorkspaceConfig) => void;
|
|
25
|
-
//#endregion
|
|
26
24
|
export { setConfigEnv, setExtensionEnv };
|
package/dist/env/set-env.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import.meta.url;
|
|
|
4
4
|
import { LogLevel } from "../types.mjs";
|
|
5
5
|
import { getLogLevel } from "../logger/get-log-level.mjs";
|
|
6
6
|
import { correctPaths } from "../utilities/correct-paths.mjs";
|
|
7
|
-
|
|
7
|
+
// src/env/set-env.ts
|
|
8
8
|
/**
|
|
9
9
|
* Get the config for an extension module of Storm workspace from environment variables
|
|
10
10
|
*
|
|
@@ -227,5 +227,4 @@ const setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
227
227
|
if (config.negative) process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
228
228
|
if (config.gradient) for (let i = 0; i < config.gradient.length; i++) process.env[`${prefix}GRADIENT_${i}`] = config.gradient[i];
|
|
229
229
|
};
|
|
230
|
-
//#endregion
|
|
231
230
|
export { setConfigEnv, setExtensionEnv };
|
package/dist/get-config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_utilities_find_workspace_root = require("./utilities/find-workspace-root.cjs");
|
|
3
3
|
const require_create_storm_config = require("./create-storm-config.cjs");
|
|
4
|
-
|
|
4
|
+
// src/get-config.ts
|
|
5
5
|
/**
|
|
6
6
|
* Get the config for the current Storm workspace
|
|
7
7
|
*
|
|
@@ -40,7 +40,6 @@ async function tryGetWorkspaceConfig(skipLogs = true, options = {}) {
|
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
exports.getConfig = getConfig;
|
|
45
44
|
exports.getWorkspaceConfig = getWorkspaceConfig;
|
|
46
45
|
exports.tryGetWorkspaceConfig = tryGetWorkspaceConfig;
|