@storm-software/config-tools 1.142.1 → 1.142.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/acorn-L4DOC4MD.cjs +3131 -0
- package/dist/acorn-W3WKDYQS.js +3131 -0
- package/dist/angular-KZBUGLAB.cjs +3014 -0
- package/dist/angular-QCZRQONA.js +3014 -0
- package/dist/babel-2YQL7BNO.cjs +7166 -0
- package/dist/babel-66ARC5Z7.js +7166 -0
- package/dist/chunk-2AAM5DJO.cjs +70 -0
- package/dist/chunk-2NUTLYUV.js +6 -0
- package/dist/chunk-2XFPIBCN.js +164 -0
- package/dist/chunk-3ALZEFKM.cjs +2645 -0
- package/dist/chunk-3ER2D3OU.js +67 -0
- package/dist/chunk-3W5JECK3.cjs +6 -0
- package/dist/chunk-46O7IOH6.js +24 -0
- package/dist/chunk-4AYNBMPP.cjs +27 -0
- package/dist/chunk-4OKHW64R.js +271 -0
- package/dist/chunk-4OURELB7.js +6 -0
- package/dist/chunk-5EL2OHUB.js +84 -0
- package/dist/chunk-6E5A2ZAH.cjs +451 -0
- package/dist/chunk-6KJOU57T.cjs +4054 -0
- package/dist/chunk-6O7E2ODJ.cjs +44 -0
- package/dist/chunk-7A74BDUJ.js +70 -0
- package/dist/chunk-7EC2JMQH.cjs +95 -0
- package/dist/chunk-7NYYYVNT.cjs +67 -0
- package/dist/chunk-AWCT22F2.cjs +271 -0
- package/dist/chunk-B5R5SGMG.cjs +50 -0
- package/dist/chunk-BFNZYC5O.js +64 -0
- package/dist/chunk-BJSQ7LGZ.cjs +70 -0
- package/dist/chunk-BQUXDMBD.cjs +144 -0
- package/dist/chunk-BVYQ2BKK.js +451 -0
- package/dist/chunk-C47MHGNY.js +6 -0
- package/dist/chunk-CCTOWFDI.js +95 -0
- package/dist/chunk-DBERGKMJ.cjs +765 -0
- package/dist/chunk-DFJNOFN2.cjs +61 -0
- package/dist/chunk-E7NMPYYE.cjs +93 -0
- package/dist/chunk-EXWTV42F.js +51 -0
- package/dist/chunk-FBGCL5ZA.cjs +24 -0
- package/dist/chunk-G5KDHCJJ.cjs +28 -0
- package/dist/chunk-GKOLL5ZA.cjs +51 -0
- package/dist/chunk-GWLF37RE.cjs +14 -0
- package/dist/chunk-GYCLBSTB.js +2645 -0
- package/dist/chunk-HBVGMJMF.js +27 -0
- package/dist/chunk-HM2PVPCY.js +144 -0
- package/dist/chunk-IWKKZOUZ.js +34067 -0
- package/dist/chunk-JIMG6E5P.cjs +21 -0
- package/dist/chunk-JMTLS4UN.js +27 -0
- package/dist/chunk-JPL6SA45.cjs +27 -0
- package/dist/chunk-KRV5ZLBN.cjs +510 -0
- package/dist/chunk-LQFUWYSF.js +70 -0
- package/dist/chunk-N3ELM5YV.js +28 -0
- package/dist/chunk-NO5ZHAIA.js +1120 -0
- package/dist/chunk-O4SGVAEB.cjs +33 -0
- package/dist/chunk-OL4KMEX5.js +7601 -0
- package/dist/chunk-PEPDFP2O.js +33 -0
- package/dist/chunk-PKJKHCLN.cjs +84 -0
- package/dist/chunk-QHDHDNID.cjs +6 -0
- package/dist/chunk-QHWDK2XS.js +93 -0
- package/dist/chunk-QUWIUSLT.cjs +34070 -0
- package/dist/chunk-QUZ63TS4.cjs +39947 -0
- package/dist/chunk-REWVG2LP.cjs +164 -0
- package/dist/chunk-S3QN6LZI.js +39948 -0
- package/dist/chunk-SKMG52TD.cjs +6 -0
- package/dist/chunk-TRG5FOW5.js +44 -0
- package/dist/chunk-TVUMXFOR.js +6 -0
- package/dist/chunk-TX6WHZNM.js +21 -0
- package/dist/chunk-UIA5EFWJ.cjs +7601 -0
- package/dist/chunk-VDAYBDFK.js +50 -0
- package/dist/chunk-VPMAS2N2.cjs +1120 -0
- package/dist/chunk-WTEHBMCM.js +14 -0
- package/dist/chunk-XQXUMNEU.js +510 -0
- package/dist/chunk-YJSIQHKP.cjs +6 -0
- package/dist/chunk-ZQV3QSH5.js +4054 -0
- package/dist/chunk-ZY35TVMB.js +765 -0
- package/dist/create-storm-config.cjs +36 -0
- package/dist/create-storm-config.d.cts +23 -0
- package/dist/create-storm-config.d.ts +23 -0
- package/dist/create-storm-config.js +36 -0
- package/dist/dist-M3E36L2G.cjs +17571 -0
- package/dist/dist-M5DWQXRA.js +17570 -0
- package/dist/esm-HOUHOM6T.cjs +1716 -0
- package/dist/esm-KALGCEZT.js +1716 -0
- package/dist/estree-OTYURYPI.js +4859 -0
- package/dist/estree-VNPZ3XG5.cjs +4859 -0
- package/dist/execa-XEKRORBS.cjs +2424 -0
- package/dist/execa-XN4WNY2K.js +2424 -0
- package/dist/flow-3RTSTJJN.cjs +28076 -0
- package/dist/flow-BEGL6EBU.js +28076 -0
- package/dist/get-config.cjs +35 -0
- package/dist/get-config.d.cts +19 -0
- package/dist/get-config.d.ts +19 -0
- package/dist/get-config.js +35 -0
- package/dist/glimmer-SJ3NEFEI.cjs +3062 -0
- package/dist/glimmer-T7L4DGCA.js +3062 -0
- package/dist/graphql-N7VNZRCY.cjs +1355 -0
- package/dist/graphql-ZGKSF4HS.js +1355 -0
- package/dist/html-76MY4VK3.cjs +3036 -0
- package/dist/html-PSA3ZLF3.js +3036 -0
- package/dist/index.cjs +157 -0
- package/dist/index.d.cts +25 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +157 -0
- package/dist/json5-AWKL3VDN.js +10 -0
- package/dist/json5-H2TAIKSA.cjs +10 -0
- package/dist/jsonc-AGNNV3TC.js +15 -0
- package/dist/jsonc-QNZQN4WT.cjs +15 -0
- package/dist/markdown-C7FDHMIG.js +3846 -0
- package/dist/markdown-GO2SD6ZH.cjs +3846 -0
- package/dist/meriyah-BAACQM2N.cjs +2720 -0
- package/dist/meriyah-ED62ZUKL.js +2720 -0
- package/dist/multipart-parser-6JNXK7VG.js +187 -0
- package/dist/multipart-parser-MXQWMODT.cjs +187 -0
- package/dist/postcss-2EUHH6PK.cjs +5440 -0
- package/dist/postcss-KWRUITUE.js +5440 -0
- package/dist/prettier-3OESQDIX.cjs +23560 -0
- package/dist/prettier-PADI4U76.js +23559 -0
- package/dist/toml-E3DJZTNR.js +10 -0
- package/dist/toml-VAFZQSC5.cjs +10 -0
- package/dist/types.cjs +9 -0
- package/dist/types.d.cts +50 -0
- package/dist/types.d.ts +50 -0
- package/dist/types.js +9 -0
- package/dist/typescript-YFBMA3EY.js +14956 -0
- package/dist/typescript-ZI3EJ455.cjs +14956 -0
- package/dist/yaml-2WY5XICX.js +10 -0
- package/dist/yaml-6R64VIIN.js +4584 -0
- package/dist/yaml-KDDF5JAF.cjs +4584 -0
- package/dist/yaml-X7EHFDS4.cjs +10 -0
- package/package.json +2 -2
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
findWorkspaceRoot
|
|
3
|
+
} from "./chunk-7A74BDUJ.js";
|
|
4
|
+
import {
|
|
5
|
+
__name,
|
|
6
|
+
init_esm_shims
|
|
7
|
+
} from "./chunk-BFNZYC5O.js";
|
|
8
|
+
|
|
9
|
+
// src/utilities/apply-workspace-tokens.ts
|
|
10
|
+
init_esm_shims();
|
|
11
|
+
var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenParams) => {
|
|
12
|
+
let result = option;
|
|
13
|
+
if (!result) {
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
16
|
+
if (tokenParams) {
|
|
17
|
+
const optionKeys = Object.keys(tokenParams);
|
|
18
|
+
if (optionKeys.some((optionKey) => result.includes(`{${optionKey}}`))) {
|
|
19
|
+
for (const optionKey of optionKeys) {
|
|
20
|
+
if (result.includes(`{${optionKey}}`)) {
|
|
21
|
+
result = result.replaceAll(`{${optionKey}}`, tokenParams?.[optionKey] || "");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (tokenParams.config) {
|
|
27
|
+
const configKeys = Object.keys(tokenParams.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}}`, tokenParams.config[configKey] || "");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (result.includes("{workspaceRoot}")) {
|
|
37
|
+
result = result.replaceAll("{workspaceRoot}", tokenParams.workspaceRoot ?? tokenParams.config?.workspaceRoot ?? findWorkspaceRoot());
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}, "applyWorkspaceBaseTokens");
|
|
41
|
+
var applyWorkspaceProjectTokens = /* @__PURE__ */ __name((option, tokenParams) => {
|
|
42
|
+
return applyWorkspaceBaseTokens(option, tokenParams);
|
|
43
|
+
}, "applyWorkspaceProjectTokens");
|
|
44
|
+
var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, tokenParams, 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], tokenParams));
|
|
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, tokenParams)) : item));
|
|
54
|
+
} else if (typeof options[option] === "object") {
|
|
55
|
+
result[option] = await applyWorkspaceTokens(options[option], tokenParams, 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,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name,
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-BFNZYC5O.js";
|
|
5
|
+
|
|
6
|
+
// src/logger/is-unicode-supported.ts
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
import process from "node:process";
|
|
9
|
+
function isUnicodeSupported() {
|
|
10
|
+
const { env } = process;
|
|
11
|
+
const { TERM, TERM_PROGRAM } = env;
|
|
12
|
+
if (process.platform !== "win32") {
|
|
13
|
+
return TERM !== "linux";
|
|
14
|
+
}
|
|
15
|
+
return Boolean(env.WT_SESSION) || // Windows Terminal
|
|
16
|
+
Boolean(env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
|
|
17
|
+
env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
18
|
+
TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
19
|
+
}
|
|
20
|
+
__name(isUnicodeSupported, "isUnicodeSupported");
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
isUnicodeSupported
|
|
24
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkDFJNOFN2cjs = require('./chunk-DFJNOFN2.cjs');
|
|
5
|
+
|
|
6
|
+
// src/utilities/find-up.ts
|
|
7
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
8
|
+
var _fs = require('fs');
|
|
9
|
+
var _path = require('path');
|
|
10
|
+
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
11
|
+
var depth = 0;
|
|
12
|
+
function findFolderUp(startPath, endFileNames) {
|
|
13
|
+
const _startPath = _nullishCoalesce(startPath, () => ( process.cwd()));
|
|
14
|
+
if (endFileNames.some((endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName)))) {
|
|
15
|
+
return _startPath;
|
|
16
|
+
}
|
|
17
|
+
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
18
|
+
const parent = _path.join.call(void 0, _startPath, "..");
|
|
19
|
+
return findFolderUp(parent, endFileNames);
|
|
20
|
+
}
|
|
21
|
+
return void 0;
|
|
22
|
+
}
|
|
23
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, findFolderUp, "findFolderUp");
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
exports.findFolderUp = findFolderUp;
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import {
|
|
2
|
+
correctPaths
|
|
3
|
+
} from "./chunk-S3QN6LZI.js";
|
|
4
|
+
import {
|
|
5
|
+
getLogLevel
|
|
6
|
+
} from "./chunk-LQFUWYSF.js";
|
|
7
|
+
import {
|
|
8
|
+
LogLevel
|
|
9
|
+
} from "./chunk-PEPDFP2O.js";
|
|
10
|
+
import {
|
|
11
|
+
__name,
|
|
12
|
+
init_esm_shims
|
|
13
|
+
} from "./chunk-BFNZYC5O.js";
|
|
14
|
+
|
|
15
|
+
// src/env/set-env.ts
|
|
16
|
+
init_esm_shims();
|
|
17
|
+
var setExtensionEnv = /* @__PURE__ */ __name((extensionName, extension) => {
|
|
18
|
+
for (const key of Object.keys(extension ?? {})) {
|
|
19
|
+
if (extension[key]) {
|
|
20
|
+
const result = key?.replace(/([A-Z])+/g, (input) => input ? input[0]?.toUpperCase() + input.slice(1) : "").split(/(?=[A-Z])|[.\-\s_]/).map((x) => x.toLowerCase()) ?? [];
|
|
21
|
+
let extensionKey;
|
|
22
|
+
if (result.length === 0) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (result.length === 1) {
|
|
26
|
+
extensionKey = result[0]?.toUpperCase() ?? "";
|
|
27
|
+
} else {
|
|
28
|
+
extensionKey = result.reduce((ret, part) => {
|
|
29
|
+
return `${ret}_${part.toLowerCase()}`;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}, "setExtensionEnv");
|
|
36
|
+
var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
37
|
+
const prefix = "STORM_";
|
|
38
|
+
if (config.extends) {
|
|
39
|
+
process.env[`${prefix}EXTENDS`] = Array.isArray(config.extends) ? JSON.stringify(config.extends) : config.extends;
|
|
40
|
+
}
|
|
41
|
+
if (config.name) {
|
|
42
|
+
process.env[`${prefix}NAME`] = config.name;
|
|
43
|
+
}
|
|
44
|
+
if (config.namespace) {
|
|
45
|
+
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
46
|
+
}
|
|
47
|
+
if (config.owner) {
|
|
48
|
+
process.env[`${prefix}OWNER`] = config.owner;
|
|
49
|
+
}
|
|
50
|
+
if (config.bot) {
|
|
51
|
+
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
52
|
+
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
53
|
+
}
|
|
54
|
+
if (config.organization) {
|
|
55
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
56
|
+
}
|
|
57
|
+
if (config.packageManager) {
|
|
58
|
+
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
|
59
|
+
}
|
|
60
|
+
if (config.license) {
|
|
61
|
+
process.env[`${prefix}LICENSE`] = config.license;
|
|
62
|
+
}
|
|
63
|
+
if (config.homepage) {
|
|
64
|
+
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
65
|
+
}
|
|
66
|
+
if (config.docs) {
|
|
67
|
+
process.env[`${prefix}DOCS`] = config.docs;
|
|
68
|
+
}
|
|
69
|
+
if (config.licensing) {
|
|
70
|
+
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
71
|
+
}
|
|
72
|
+
if (config.timezone) {
|
|
73
|
+
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
74
|
+
process.env.TZ = config.timezone;
|
|
75
|
+
process.env.DEFAULT_TIMEZONE = config.timezone;
|
|
76
|
+
}
|
|
77
|
+
if (config.locale) {
|
|
78
|
+
process.env[`${prefix}LOCALE`] = config.locale;
|
|
79
|
+
process.env.LOCALE = config.locale;
|
|
80
|
+
process.env.DEFAULT_LOCALE = config.locale;
|
|
81
|
+
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
82
|
+
}
|
|
83
|
+
if (config.configFile) {
|
|
84
|
+
process.env[`${prefix}CONFIG_FILE`] = correctPaths(config.configFile);
|
|
85
|
+
}
|
|
86
|
+
if (config.workspaceRoot) {
|
|
87
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config.workspaceRoot);
|
|
88
|
+
process.env.NX_WORKSPACE_ROOT = correctPaths(config.workspaceRoot);
|
|
89
|
+
process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(config.workspaceRoot);
|
|
90
|
+
}
|
|
91
|
+
if (config.directories) {
|
|
92
|
+
if (!config.skipCache && config.directories.cache) {
|
|
93
|
+
process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
|
|
94
|
+
}
|
|
95
|
+
if (config.directories.data) {
|
|
96
|
+
process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
|
|
97
|
+
}
|
|
98
|
+
if (config.directories.config) {
|
|
99
|
+
process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
|
|
100
|
+
}
|
|
101
|
+
if (config.directories.temp) {
|
|
102
|
+
process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
|
|
103
|
+
}
|
|
104
|
+
if (config.directories.log) {
|
|
105
|
+
process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
|
|
106
|
+
}
|
|
107
|
+
if (config.directories.build) {
|
|
108
|
+
process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (config.skipCache !== void 0) {
|
|
112
|
+
process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
|
|
113
|
+
if (config.skipCache) {
|
|
114
|
+
process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
|
|
115
|
+
process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
if (config.env) {
|
|
119
|
+
process.env[`${prefix}ENV`] = config.env;
|
|
120
|
+
process.env.NODE_ENV = config.env;
|
|
121
|
+
process.env.ENVIRONMENT = config.env;
|
|
122
|
+
}
|
|
123
|
+
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
124
|
+
for (const key of Object.keys(config.colors)) {
|
|
125
|
+
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
126
|
+
}
|
|
127
|
+
} else {
|
|
128
|
+
setThemeColorConfigEnv(`${prefix}COLOR_`, config.colors);
|
|
129
|
+
}
|
|
130
|
+
if (config.repository) {
|
|
131
|
+
process.env[`${prefix}REPOSITORY`] = config.repository;
|
|
132
|
+
}
|
|
133
|
+
if (config.branch) {
|
|
134
|
+
process.env[`${prefix}BRANCH`] = config.branch;
|
|
135
|
+
}
|
|
136
|
+
if (config.preid) {
|
|
137
|
+
process.env[`${prefix}PRE_ID`] = String(config.preid);
|
|
138
|
+
}
|
|
139
|
+
if (config.externalPackagePatterns) {
|
|
140
|
+
process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] = JSON.stringify(config.externalPackagePatterns);
|
|
141
|
+
}
|
|
142
|
+
if (config.registry) {
|
|
143
|
+
if (config.registry.github) {
|
|
144
|
+
process.env[`${prefix}REGISTRY_GITHUB`] = String(config.registry.github);
|
|
145
|
+
}
|
|
146
|
+
if (config.registry.npm) {
|
|
147
|
+
process.env[`${prefix}REGISTRY_NPM`] = String(config.registry.npm);
|
|
148
|
+
}
|
|
149
|
+
if (config.registry.cargo) {
|
|
150
|
+
process.env[`${prefix}REGISTRY_CARGO`] = String(config.registry.cargo);
|
|
151
|
+
}
|
|
152
|
+
if (config.registry.cyclone) {
|
|
153
|
+
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
154
|
+
}
|
|
155
|
+
if (config.registry.container) {
|
|
156
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.cyclone);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
if (config.logLevel) {
|
|
160
|
+
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
161
|
+
process.env.LOG_LEVEL = String(config.logLevel);
|
|
162
|
+
process.env.NX_VERBOSE_LOGGING = String(getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false);
|
|
163
|
+
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
164
|
+
}
|
|
165
|
+
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
166
|
+
for (const key of Object.keys(config.extensions ?? {})) {
|
|
167
|
+
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
168
|
+
}
|
|
169
|
+
}, "setConfigEnv");
|
|
170
|
+
var setThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
171
|
+
return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
172
|
+
}, "setThemeColorConfigEnv");
|
|
173
|
+
var setSingleThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
174
|
+
if (config.dark) {
|
|
175
|
+
process.env[`${prefix}DARK`] = config.dark;
|
|
176
|
+
}
|
|
177
|
+
if (config.light) {
|
|
178
|
+
process.env[`${prefix}LIGHT`] = config.light;
|
|
179
|
+
}
|
|
180
|
+
if (config.brand) {
|
|
181
|
+
process.env[`${prefix}BRAND`] = config.brand;
|
|
182
|
+
}
|
|
183
|
+
if (config.alternate) {
|
|
184
|
+
process.env[`${prefix}ALTERNATE`] = config.alternate;
|
|
185
|
+
}
|
|
186
|
+
if (config.accent) {
|
|
187
|
+
process.env[`${prefix}ACCENT`] = config.accent;
|
|
188
|
+
}
|
|
189
|
+
if (config.link) {
|
|
190
|
+
process.env[`${prefix}LINK`] = config.link;
|
|
191
|
+
}
|
|
192
|
+
if (config.help) {
|
|
193
|
+
process.env[`${prefix}HELP`] = config.help;
|
|
194
|
+
}
|
|
195
|
+
if (config.success) {
|
|
196
|
+
process.env[`${prefix}SUCCESS`] = config.success;
|
|
197
|
+
}
|
|
198
|
+
if (config.info) {
|
|
199
|
+
process.env[`${prefix}INFO`] = config.info;
|
|
200
|
+
}
|
|
201
|
+
if (config.warning) {
|
|
202
|
+
process.env[`${prefix}WARNING`] = config.warning;
|
|
203
|
+
}
|
|
204
|
+
if (config.danger) {
|
|
205
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
206
|
+
}
|
|
207
|
+
if (config.fatal) {
|
|
208
|
+
process.env[`${prefix}FATAL`] = config.fatal;
|
|
209
|
+
}
|
|
210
|
+
if (config.positive) {
|
|
211
|
+
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
212
|
+
}
|
|
213
|
+
if (config.negative) {
|
|
214
|
+
process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
215
|
+
}
|
|
216
|
+
}, "setSingleThemeColorConfigEnv");
|
|
217
|
+
var setMultiThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
218
|
+
return {
|
|
219
|
+
light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config.light),
|
|
220
|
+
dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config.dark)
|
|
221
|
+
};
|
|
222
|
+
}, "setMultiThemeColorConfigEnv");
|
|
223
|
+
var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
224
|
+
if (config.foreground) {
|
|
225
|
+
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
226
|
+
}
|
|
227
|
+
if (config.background) {
|
|
228
|
+
process.env[`${prefix}BACKGROUND`] = config.background;
|
|
229
|
+
}
|
|
230
|
+
if (config.brand) {
|
|
231
|
+
process.env[`${prefix}BRAND`] = config.brand;
|
|
232
|
+
}
|
|
233
|
+
if (config.alternate) {
|
|
234
|
+
process.env[`${prefix}ALTERNATE`] = config.alternate;
|
|
235
|
+
}
|
|
236
|
+
if (config.accent) {
|
|
237
|
+
process.env[`${prefix}ACCENT`] = config.accent;
|
|
238
|
+
}
|
|
239
|
+
if (config.link) {
|
|
240
|
+
process.env[`${prefix}LINK`] = config.link;
|
|
241
|
+
}
|
|
242
|
+
if (config.help) {
|
|
243
|
+
process.env[`${prefix}HELP`] = config.help;
|
|
244
|
+
}
|
|
245
|
+
if (config.success) {
|
|
246
|
+
process.env[`${prefix}SUCCESS`] = config.success;
|
|
247
|
+
}
|
|
248
|
+
if (config.info) {
|
|
249
|
+
process.env[`${prefix}INFO`] = config.info;
|
|
250
|
+
}
|
|
251
|
+
if (config.warning) {
|
|
252
|
+
process.env[`${prefix}WARNING`] = config.warning;
|
|
253
|
+
}
|
|
254
|
+
if (config.danger) {
|
|
255
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
256
|
+
}
|
|
257
|
+
if (config.fatal) {
|
|
258
|
+
process.env[`${prefix}FATAL`] = config.fatal;
|
|
259
|
+
}
|
|
260
|
+
if (config.positive) {
|
|
261
|
+
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
262
|
+
}
|
|
263
|
+
if (config.negative) {
|
|
264
|
+
process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
265
|
+
}
|
|
266
|
+
}, "setBaseThemeColorConfigEnv");
|
|
267
|
+
|
|
268
|
+
export {
|
|
269
|
+
setExtensionEnv,
|
|
270
|
+
setConfigEnv
|
|
271
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name,
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-BFNZYC5O.js";
|
|
5
|
+
|
|
6
|
+
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
var b = /^(?:( )+|\t+)/;
|
|
9
|
+
var d = "space";
|
|
10
|
+
var h = "tab";
|
|
11
|
+
function g(e, t) {
|
|
12
|
+
const n = /* @__PURE__ */ new Map();
|
|
13
|
+
let i = 0, s, o;
|
|
14
|
+
for (const c of e.split(/\n/g)) {
|
|
15
|
+
if (!c) continue;
|
|
16
|
+
let f, a, l, p, r;
|
|
17
|
+
const y = c.match(b);
|
|
18
|
+
if (y === null) i = 0, s = "";
|
|
19
|
+
else {
|
|
20
|
+
if (f = y[0].length, a = y[1] ? d : h, t && a === d && f === 1) continue;
|
|
21
|
+
a !== s && (i = 0), s = a, l = 1, p = 0;
|
|
22
|
+
const u = f - i;
|
|
23
|
+
if (i = f, u === 0) l = 0, p = 1;
|
|
24
|
+
else {
|
|
25
|
+
const I = u > 0 ? u : -u;
|
|
26
|
+
o = T(a, I);
|
|
27
|
+
}
|
|
28
|
+
r = n.get(o), r = r === void 0 ? [1, 0] : [r[0] + l, r[1] + p], n.set(o, r);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return n;
|
|
32
|
+
}
|
|
33
|
+
__name(g, "g");
|
|
34
|
+
function T(e, t) {
|
|
35
|
+
return (e === d ? "s" : "t") + String(t);
|
|
36
|
+
}
|
|
37
|
+
__name(T, "T");
|
|
38
|
+
function w(e) {
|
|
39
|
+
const n = e[0] === "s" ? d : h, i = Number(e.slice(1));
|
|
40
|
+
return { type: n, amount: i };
|
|
41
|
+
}
|
|
42
|
+
__name(w, "w");
|
|
43
|
+
function E(e) {
|
|
44
|
+
let t, n = 0, i = 0;
|
|
45
|
+
for (const [s, [o, c]] of e) (o > n || o === n && c > i) && (n = o, i = c, t = s);
|
|
46
|
+
return t;
|
|
47
|
+
}
|
|
48
|
+
__name(E, "E");
|
|
49
|
+
function S(e, t) {
|
|
50
|
+
return (e === d ? " " : " ").repeat(t);
|
|
51
|
+
}
|
|
52
|
+
__name(S, "S");
|
|
53
|
+
function _(e) {
|
|
54
|
+
if (typeof e != "string") throw new TypeError("Expected a string");
|
|
55
|
+
let t = g(e, true);
|
|
56
|
+
t.size === 0 && (t = g(e, false));
|
|
57
|
+
const n = E(t);
|
|
58
|
+
let i, s = 0, o = "";
|
|
59
|
+
return n !== void 0 && ({ type: i, amount: s } = w(n), o = S(i, s)), { amount: s, type: i, indent: o };
|
|
60
|
+
}
|
|
61
|
+
__name(_, "_");
|
|
62
|
+
var m = Symbol.for("__confbox_fmt__");
|
|
63
|
+
var k = /^(\s+)/;
|
|
64
|
+
var v = /(\s+)$/;
|
|
65
|
+
function x(e, t = {}) {
|
|
66
|
+
const n = t.indent === void 0 && t.preserveIndentation !== false && e.slice(0, t?.sampleSize || 1024), i = t.preserveWhitespace === false ? void 0 : { start: k.exec(e)?.[0] || "", end: v.exec(e)?.[0] || "" };
|
|
67
|
+
return { sample: n, whiteSpace: i };
|
|
68
|
+
}
|
|
69
|
+
__name(x, "x");
|
|
70
|
+
function N(e, t, n) {
|
|
71
|
+
!t || typeof t != "object" || Object.defineProperty(t, m, { enumerable: false, configurable: true, writable: true, value: x(e, n) });
|
|
72
|
+
}
|
|
73
|
+
__name(N, "N");
|
|
74
|
+
function C(e, t) {
|
|
75
|
+
if (!e || typeof e != "object" || !(m in e)) return { indent: t?.indent, whitespace: { start: "", end: "" } };
|
|
76
|
+
const n = e[m];
|
|
77
|
+
return { indent: t?.indent || _(n.sample || "").indent, whitespace: n.whiteSpace || { start: "", end: "" } };
|
|
78
|
+
}
|
|
79
|
+
__name(C, "C");
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
N,
|
|
83
|
+
C
|
|
84
|
+
};
|