@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.
- package/README.md +1 -1
- package/dist/chunk-4IYEDNYJ.mjs +426 -0
- package/dist/chunk-5QZ7AV2J.js +27 -0
- package/dist/chunk-64RYHF5D.mjs +51 -0
- package/dist/chunk-66ACWURQ.mjs +125 -0
- package/dist/chunk-6OYLNZFT.mjs +169 -0
- package/dist/chunk-6SJLAEJ3.js +70 -0
- package/dist/chunk-6WPG3DXV.js +32 -0
- package/dist/chunk-7KVSSDMX.mjs +545 -0
- package/dist/chunk-7XY63NME.js +44 -0
- package/dist/chunk-A7VLTBS6.mjs +271 -0
- package/dist/chunk-BS5OC5E6.js +426 -0
- package/dist/chunk-E3IN3SQD.mjs +6 -0
- package/dist/chunk-FW22KPOW.mjs +27 -0
- package/dist/chunk-GIZ23UUE.js +189 -0
- package/dist/chunk-GOQAHXJF.mjs +28 -0
- package/dist/chunk-H6XXDZ7A.js +28 -0
- package/dist/chunk-HCF3QA4H.js +102 -0
- package/dist/chunk-JDK3PXQR.js +545 -0
- package/dist/chunk-K6TQN2LZ.js +6 -0
- package/dist/chunk-LKZSRXS7.js +169 -0
- package/dist/chunk-MGI2M3SX.js +6 -0
- package/dist/chunk-N32EGEJB.js +90 -0
- package/dist/chunk-N4BRCEYB.js +27 -0
- package/dist/chunk-OXK45X3L.js +125 -0
- package/dist/chunk-PEHVR33I.js +67 -0
- package/dist/chunk-PQNCKJAR.js +271 -0
- package/dist/chunk-PVPSTJNJ.mjs +90 -0
- package/dist/chunk-QHVHX67K.js +6 -0
- package/dist/chunk-QUVGIEZZ.mjs +6 -0
- package/dist/chunk-RAWSXKTG.mjs +189 -0
- package/dist/chunk-SJO5XZQA.js +6 -0
- package/dist/chunk-TEKFJAJJ.mjs +70 -0
- package/dist/chunk-TTCXDK6S.mjs +27 -0
- package/dist/chunk-UCUOC6LA.mjs +70 -0
- package/dist/chunk-VQLOUFMG.mjs +32 -0
- package/dist/chunk-WRFJFYOU.mjs +51 -0
- package/dist/chunk-WXOSG64C.js +70 -0
- package/dist/chunk-WXYJGX4C.mjs +6 -0
- package/dist/chunk-X6VIYUJR.mjs +6 -0
- package/dist/chunk-XJEQHMOE.js +49 -0
- package/dist/chunk-XLMGW4ZW.mjs +67 -0
- package/dist/chunk-XXHENMLT.mjs +44 -0
- package/dist/chunk-Z2EXWNIQ.mjs +102 -0
- package/dist/chunk-ZVXEYJQO.js +51 -0
- package/dist/config-file/get-config-file.d.mts +20 -0
- package/dist/config-file/get-config-file.d.ts +20 -0
- package/dist/config-file/get-config-file.js +23 -0
- package/dist/config-file/get-config-file.mjs +23 -0
- package/dist/config-file/index.d.mts +4 -0
- package/dist/config-file/index.d.ts +4 -0
- package/dist/config-file/index.js +24 -0
- package/dist/config-file/index.mjs +24 -0
- package/dist/create-storm-config.d.mts +29 -0
- package/dist/create-storm-config.d.ts +29 -0
- package/dist/create-storm-config.js +30 -0
- package/dist/create-storm-config.mjs +30 -0
- package/dist/env/get-env.d.mts +19 -0
- package/dist/env/get-env.d.ts +19 -0
- package/dist/env/get-env.js +13 -0
- package/dist/env/get-env.mjs +13 -0
- package/dist/env/index.d.mts +5 -0
- package/dist/env/index.d.ts +5 -0
- package/dist/env/index.js +20 -0
- package/dist/env/index.mjs +20 -0
- package/{src/env/get-env.d.ts → dist/env/set-env.d.mts} +7 -4
- package/{src → dist}/env/set-env.d.ts +7 -3
- package/dist/env/set-env.js +12 -0
- package/dist/env/set-env.mjs +12 -0
- package/dist/index.d.mts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +132 -0
- package/dist/index.mjs +132 -0
- package/dist/logger/chalk.d.mts +25 -0
- package/{src/utilities → dist/logger}/chalk.d.ts +4 -2
- package/dist/logger/chalk.js +7 -0
- package/dist/logger/chalk.mjs +7 -0
- package/dist/logger/console.d.mts +82 -0
- package/{src/utilities/logger.d.ts → dist/logger/console.d.ts} +18 -14
- package/dist/logger/console.js +35 -0
- package/dist/logger/console.mjs +35 -0
- package/dist/logger/get-log-level.d.mts +27 -0
- package/{src/utilities → dist/logger}/get-log-level.d.ts +9 -4
- package/dist/logger/get-log-level.js +12 -0
- package/dist/logger/get-log-level.mjs +12 -0
- package/dist/logger/index.d.mts +6 -0
- package/dist/logger/index.d.ts +6 -0
- package/dist/logger/index.js +46 -0
- package/dist/logger/index.mjs +46 -0
- package/dist/types-DGWqy1xb.d.mts +1395 -0
- package/dist/types-DGWqy1xb.d.ts +1395 -0
- package/dist/types.d.mts +40 -0
- package/{src → dist}/types.d.ts +14 -7
- package/dist/types.js +9 -0
- package/dist/types.mjs +9 -0
- package/dist/utilities/apply-workspace-tokens.d.mts +9 -0
- package/dist/utilities/apply-workspace-tokens.d.ts +9 -0
- package/dist/utilities/apply-workspace-tokens.js +14 -0
- package/dist/utilities/apply-workspace-tokens.mjs +14 -0
- package/dist/utilities/correct-paths.d.mts +19 -0
- package/dist/utilities/correct-paths.d.ts +19 -0
- package/dist/utilities/correct-paths.js +9 -0
- package/dist/utilities/correct-paths.mjs +9 -0
- package/dist/utilities/file-path-utils.d.mts +4 -0
- package/dist/utilities/file-path-utils.d.ts +4 -0
- package/dist/utilities/file-path-utils.js +9 -0
- package/dist/utilities/file-path-utils.mjs +9 -0
- package/dist/utilities/find-up.d.mts +6 -0
- package/dist/utilities/find-up.d.ts +6 -0
- package/dist/utilities/find-up.js +7 -0
- package/dist/utilities/find-up.mjs +7 -0
- package/dist/utilities/find-workspace-root.d.mts +16 -0
- package/{src → dist}/utilities/find-workspace-root.d.ts +4 -2
- package/dist/utilities/find-workspace-root.js +11 -0
- package/dist/utilities/find-workspace-root.mjs +11 -0
- package/dist/utilities/get-default-config.d.mts +15 -0
- package/dist/utilities/get-default-config.d.ts +15 -0
- package/dist/utilities/get-default-config.js +13 -0
- package/dist/utilities/get-default-config.mjs +13 -0
- package/dist/utilities/index.d.mts +11 -0
- package/dist/utilities/index.d.ts +11 -0
- package/dist/utilities/index.js +58 -0
- package/dist/utilities/index.mjs +58 -0
- package/dist/utilities/process-handler.d.mts +8 -0
- package/dist/utilities/process-handler.d.ts +8 -0
- package/dist/utilities/process-handler.js +20 -0
- package/dist/utilities/process-handler.mjs +20 -0
- package/dist/utilities/run.d.mts +36 -0
- package/dist/utilities/run.d.ts +36 -0
- package/dist/utilities/run.js +11 -0
- package/dist/utilities/run.mjs +11 -0
- package/package.json +1 -24
- package/CHANGELOG.md +0 -3122
- package/declarations.d.ts +0 -304
- package/index.cjs +0 -67508
- package/index.js +0 -67463
- package/meta.cjs.json +0 -5352
- package/meta.esm.json +0 -5413
- package/src/config-file/get-config-file.d.ts +0 -16
- package/src/config-file/index.d.ts +0 -1
- package/src/create-storm-config.d.ts +0 -26
- package/src/env/index.d.ts +0 -2
- package/src/index.d.ts +0 -13
- package/src/utilities/apply-workspace-tokens.d.ts +0 -4
- package/src/utilities/correct-paths.d.ts +0 -1
- package/src/utilities/file-path-utils.d.ts +0 -2
- package/src/utilities/find-up.d.ts +0 -4
- package/src/utilities/get-default-config.d.ts +0 -15
- package/src/utilities/index.d.ts +0 -10
- package/src/utilities/process-handler.d.ts +0 -4
- package/src/utilities/run.d.ts +0 -18
- package/utilities/chalk.cjs +0 -1610
- package/utilities/chalk.js +0 -1605
- package/utilities/find-workspace-root.cjs +0 -118
- package/utilities/find-workspace-root.js +0 -91
- package/utilities/logger.cjs +0 -5914
- package/utilities/logger.js +0 -5897
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LogLevel,
|
|
3
|
+
LogLevelLabel
|
|
4
|
+
} from "./chunk-VQLOUFMG.mjs";
|
|
5
|
+
import {
|
|
6
|
+
__name,
|
|
7
|
+
init_esm_shims
|
|
8
|
+
} from "./chunk-WRFJFYOU.mjs";
|
|
9
|
+
|
|
10
|
+
// src/logger/get-log-level.ts
|
|
11
|
+
init_esm_shims();
|
|
12
|
+
var getLogLevel = /* @__PURE__ */ __name((label) => {
|
|
13
|
+
switch (label) {
|
|
14
|
+
case "all":
|
|
15
|
+
return LogLevel.ALL;
|
|
16
|
+
case "trace":
|
|
17
|
+
return LogLevel.TRACE;
|
|
18
|
+
case "debug":
|
|
19
|
+
return LogLevel.DEBUG;
|
|
20
|
+
case "info":
|
|
21
|
+
return LogLevel.INFO;
|
|
22
|
+
case "warn":
|
|
23
|
+
return LogLevel.WARN;
|
|
24
|
+
case "error":
|
|
25
|
+
return LogLevel.ERROR;
|
|
26
|
+
case "fatal":
|
|
27
|
+
return LogLevel.FATAL;
|
|
28
|
+
case "silent":
|
|
29
|
+
return LogLevel.SILENT;
|
|
30
|
+
default:
|
|
31
|
+
return LogLevel.INFO;
|
|
32
|
+
}
|
|
33
|
+
}, "getLogLevel");
|
|
34
|
+
var getLogLevelLabel = /* @__PURE__ */ __name((logLevel = LogLevel.INFO) => {
|
|
35
|
+
if (logLevel >= LogLevel.ALL) {
|
|
36
|
+
return LogLevelLabel.ALL;
|
|
37
|
+
}
|
|
38
|
+
if (logLevel >= LogLevel.TRACE) {
|
|
39
|
+
return LogLevelLabel.TRACE;
|
|
40
|
+
}
|
|
41
|
+
if (logLevel >= LogLevel.DEBUG) {
|
|
42
|
+
return LogLevelLabel.DEBUG;
|
|
43
|
+
}
|
|
44
|
+
if (logLevel >= LogLevel.INFO) {
|
|
45
|
+
return LogLevelLabel.INFO;
|
|
46
|
+
}
|
|
47
|
+
if (logLevel >= LogLevel.WARN) {
|
|
48
|
+
return LogLevelLabel.WARN;
|
|
49
|
+
}
|
|
50
|
+
if (logLevel >= LogLevel.ERROR) {
|
|
51
|
+
return LogLevelLabel.ERROR;
|
|
52
|
+
}
|
|
53
|
+
if (logLevel >= LogLevel.FATAL) {
|
|
54
|
+
return LogLevelLabel.FATAL;
|
|
55
|
+
}
|
|
56
|
+
if (logLevel <= LogLevel.SILENT) {
|
|
57
|
+
return LogLevelLabel.SILENT;
|
|
58
|
+
}
|
|
59
|
+
return LogLevelLabel.INFO;
|
|
60
|
+
}, "getLogLevelLabel");
|
|
61
|
+
var isVerbose = /* @__PURE__ */ __name((label = LogLevelLabel.SILENT) => {
|
|
62
|
+
const logLevel = typeof label === "string" ? getLogLevel(label) : label;
|
|
63
|
+
return logLevel <= LogLevel.DEBUG;
|
|
64
|
+
}, "isVerbose");
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
getLogLevel,
|
|
68
|
+
getLogLevelLabel,
|
|
69
|
+
isVerbose
|
|
70
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_esm_shims
|
|
3
|
+
} from "./chunk-WRFJFYOU.mjs";
|
|
4
|
+
|
|
5
|
+
// src/types.ts
|
|
6
|
+
init_esm_shims();
|
|
7
|
+
var LogLevel = {
|
|
8
|
+
SILENT: 0,
|
|
9
|
+
FATAL: 10,
|
|
10
|
+
ERROR: 20,
|
|
11
|
+
WARN: 30,
|
|
12
|
+
SUCCESS: 35,
|
|
13
|
+
INFO: 40,
|
|
14
|
+
DEBUG: 60,
|
|
15
|
+
TRACE: 70,
|
|
16
|
+
ALL: 100
|
|
17
|
+
};
|
|
18
|
+
var LogLevelLabel = {
|
|
19
|
+
SILENT: "silent",
|
|
20
|
+
FATAL: "fatal",
|
|
21
|
+
ERROR: "error",
|
|
22
|
+
WARN: "warn",
|
|
23
|
+
INFO: "info",
|
|
24
|
+
DEBUG: "debug",
|
|
25
|
+
TRACE: "trace",
|
|
26
|
+
ALL: "all"
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
LogLevel,
|
|
31
|
+
LogLevelLabel
|
|
32
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __esm = (fn, res) => function __init() {
|
|
15
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
+
};
|
|
17
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
|
|
37
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.5__@swc+core@1.7.26_@swc+helpers_c7mn2udg6r6tcyo4cnski6htca/node_modules/tsup/assets/esm_shims.js
|
|
38
|
+
import { fileURLToPath } from "url";
|
|
39
|
+
import path from "path";
|
|
40
|
+
var init_esm_shims = __esm({
|
|
41
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.5__@swc+core@1.7.26_@swc+helpers_c7mn2udg6r6tcyo4cnski6htca/node_modules/tsup/assets/esm_shims.js"() {
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
__name,
|
|
47
|
+
__require,
|
|
48
|
+
__commonJS,
|
|
49
|
+
__toESM,
|
|
50
|
+
init_esm_shims
|
|
51
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk6WPG3DXVjs = require('./chunk-6WPG3DXV.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkXJEQHMOEjs = require('./chunk-XJEQHMOE.js');
|
|
9
|
+
|
|
10
|
+
// src/logger/get-log-level.ts
|
|
11
|
+
_chunkXJEQHMOEjs.init_cjs_shims.call(void 0, );
|
|
12
|
+
var getLogLevel = /* @__PURE__ */ _chunkXJEQHMOEjs.__name.call(void 0, (label) => {
|
|
13
|
+
switch (label) {
|
|
14
|
+
case "all":
|
|
15
|
+
return _chunk6WPG3DXVjs.LogLevel.ALL;
|
|
16
|
+
case "trace":
|
|
17
|
+
return _chunk6WPG3DXVjs.LogLevel.TRACE;
|
|
18
|
+
case "debug":
|
|
19
|
+
return _chunk6WPG3DXVjs.LogLevel.DEBUG;
|
|
20
|
+
case "info":
|
|
21
|
+
return _chunk6WPG3DXVjs.LogLevel.INFO;
|
|
22
|
+
case "warn":
|
|
23
|
+
return _chunk6WPG3DXVjs.LogLevel.WARN;
|
|
24
|
+
case "error":
|
|
25
|
+
return _chunk6WPG3DXVjs.LogLevel.ERROR;
|
|
26
|
+
case "fatal":
|
|
27
|
+
return _chunk6WPG3DXVjs.LogLevel.FATAL;
|
|
28
|
+
case "silent":
|
|
29
|
+
return _chunk6WPG3DXVjs.LogLevel.SILENT;
|
|
30
|
+
default:
|
|
31
|
+
return _chunk6WPG3DXVjs.LogLevel.INFO;
|
|
32
|
+
}
|
|
33
|
+
}, "getLogLevel");
|
|
34
|
+
var getLogLevelLabel = /* @__PURE__ */ _chunkXJEQHMOEjs.__name.call(void 0, (logLevel = _chunk6WPG3DXVjs.LogLevel.INFO) => {
|
|
35
|
+
if (logLevel >= _chunk6WPG3DXVjs.LogLevel.ALL) {
|
|
36
|
+
return _chunk6WPG3DXVjs.LogLevelLabel.ALL;
|
|
37
|
+
}
|
|
38
|
+
if (logLevel >= _chunk6WPG3DXVjs.LogLevel.TRACE) {
|
|
39
|
+
return _chunk6WPG3DXVjs.LogLevelLabel.TRACE;
|
|
40
|
+
}
|
|
41
|
+
if (logLevel >= _chunk6WPG3DXVjs.LogLevel.DEBUG) {
|
|
42
|
+
return _chunk6WPG3DXVjs.LogLevelLabel.DEBUG;
|
|
43
|
+
}
|
|
44
|
+
if (logLevel >= _chunk6WPG3DXVjs.LogLevel.INFO) {
|
|
45
|
+
return _chunk6WPG3DXVjs.LogLevelLabel.INFO;
|
|
46
|
+
}
|
|
47
|
+
if (logLevel >= _chunk6WPG3DXVjs.LogLevel.WARN) {
|
|
48
|
+
return _chunk6WPG3DXVjs.LogLevelLabel.WARN;
|
|
49
|
+
}
|
|
50
|
+
if (logLevel >= _chunk6WPG3DXVjs.LogLevel.ERROR) {
|
|
51
|
+
return _chunk6WPG3DXVjs.LogLevelLabel.ERROR;
|
|
52
|
+
}
|
|
53
|
+
if (logLevel >= _chunk6WPG3DXVjs.LogLevel.FATAL) {
|
|
54
|
+
return _chunk6WPG3DXVjs.LogLevelLabel.FATAL;
|
|
55
|
+
}
|
|
56
|
+
if (logLevel <= _chunk6WPG3DXVjs.LogLevel.SILENT) {
|
|
57
|
+
return _chunk6WPG3DXVjs.LogLevelLabel.SILENT;
|
|
58
|
+
}
|
|
59
|
+
return _chunk6WPG3DXVjs.LogLevelLabel.INFO;
|
|
60
|
+
}, "getLogLevelLabel");
|
|
61
|
+
var isVerbose = /* @__PURE__ */ _chunkXJEQHMOEjs.__name.call(void 0, (label = _chunk6WPG3DXVjs.LogLevelLabel.SILENT) => {
|
|
62
|
+
const logLevel = typeof label === "string" ? getLogLevel(label) : label;
|
|
63
|
+
return logLevel <= _chunk6WPG3DXVjs.LogLevel.DEBUG;
|
|
64
|
+
}, "isVerbose");
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __esm = (fn, res) => function __init() {
|
|
15
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
+
};
|
|
17
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
|
|
37
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.5__@swc+core@1.7.26_@swc+helpers_c7mn2udg6r6tcyo4cnski6htca/node_modules/tsup/assets/cjs_shims.js
|
|
38
|
+
var init_cjs_shims = __esm({
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.5__@swc+core@1.7.26_@swc+helpers_c7mn2udg6r6tcyo4cnski6htca/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
exports.__name = __name; exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.init_cjs_shims = init_cjs_shims;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
findWorkspaceRoot
|
|
3
|
+
} from "./chunk-TEKFJAJJ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__name,
|
|
6
|
+
init_esm_shims
|
|
7
|
+
} from "./chunk-WRFJFYOU.mjs";
|
|
8
|
+
|
|
9
|
+
// src/utilities/apply-workspace-tokens.ts
|
|
10
|
+
init_esm_shims();
|
|
11
|
+
var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenizerOptions) => {
|
|
12
|
+
let result = option;
|
|
13
|
+
if (!result) {
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
16
|
+
if (tokenizerOptions) {
|
|
17
|
+
const optionKeys = Object.keys(tokenizerOptions);
|
|
18
|
+
if (optionKeys.some((optionKey) => result.includes(`{${optionKey}}`))) {
|
|
19
|
+
for (const optionKey of optionKeys) {
|
|
20
|
+
if (result.includes(`{${optionKey}}`)) {
|
|
21
|
+
result = result.replaceAll(`{${optionKey}}`, tokenizerOptions.config?.[optionKey] ?? "");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (tokenizerOptions.config) {
|
|
27
|
+
const configKeys = Object.keys(tokenizerOptions.config);
|
|
28
|
+
if (configKeys.some((configKey) => result.includes(`{${configKey}}`))) {
|
|
29
|
+
for (const configKey of configKeys) {
|
|
30
|
+
if (result.includes(`{${configKey}}`)) {
|
|
31
|
+
result = result.replaceAll(`{${configKey}}`, tokenizerOptions.config[configKey]);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (result.includes("{workspaceRoot}")) {
|
|
37
|
+
result = result.replaceAll("{workspaceRoot}", tokenizerOptions.workspaceRoot ?? tokenizerOptions.config?.workspaceRoot ?? findWorkspaceRoot());
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}, "applyWorkspaceBaseTokens");
|
|
41
|
+
var applyWorkspaceProjectTokens = /* @__PURE__ */ __name((option, tokenizerOptions) => {
|
|
42
|
+
return applyWorkspaceBaseTokens(option, tokenizerOptions);
|
|
43
|
+
}, "applyWorkspaceProjectTokens");
|
|
44
|
+
var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, config, tokenizerFn) => {
|
|
45
|
+
if (!options) {
|
|
46
|
+
return {};
|
|
47
|
+
}
|
|
48
|
+
const result = {};
|
|
49
|
+
for (const option of Object.keys(options)) {
|
|
50
|
+
if (typeof options[option] === "string") {
|
|
51
|
+
result[option] = await Promise.resolve(tokenizerFn(options[option], config));
|
|
52
|
+
} else if (Array.isArray(options[option])) {
|
|
53
|
+
result[option] = await Promise.all(options[option].map(async (item) => typeof item === "string" ? await Promise.resolve(tokenizerFn(item, config)) : item));
|
|
54
|
+
} else if (typeof options[option] === "object") {
|
|
55
|
+
result[option] = await applyWorkspaceTokens(options[option], config, tokenizerFn);
|
|
56
|
+
} else {
|
|
57
|
+
result[option] = options[option];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return result;
|
|
61
|
+
}, "applyWorkspaceTokens");
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
applyWorkspaceBaseTokens,
|
|
65
|
+
applyWorkspaceProjectTokens,
|
|
66
|
+
applyWorkspaceTokens
|
|
67
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name,
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-WRFJFYOU.mjs";
|
|
5
|
+
|
|
6
|
+
// src/utilities/run.ts
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
import { exec, execSync } from "node:child_process";
|
|
9
|
+
var LARGE_BUFFER = 1024 * 1e6;
|
|
10
|
+
var run = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
|
|
11
|
+
return execSync(command, {
|
|
12
|
+
cwd,
|
|
13
|
+
env: {
|
|
14
|
+
...process.env,
|
|
15
|
+
...env,
|
|
16
|
+
CLICOLOR: "true",
|
|
17
|
+
FORCE_COLOR: "true"
|
|
18
|
+
},
|
|
19
|
+
windowsHide: true,
|
|
20
|
+
stdio,
|
|
21
|
+
maxBuffer: LARGE_BUFFER,
|
|
22
|
+
killSignal: "SIGTERM"
|
|
23
|
+
});
|
|
24
|
+
}, "run");
|
|
25
|
+
var runAsync = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ?? process.cwd(), env = process.env) => {
|
|
26
|
+
return exec(command, {
|
|
27
|
+
cwd,
|
|
28
|
+
env: {
|
|
29
|
+
...process.env,
|
|
30
|
+
...env,
|
|
31
|
+
CLICOLOR: "true",
|
|
32
|
+
FORCE_COLOR: "true"
|
|
33
|
+
},
|
|
34
|
+
windowsHide: true,
|
|
35
|
+
maxBuffer: LARGE_BUFFER,
|
|
36
|
+
killSignal: "SIGTERM"
|
|
37
|
+
});
|
|
38
|
+
}, "runAsync");
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
LARGE_BUFFER,
|
|
42
|
+
run,
|
|
43
|
+
runAsync
|
|
44
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defu,
|
|
3
|
+
getConfigFile
|
|
4
|
+
} from "./chunk-7KVSSDMX.mjs";
|
|
5
|
+
import {
|
|
6
|
+
getConfigEnv,
|
|
7
|
+
getExtensionEnv
|
|
8
|
+
} from "./chunk-6OYLNZFT.mjs";
|
|
9
|
+
import {
|
|
10
|
+
setConfigEnv
|
|
11
|
+
} from "./chunk-A7VLTBS6.mjs";
|
|
12
|
+
import {
|
|
13
|
+
formatLogMessage,
|
|
14
|
+
writeTrace,
|
|
15
|
+
writeWarning
|
|
16
|
+
} from "./chunk-66ACWURQ.mjs";
|
|
17
|
+
import {
|
|
18
|
+
getDefaultConfig
|
|
19
|
+
} from "./chunk-PVPSTJNJ.mjs";
|
|
20
|
+
import {
|
|
21
|
+
findWorkspaceRoot
|
|
22
|
+
} from "./chunk-TEKFJAJJ.mjs";
|
|
23
|
+
import {
|
|
24
|
+
StormConfigSchema
|
|
25
|
+
} from "./chunk-RAWSXKTG.mjs";
|
|
26
|
+
import {
|
|
27
|
+
__name,
|
|
28
|
+
init_esm_shims
|
|
29
|
+
} from "./chunk-WRFJFYOU.mjs";
|
|
30
|
+
|
|
31
|
+
// src/create-storm-config.ts
|
|
32
|
+
init_esm_shims();
|
|
33
|
+
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
34
|
+
var _static_cache = void 0;
|
|
35
|
+
var createConfig = /* @__PURE__ */ __name((workspaceRoot) => {
|
|
36
|
+
return createStormConfig(void 0, void 0, workspaceRoot);
|
|
37
|
+
}, "createConfig");
|
|
38
|
+
var createStormConfig = /* @__PURE__ */ __name((extensionName, schema, workspaceRoot) => {
|
|
39
|
+
let result;
|
|
40
|
+
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
|
|
41
|
+
const config = getConfigEnv();
|
|
42
|
+
const defaultConfig = getDefaultConfig(workspaceRoot);
|
|
43
|
+
result = StormConfigSchema.parse(defu(config, defaultConfig));
|
|
44
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot || findWorkspaceRoot(workspaceRoot);
|
|
45
|
+
} else {
|
|
46
|
+
result = _static_cache.data;
|
|
47
|
+
}
|
|
48
|
+
if (schema && extensionName) {
|
|
49
|
+
result.extensions = {
|
|
50
|
+
...result.extensions,
|
|
51
|
+
[extensionName]: createConfigExtension(extensionName, schema)
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
_static_cache = {
|
|
55
|
+
timestamp: Date.now(),
|
|
56
|
+
data: result
|
|
57
|
+
};
|
|
58
|
+
return result;
|
|
59
|
+
}, "createStormConfig");
|
|
60
|
+
var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
61
|
+
const extension_cache_key = {
|
|
62
|
+
extensionName
|
|
63
|
+
};
|
|
64
|
+
if (_extension_cache.has(extension_cache_key)) {
|
|
65
|
+
return _extension_cache.get(extension_cache_key);
|
|
66
|
+
}
|
|
67
|
+
let extension = getExtensionEnv(extensionName);
|
|
68
|
+
if (schema) {
|
|
69
|
+
extension = schema.parse(extension);
|
|
70
|
+
}
|
|
71
|
+
_extension_cache.set(extension_cache_key, extension);
|
|
72
|
+
return extension;
|
|
73
|
+
}, "createConfigExtension");
|
|
74
|
+
var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot) => {
|
|
75
|
+
let config = {};
|
|
76
|
+
if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
|
|
77
|
+
writeTrace(`Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
|
|
78
|
+
return _static_cache.data;
|
|
79
|
+
}
|
|
80
|
+
let _workspaceRoot = workspaceRoot;
|
|
81
|
+
if (!_workspaceRoot) {
|
|
82
|
+
_workspaceRoot = findWorkspaceRoot();
|
|
83
|
+
}
|
|
84
|
+
const configFile = await getConfigFile(_workspaceRoot);
|
|
85
|
+
if (!configFile) {
|
|
86
|
+
writeWarning("No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
|
|
87
|
+
logLevel: "all"
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
config = defu(getConfigEnv(), configFile, getDefaultConfig(_workspaceRoot));
|
|
91
|
+
setConfigEnv(config);
|
|
92
|
+
writeTrace(`\u2699\uFE0F Using Storm configuration:
|
|
93
|
+
${formatLogMessage(config)}`, config);
|
|
94
|
+
return config;
|
|
95
|
+
}, "loadStormConfig");
|
|
96
|
+
|
|
97
|
+
export {
|
|
98
|
+
createConfig,
|
|
99
|
+
createStormConfig,
|
|
100
|
+
createConfigExtension,
|
|
101
|
+
loadStormConfig
|
|
102
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkOXK45X3Ljs = require('./chunk-OXK45X3L.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkXJEQHMOEjs = require('./chunk-XJEQHMOE.js');
|
|
11
|
+
|
|
12
|
+
// src/utilities/process-handler.ts
|
|
13
|
+
_chunkXJEQHMOEjs.init_cjs_shims.call(void 0, );
|
|
14
|
+
var exitWithError = /* @__PURE__ */ _chunkXJEQHMOEjs.__name.call(void 0, (config) => {
|
|
15
|
+
_chunkOXK45X3Ljs.writeFatal.call(void 0, "Exiting script with an error status...", config);
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}, "exitWithError");
|
|
18
|
+
var exitWithSuccess = /* @__PURE__ */ _chunkXJEQHMOEjs.__name.call(void 0, (config) => {
|
|
19
|
+
_chunkOXK45X3Ljs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
|
|
20
|
+
process.exit(0);
|
|
21
|
+
}, "exitWithSuccess");
|
|
22
|
+
var handleProcess = /* @__PURE__ */ _chunkXJEQHMOEjs.__name.call(void 0, (config) => {
|
|
23
|
+
_chunkOXK45X3Ljs.writeTrace.call(void 0, `Using the following arguments to process the script: ${process.argv.join(", ")}`, config);
|
|
24
|
+
process.on("unhandledRejection", (error) => {
|
|
25
|
+
_chunkOXK45X3Ljs.writeError.call(void 0, `An Unhandled Rejection occurred while running the program: ${error}`, config);
|
|
26
|
+
exitWithError(config);
|
|
27
|
+
});
|
|
28
|
+
process.on("uncaughtException", (error) => {
|
|
29
|
+
_chunkOXK45X3Ljs.writeError.call(void 0, `An Uncaught Exception occurred while running the program: ${error.message}
|
|
30
|
+
Stacktrace: ${error.stack}`, config);
|
|
31
|
+
exitWithError(config);
|
|
32
|
+
});
|
|
33
|
+
process.on("SIGTERM", (signal) => {
|
|
34
|
+
_chunkOXK45X3Ljs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
35
|
+
exitWithError(config);
|
|
36
|
+
});
|
|
37
|
+
process.on("SIGINT", (signal) => {
|
|
38
|
+
_chunkOXK45X3Ljs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
39
|
+
exitWithError(config);
|
|
40
|
+
});
|
|
41
|
+
process.on("SIGHUP", (signal) => {
|
|
42
|
+
_chunkOXK45X3Ljs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
43
|
+
exitWithError(config);
|
|
44
|
+
});
|
|
45
|
+
}, "handleProcess");
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
exports.exitWithError = exitWithError; exports.exitWithSuccess = exitWithSuccess; exports.handleProcess = handleProcess;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { a as StormConfigInput } from '../types-DGWqy1xb.mjs';
|
|
2
|
+
import { LoadConfigOptions, ResolvedConfig } from 'c12';
|
|
3
|
+
import 'zod';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Get the config file for the current Storm workspace
|
|
7
|
+
*
|
|
8
|
+
* @param fileName - The name of the config file to search for
|
|
9
|
+
* @param filePath - The path to search for the config file in
|
|
10
|
+
* @returns The config file for the current Storm workspace
|
|
11
|
+
*/
|
|
12
|
+
declare const getConfigFileByName: (fileName: string, filePath?: string, options?: LoadConfigOptions<Partial<StormConfigInput>>) => Promise<ResolvedConfig<Partial<StormConfigInput>>>;
|
|
13
|
+
/**
|
|
14
|
+
* Get the config file for the current Storm workspace
|
|
15
|
+
*
|
|
16
|
+
* @returns The config file for the current Storm workspace
|
|
17
|
+
*/
|
|
18
|
+
declare const getConfigFile: (filePath?: string, additionalFileNames?: string[]) => Promise<Partial<StormConfigInput> | undefined>;
|
|
19
|
+
|
|
20
|
+
export { getConfigFile, getConfigFileByName };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { a as StormConfigInput } from '../types-DGWqy1xb.js';
|
|
2
|
+
import { LoadConfigOptions, ResolvedConfig } from 'c12';
|
|
3
|
+
import 'zod';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Get the config file for the current Storm workspace
|
|
7
|
+
*
|
|
8
|
+
* @param fileName - The name of the config file to search for
|
|
9
|
+
* @param filePath - The path to search for the config file in
|
|
10
|
+
* @returns The config file for the current Storm workspace
|
|
11
|
+
*/
|
|
12
|
+
declare const getConfigFileByName: (fileName: string, filePath?: string, options?: LoadConfigOptions<Partial<StormConfigInput>>) => Promise<ResolvedConfig<Partial<StormConfigInput>>>;
|
|
13
|
+
/**
|
|
14
|
+
* Get the config file for the current Storm workspace
|
|
15
|
+
*
|
|
16
|
+
* @returns The config file for the current Storm workspace
|
|
17
|
+
*/
|
|
18
|
+
declare const getConfigFile: (filePath?: string, additionalFileNames?: string[]) => Promise<Partial<StormConfigInput> | undefined>;
|
|
19
|
+
|
|
20
|
+
export { getConfigFile, getConfigFileByName };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkJDK3PXQRjs = require('../chunk-JDK3PXQR.js');
|
|
5
|
+
require('../chunk-K6TQN2LZ.js');
|
|
6
|
+
require('../chunk-ZVXEYJQO.js');
|
|
7
|
+
require('../chunk-7XY63NME.js');
|
|
8
|
+
require('../chunk-PEHVR33I.js');
|
|
9
|
+
require('../chunk-5QZ7AV2J.js');
|
|
10
|
+
require('../chunk-OXK45X3L.js');
|
|
11
|
+
require('../chunk-N32EGEJB.js');
|
|
12
|
+
require('../chunk-6SJLAEJ3.js');
|
|
13
|
+
require('../chunk-N4BRCEYB.js');
|
|
14
|
+
require('../chunk-GIZ23UUE.js');
|
|
15
|
+
require('../chunk-WXOSG64C.js');
|
|
16
|
+
require('../chunk-H6XXDZ7A.js');
|
|
17
|
+
require('../chunk-6WPG3DXV.js');
|
|
18
|
+
require('../chunk-BS5OC5E6.js');
|
|
19
|
+
require('../chunk-XJEQHMOE.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.getConfigFile = _chunkJDK3PXQRjs.getConfigFile; exports.getConfigFileByName = _chunkJDK3PXQRjs.getConfigFileByName;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getConfigFile,
|
|
3
|
+
getConfigFileByName
|
|
4
|
+
} from "../chunk-7KVSSDMX.mjs";
|
|
5
|
+
import "../chunk-E3IN3SQD.mjs";
|
|
6
|
+
import "../chunk-64RYHF5D.mjs";
|
|
7
|
+
import "../chunk-XXHENMLT.mjs";
|
|
8
|
+
import "../chunk-XLMGW4ZW.mjs";
|
|
9
|
+
import "../chunk-FW22KPOW.mjs";
|
|
10
|
+
import "../chunk-66ACWURQ.mjs";
|
|
11
|
+
import "../chunk-PVPSTJNJ.mjs";
|
|
12
|
+
import "../chunk-TEKFJAJJ.mjs";
|
|
13
|
+
import "../chunk-TTCXDK6S.mjs";
|
|
14
|
+
import "../chunk-RAWSXKTG.mjs";
|
|
15
|
+
import "../chunk-UCUOC6LA.mjs";
|
|
16
|
+
import "../chunk-GOQAHXJF.mjs";
|
|
17
|
+
import "../chunk-VQLOUFMG.mjs";
|
|
18
|
+
import "../chunk-4IYEDNYJ.mjs";
|
|
19
|
+
import "../chunk-WRFJFYOU.mjs";
|
|
20
|
+
export {
|
|
21
|
+
getConfigFile,
|
|
22
|
+
getConfigFileByName
|
|
23
|
+
};
|