@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,44 @@
|
|
|
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/run.ts
|
|
7
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
8
|
+
var _child_process = require('child_process');
|
|
9
|
+
var LARGE_BUFFER = 1024 * 1e6;
|
|
10
|
+
var run = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), stdio = "inherit", env = process.env) => {
|
|
11
|
+
return _child_process.execSync.call(void 0, 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__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), env = process.env) => {
|
|
26
|
+
return _child_process.exec.call(void 0, 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
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
exports.LARGE_BUFFER = LARGE_BUFFER; exports.run = run; exports.runAsync = runAsync;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
findFolderUp
|
|
3
|
+
} from "./chunk-HBVGMJMF.js";
|
|
4
|
+
import {
|
|
5
|
+
correctPaths
|
|
6
|
+
} from "./chunk-S3QN6LZI.js";
|
|
7
|
+
import {
|
|
8
|
+
__name,
|
|
9
|
+
init_esm_shims
|
|
10
|
+
} from "./chunk-BFNZYC5O.js";
|
|
11
|
+
|
|
12
|
+
// src/utilities/find-workspace-root.ts
|
|
13
|
+
init_esm_shims();
|
|
14
|
+
var rootFiles = [
|
|
15
|
+
"storm.json",
|
|
16
|
+
"storm.json",
|
|
17
|
+
"storm.yaml",
|
|
18
|
+
"storm.yml",
|
|
19
|
+
"storm.js",
|
|
20
|
+
"storm.ts",
|
|
21
|
+
".storm.json",
|
|
22
|
+
".storm.yaml",
|
|
23
|
+
".storm.yml",
|
|
24
|
+
".storm.js",
|
|
25
|
+
".storm.ts",
|
|
26
|
+
"lerna.json",
|
|
27
|
+
"nx.json",
|
|
28
|
+
"turbo.json",
|
|
29
|
+
"npm-workspace.json",
|
|
30
|
+
"yarn-workspace.json",
|
|
31
|
+
"pnpm-workspace.json",
|
|
32
|
+
"npm-workspace.yaml",
|
|
33
|
+
"yarn-workspace.yaml",
|
|
34
|
+
"pnpm-workspace.yaml",
|
|
35
|
+
"npm-workspace.yml",
|
|
36
|
+
"yarn-workspace.yml",
|
|
37
|
+
"pnpm-workspace.yml",
|
|
38
|
+
"npm-lock.json",
|
|
39
|
+
"yarn-lock.json",
|
|
40
|
+
"pnpm-lock.json",
|
|
41
|
+
"npm-lock.yaml",
|
|
42
|
+
"yarn-lock.yaml",
|
|
43
|
+
"pnpm-lock.yaml",
|
|
44
|
+
"npm-lock.yml",
|
|
45
|
+
"yarn-lock.yml",
|
|
46
|
+
"pnpm-lock.yml",
|
|
47
|
+
"bun.lockb"
|
|
48
|
+
];
|
|
49
|
+
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
50
|
+
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
51
|
+
return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
|
|
52
|
+
}
|
|
53
|
+
return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
|
|
54
|
+
}
|
|
55
|
+
__name(findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
56
|
+
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
57
|
+
const result = findWorkspaceRootSafe(pathInsideMonorepo);
|
|
58
|
+
if (!result) {
|
|
59
|
+
throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
|
|
60
|
+
${rootFiles.join("\n")}
|
|
61
|
+
Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
|
|
62
|
+
}
|
|
63
|
+
return result;
|
|
64
|
+
}
|
|
65
|
+
__name(findWorkspaceRoot, "findWorkspaceRoot");
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
findWorkspaceRootSafe,
|
|
69
|
+
findWorkspaceRoot
|
|
70
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkQUWIUSLTcjs = require('./chunk-QUWIUSLT.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkUIA5EFWJcjs = require('./chunk-UIA5EFWJ.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkBQUXDMBDcjs = require('./chunk-BQUXDMBD.cjs');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
var _chunkE7NMPYYEcjs = require('./chunk-E7NMPYYE.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkBJSQ7LGZcjs = require('./chunk-BJSQ7LGZ.cjs');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var _chunkAWCT22F2cjs = require('./chunk-AWCT22F2.cjs');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var _chunkREWVG2LPcjs = require('./chunk-REWVG2LP.cjs');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
var _chunkDFJNOFN2cjs = require('./chunk-DFJNOFN2.cjs');
|
|
29
|
+
|
|
30
|
+
// src/create-storm-config.ts
|
|
31
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
32
|
+
var _schema = require('@storm-software/config/schema');
|
|
33
|
+
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
34
|
+
var _static_cache = void 0;
|
|
35
|
+
var createStormConfig = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
36
|
+
let result;
|
|
37
|
+
if (!_optionalChain([_static_cache, 'optionalAccess', _ => _.data]) || !_optionalChain([_static_cache, 'optionalAccess', _2 => _2.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
38
|
+
let _workspaceRoot = workspaceRoot;
|
|
39
|
+
if (!_workspaceRoot) {
|
|
40
|
+
_workspaceRoot = _chunkBJSQ7LGZcjs.findWorkspaceRoot.call(void 0, );
|
|
41
|
+
}
|
|
42
|
+
const configEnv = _chunkREWVG2LPcjs.getConfigEnv.call(void 0, );
|
|
43
|
+
const defaultConfig = await _chunkE7NMPYYEcjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
44
|
+
const configFile = await _chunkQUWIUSLTcjs.getConfigFile.call(void 0, _workspaceRoot);
|
|
45
|
+
if (!configFile && !skipLogs) {
|
|
46
|
+
_chunkBQUXDMBDcjs.writeWarning.call(void 0, "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", {
|
|
47
|
+
logLevel: "all"
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
result = await _schema.StormConfigSchema.parseAsync(_chunkUIA5EFWJcjs.defu.call(void 0, configEnv, configFile, defaultConfig));
|
|
51
|
+
result.workspaceRoot ??= _workspaceRoot;
|
|
52
|
+
} else {
|
|
53
|
+
result = _static_cache.data;
|
|
54
|
+
}
|
|
55
|
+
if (schema && extensionName) {
|
|
56
|
+
result.extensions = {
|
|
57
|
+
...result.extensions,
|
|
58
|
+
[extensionName]: createConfigExtension(extensionName, schema)
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
_static_cache = {
|
|
62
|
+
timestamp: Date.now(),
|
|
63
|
+
data: result
|
|
64
|
+
};
|
|
65
|
+
return result;
|
|
66
|
+
}, "createStormConfig");
|
|
67
|
+
var createConfigExtension = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (extensionName, schema) => {
|
|
68
|
+
const extension_cache_key = {
|
|
69
|
+
extensionName
|
|
70
|
+
};
|
|
71
|
+
if (_extension_cache.has(extension_cache_key)) {
|
|
72
|
+
return _extension_cache.get(extension_cache_key);
|
|
73
|
+
}
|
|
74
|
+
let extension = _chunkREWVG2LPcjs.getExtensionEnv.call(void 0, extensionName);
|
|
75
|
+
if (schema) {
|
|
76
|
+
extension = schema.parse(extension);
|
|
77
|
+
}
|
|
78
|
+
_extension_cache.set(extension_cache_key, extension);
|
|
79
|
+
return extension;
|
|
80
|
+
}, "createConfigExtension");
|
|
81
|
+
var loadStormConfig = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
|
|
82
|
+
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
83
|
+
_chunkAWCT22F2cjs.setConfigEnv.call(void 0, config);
|
|
84
|
+
if (!skipLogs) {
|
|
85
|
+
_chunkBQUXDMBDcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
|
|
86
|
+
${_chunkBQUXDMBDcjs.formatLogMessage.call(void 0, config)}`, config);
|
|
87
|
+
}
|
|
88
|
+
return config;
|
|
89
|
+
}, "loadStormConfig");
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
exports.createStormConfig = createStormConfig; exports.createConfigExtension = createConfigExtension; exports.loadStormConfig = loadStormConfig;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkBJSQ7LGZcjs = require('./chunk-BJSQ7LGZ.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkDFJNOFN2cjs = require('./chunk-DFJNOFN2.cjs');
|
|
8
|
+
|
|
9
|
+
// src/utilities/apply-workspace-tokens.ts
|
|
10
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
11
|
+
var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, 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}}`, _optionalChain([tokenParams, 'optionalAccess', _ => _[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}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => ( _chunkBJSQ7LGZcjs.findWorkspaceRoot.call(void 0, ))));
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}, "applyWorkspaceBaseTokens");
|
|
41
|
+
var applyWorkspaceProjectTokens = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (option, tokenParams) => {
|
|
42
|
+
return applyWorkspaceBaseTokens(option, tokenParams);
|
|
43
|
+
}, "applyWorkspaceProjectTokens");
|
|
44
|
+
var applyWorkspaceTokens = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, 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
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
exports.applyWorkspaceBaseTokens = applyWorkspaceBaseTokens; exports.applyWorkspaceProjectTokens = applyWorkspaceProjectTokens; exports.applyWorkspaceTokens = applyWorkspaceTokens;
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkQUZ63TS4cjs = require('./chunk-QUZ63TS4.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunk2AAM5DJOcjs = require('./chunk-2AAM5DJO.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkO4SGVAEBcjs = require('./chunk-O4SGVAEB.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkDFJNOFN2cjs = require('./chunk-DFJNOFN2.cjs');
|
|
14
|
+
|
|
15
|
+
// src/env/set-env.ts
|
|
16
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
17
|
+
var setExtensionEnv = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (extensionName, extension) => {
|
|
18
|
+
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
19
|
+
if (extension[key]) {
|
|
20
|
+
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _ => _.replace, 'call', _2 => _2(/([A-Z])+/g, (input) => input ? _optionalChain([input, 'access', _3 => _3[0], 'optionalAccess', _4 => _4.toUpperCase, 'call', _5 => _5()]) + input.slice(1) : ""), 'access', _6 => _6.split, 'call', _7 => _7(/(?=[A-Z])|[.\-\s_]/), 'access', _8 => _8.map, 'call', _9 => _9((x) => x.toLowerCase())]), () => ( []));
|
|
21
|
+
let extensionKey;
|
|
22
|
+
if (result.length === 0) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (result.length === 1) {
|
|
26
|
+
extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _10 => _10[0], 'optionalAccess', _11 => _11.toUpperCase, 'call', _12 => _12()]), () => ( ""));
|
|
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__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (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`] = _chunkQUZ63TS4cjs.correctPaths.call(void 0, config.configFile);
|
|
85
|
+
}
|
|
86
|
+
if (config.workspaceRoot) {
|
|
87
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkQUZ63TS4cjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
88
|
+
process.env.NX_WORKSPACE_ROOT = _chunkQUZ63TS4cjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
89
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkQUZ63TS4cjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
90
|
+
}
|
|
91
|
+
if (config.directories) {
|
|
92
|
+
if (!config.skipCache && config.directories.cache) {
|
|
93
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkQUZ63TS4cjs.correctPaths.call(void 0, config.directories.cache);
|
|
94
|
+
}
|
|
95
|
+
if (config.directories.data) {
|
|
96
|
+
process.env[`${prefix}DATA_DIR`] = _chunkQUZ63TS4cjs.correctPaths.call(void 0, config.directories.data);
|
|
97
|
+
}
|
|
98
|
+
if (config.directories.config) {
|
|
99
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkQUZ63TS4cjs.correctPaths.call(void 0, config.directories.config);
|
|
100
|
+
}
|
|
101
|
+
if (config.directories.temp) {
|
|
102
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkQUZ63TS4cjs.correctPaths.call(void 0, config.directories.temp);
|
|
103
|
+
}
|
|
104
|
+
if (config.directories.log) {
|
|
105
|
+
process.env[`${prefix}LOG_DIR`] = _chunkQUZ63TS4cjs.correctPaths.call(void 0, config.directories.log);
|
|
106
|
+
}
|
|
107
|
+
if (config.directories.build) {
|
|
108
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkQUZ63TS4cjs.correctPaths.call(void 0, 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 (_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14.base, 'optionalAccess', _15 => _15.light]) || _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17.base, 'optionalAccess', _18 => _18.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(_chunk2AAM5DJOcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkO4SGVAEBcjs.LogLevel.DEBUG ? true : false);
|
|
163
|
+
process.env.RUST_BACKTRACE = _chunk2AAM5DJOcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkO4SGVAEBcjs.LogLevel.DEBUG ? "full" : "none";
|
|
164
|
+
}
|
|
165
|
+
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
166
|
+
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
167
|
+
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
168
|
+
}
|
|
169
|
+
}, "setConfigEnv");
|
|
170
|
+
var setThemeColorConfigEnv = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (prefix, config) => {
|
|
171
|
+
return _optionalChain([config, 'optionalAccess', _19 => _19.light, 'optionalAccess', _20 => _20.brand]) || _optionalChain([config, 'optionalAccess', _21 => _21.dark, 'optionalAccess', _22 => _22.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
172
|
+
}, "setThemeColorConfigEnv");
|
|
173
|
+
var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (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__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (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__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (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
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
exports.setExtensionEnv = setExtensionEnv; exports.setConfigEnv = setConfigEnv;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkBQUXDMBDcjs = require('./chunk-BQUXDMBD.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkBJSQ7LGZcjs = require('./chunk-BJSQ7LGZ.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunk3ALZEFKMcjs = require('./chunk-3ALZEFKM.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkO4SGVAEBcjs = require('./chunk-O4SGVAEB.cjs');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var _chunkDFJNOFN2cjs = require('./chunk-DFJNOFN2.cjs');
|
|
19
|
+
|
|
20
|
+
// src/logger/create-logger.ts
|
|
21
|
+
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
|
|
22
|
+
var import_chalk = _chunkDFJNOFN2cjs.__toESM.call(void 0, _chunk3ALZEFKMcjs.require_source.call(void 0, ), 1);
|
|
23
|
+
async function createLogger(config) {
|
|
24
|
+
const workspaceRoot = _chunkBJSQ7LGZcjs.findWorkspaceRoot.call(void 0, );
|
|
25
|
+
if (!workspaceRoot) {
|
|
26
|
+
throw new Error("Cannot find workspace root");
|
|
27
|
+
}
|
|
28
|
+
const writeFatal = _chunkBQUXDMBDcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.FATAL, config, import_chalk.default);
|
|
29
|
+
const writeError = _chunkBQUXDMBDcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.ERROR, config, import_chalk.default);
|
|
30
|
+
const writeWarning = _chunkBQUXDMBDcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.WARN, config, import_chalk.default);
|
|
31
|
+
const writeInfo = _chunkBQUXDMBDcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.INFO, config, import_chalk.default);
|
|
32
|
+
const writeSuccess = _chunkBQUXDMBDcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.SUCCESS, config, import_chalk.default);
|
|
33
|
+
const writeDebug = _chunkBQUXDMBDcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.DEBUG, config, import_chalk.default);
|
|
34
|
+
const writeTrace = _chunkBQUXDMBDcjs.getLogFn.call(void 0, _chunkO4SGVAEBcjs.LogLevel.DEBUG, config, import_chalk.default);
|
|
35
|
+
return {
|
|
36
|
+
fatal: writeFatal,
|
|
37
|
+
error: writeError,
|
|
38
|
+
warning: writeWarning,
|
|
39
|
+
info: writeInfo,
|
|
40
|
+
success: writeSuccess,
|
|
41
|
+
debug: writeDebug,
|
|
42
|
+
trace: writeTrace,
|
|
43
|
+
getStopwatch: _chunkBQUXDMBDcjs.getStopwatch
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
_chunkDFJNOFN2cjs.__name.call(void 0, createLogger, "createLogger");
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
exports.createLogger = createLogger;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
33
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
34
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
35
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
36
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
37
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
38
|
+
mod
|
|
39
|
+
));
|
|
40
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
41
|
+
|
|
42
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/esm_shims.js
|
|
43
|
+
import { fileURLToPath } from "url";
|
|
44
|
+
import path from "path";
|
|
45
|
+
var getFilename, getDirname, __dirname;
|
|
46
|
+
var init_esm_shims = __esm({
|
|
47
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/esm_shims.js"() {
|
|
48
|
+
getFilename = /* @__PURE__ */ __name(() => fileURLToPath(import.meta.url), "getFilename");
|
|
49
|
+
getDirname = /* @__PURE__ */ __name(() => path.dirname(getFilename()), "getDirname");
|
|
50
|
+
__dirname = /* @__PURE__ */ getDirname();
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
__name,
|
|
56
|
+
__require,
|
|
57
|
+
__esm,
|
|
58
|
+
__commonJS,
|
|
59
|
+
__export,
|
|
60
|
+
__toESM,
|
|
61
|
+
__toCommonJS,
|
|
62
|
+
__dirname,
|
|
63
|
+
init_esm_shims
|
|
64
|
+
};
|