@storm-software/workspace-tools 1.294.26 → 1.294.28
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/CHANGELOG.md +30 -0
- package/dist/{chunk-BFUD5R7Y.mjs → chunk-2KJIK2JG.mjs} +1 -1
- package/dist/{chunk-GQUC7Z5A.js → chunk-2KU2SYND.js} +2 -2
- package/dist/{chunk-V5BPSX25.mjs → chunk-2LSF54ZF.mjs} +7 -3
- package/dist/{chunk-CVWXJRXD.mjs → chunk-35BFW2YQ.mjs} +1 -1
- package/dist/{chunk-5ZHH2FNQ.js → chunk-3UVFXL7I.js} +10 -10
- package/dist/{chunk-LS6TILJC.js → chunk-57NKESY4.js} +2 -2
- package/dist/{chunk-PED6YPOF.js → chunk-5ERD4NKM.js} +4 -4
- package/dist/{chunk-EIHVLRYO.mjs → chunk-5LORK24T.mjs} +3 -3
- package/dist/{chunk-LN2ISRNV.js → chunk-6CO2XOFR.js} +4 -4
- package/dist/{chunk-H2IQPKCX.js → chunk-6DW3XFYQ.js} +31 -30
- package/dist/{chunk-ETSXRU6M.js → chunk-6ES3P2CK.js} +12 -12
- package/dist/{chunk-I3IVGDHX.js → chunk-AA5UBL6W.js} +11 -11
- package/dist/{chunk-AXBRZDW7.mjs → chunk-AUKCJTVH.mjs} +1 -1
- package/dist/{chunk-GL7AEMWH.mjs → chunk-BA7S3VQ3.mjs} +2 -2
- package/dist/{chunk-JMG57VVQ.mjs → chunk-BU2S2BSO.mjs} +1 -1
- package/dist/{chunk-FIAY4XVI.mjs → chunk-CHKLDARN.mjs} +1 -1
- package/dist/{chunk-4XMMNPEO.js → chunk-CJHDSYRB.js} +2 -2
- package/dist/{chunk-C4ETRYH2.js → chunk-CK3BPORZ.js} +24 -20
- package/dist/{chunk-23AG7J6K.mjs → chunk-DCNARLNN.mjs} +1 -1
- package/dist/{chunk-TSATJMLT.mjs → chunk-EYFYABBG.mjs} +6 -5
- package/dist/{chunk-QJEODVLU.mjs → chunk-G3QQ7CLV.mjs} +1 -1
- package/dist/{chunk-626FPLUP.js → chunk-GAOMOIRS.js} +8 -8
- package/dist/{chunk-V5L2NMX3.mjs → chunk-HLZG5AEE.mjs} +8 -4
- package/dist/{chunk-P37IUTEP.mjs → chunk-HUZNI7UG.mjs} +1 -1
- package/dist/{chunk-I4TZ6K5F.mjs → chunk-IQ7NS4OX.mjs} +1 -1
- package/dist/{chunk-NWXPYUQ3.mjs → chunk-J3V2XDUI.mjs} +32 -1
- package/dist/{chunk-DONUBURB.mjs → chunk-JAKKZXJM.mjs} +1 -1
- package/dist/{chunk-FAOWNWQO.js → chunk-LQZIZT3Y.js} +2 -2
- package/dist/{chunk-DQQPNY3P.mjs → chunk-MRG3BU6W.mjs} +2 -2
- package/dist/{chunk-LQLB23MA.js → chunk-MZDT5BZH.js} +5 -5
- package/dist/{chunk-I7VI4LB4.js → chunk-NTM7F6SO.js} +2 -2
- package/dist/{chunk-FLEL6HL3.mjs → chunk-NZX54HXX.mjs} +2 -2
- package/dist/{chunk-MJPVYBME.js → chunk-OS24C67P.js} +35 -4
- package/dist/{chunk-V6KF2MA3.js → chunk-PBN7PKGE.js} +21 -17
- package/dist/{chunk-HUOI4PBW.js → chunk-PK3VAEVW.js} +2 -2
- package/dist/{chunk-R6OKTOPG.js → chunk-PKU6ZJTS.js} +5 -5
- package/dist/{chunk-JP5HZTAF.mjs → chunk-Q5LQOLXC.mjs} +2 -2
- package/dist/{chunk-HRSYZ5SJ.js → chunk-QPBVOQFM.js} +2 -2
- package/dist/{chunk-YRHOGXG2.js → chunk-QVC3FWV5.js} +2 -2
- package/dist/{chunk-RDLWCD3X.js → chunk-QY6ZMQ6I.js} +2 -2
- package/dist/{chunk-HTZWMLHS.mjs → chunk-R3374L7Q.mjs} +3 -3
- package/dist/{chunk-FAYJOHW6.mjs → chunk-R4VLMWSB.mjs} +1 -1
- package/dist/{chunk-XOC54MDY.mjs → chunk-TIJ5S5SL.mjs} +1 -1
- package/dist/{chunk-OAWHJHVS.mjs → chunk-UK6TAD3O.mjs} +2 -2
- package/dist/{chunk-AH5TFWCI.mjs → chunk-UWQQYG23.mjs} +1 -1
- package/dist/{chunk-JV6AKQ47.js → chunk-VFLEWVYZ.js} +35 -34
- package/dist/{chunk-3ATRPILH.js → chunk-VHXO4KB2.js} +2 -2
- package/dist/{chunk-2HFE4IAT.mjs → chunk-XZPUEPKK.mjs} +1 -1
- package/dist/{chunk-SQ7YVBPN.js → chunk-Y6FERKSJ.js} +2 -2
- package/dist/{chunk-MJU4W4C7.mjs → chunk-YHO3SOGJ.mjs} +6 -5
- package/dist/{chunk-XRVFIF7Q.js → chunk-YRI7JSHF.js} +2 -2
- package/dist/{chunk-YI34TEVO.mjs → chunk-ZED2FGME.mjs} +1 -1
- package/dist/{chunk-WJAIY3X6.js → chunk-ZNRCZ3UF.js} +2 -2
- package/dist/{chunk-YRHSIXS4.js → chunk-ZTCV7FTK.js} +2 -2
- package/dist/executors.js +20 -20
- package/dist/executors.mjs +19 -19
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +8 -8
- package/dist/index.js +28 -28
- package/dist/index.mjs +27 -27
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +3 -3
- package/dist/src/base/index.js +5 -5
- package/dist/src/base/index.mjs +4 -4
- package/dist/src/executors/cargo-build/executor.js +5 -5
- package/dist/src/executors/cargo-build/executor.mjs +4 -4
- package/dist/src/executors/cargo-check/executor.js +5 -5
- package/dist/src/executors/cargo-check/executor.mjs +4 -4
- package/dist/src/executors/cargo-clippy/executor.js +5 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +4 -4
- package/dist/src/executors/cargo-doc/executor.js +5 -5
- package/dist/src/executors/cargo-doc/executor.mjs +4 -4
- package/dist/src/executors/cargo-format/executor.js +5 -5
- package/dist/src/executors/cargo-format/executor.mjs +4 -4
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/esbuild/executor.js +6 -6
- package/dist/src/executors/esbuild/executor.mjs +5 -5
- package/dist/src/executors/napi/executor.js +5 -5
- package/dist/src/executors/napi/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/executor.js +6 -6
- package/dist/src/executors/npm-publish/executor.mjs +5 -5
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/tsdown/executor.js +6 -6
- package/dist/src/executors/tsdown/executor.mjs +5 -5
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/unbuild/executor.js +5 -5
- package/dist/src/executors/unbuild/executor.mjs +4 -4
- package/dist/src/generators/browser-library/generator.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +4 -4
- package/dist/src/generators/config-schema/generator.js +5 -5
- package/dist/src/generators/config-schema/generator.mjs +4 -4
- package/dist/src/generators/neutral-library/generator.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +4 -4
- package/dist/src/generators/node-library/generator.js +5 -5
- package/dist/src/generators/node-library/generator.mjs +4 -4
- package/dist/src/generators/preset/generator.js +5 -5
- package/dist/src/generators/preset/generator.mjs +4 -4
- package/dist/src/release/index.js +6 -6
- package/dist/src/release/index.mjs +5 -5
- package/dist/src/release/js-version-actions.js +4 -4
- package/dist/src/release/js-version-actions.mjs +3 -3
- package/dist/src/release/rust-version-actions.js +5 -5
- package/dist/src/release/rust-version-actions.mjs +4 -4
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/package-helpers.js +4 -4
- package/dist/src/utils/package-helpers.mjs +3 -3
- package/package.json +9 -9
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
parseCargoToml,
|
|
6
6
|
parseCargoTomlWithTree,
|
|
7
7
|
stringifyCargoToml
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CHKLDARN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getWorkspaceConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UWQQYG23.mjs";
|
|
12
12
|
|
|
13
13
|
// src/release/rust-version-actions.ts
|
|
14
14
|
import {
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCK3BPORZjs = require('./chunk-CK3BPORZ.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-build/executor.ts
|
|
10
10
|
async function cargoBuildExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "build", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkCK3BPORZjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Build",
|
|
16
16
|
cargoBuildExecutor,
|
|
17
17
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHXQRGLIIjs = require('./chunk-HXQRGLII.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk3UVFXL7Ijs = require('./chunk-3UVFXL7I.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,7 +14,8 @@ var _chunk5ZHH2FNQjs = require('./chunk-5ZHH2FNQ.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
var _chunkOS24C67Pjs = require('./chunk-OS24C67P.js');
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -22,7 +23,7 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
22
23
|
// src/base/base-executor.ts
|
|
23
24
|
var _defu = require('defu');
|
|
24
25
|
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
25
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, name);
|
|
26
27
|
let options = _options;
|
|
27
28
|
let config = {};
|
|
28
29
|
try {
|
|
@@ -36,9 +37,12 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
36
37
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
37
38
|
const projectName = context.projectName;
|
|
38
39
|
config.workspaceRoot = workspaceRoot;
|
|
39
|
-
|
|
40
|
+
_chunkOS24C67Pjs.writeInfo.call(void 0,
|
|
41
|
+
`${_chunkOS24C67Pjs.brandIcon.call(void 0, config)} Running the ${name} executor for ${projectName} `,
|
|
42
|
+
config
|
|
43
|
+
);
|
|
40
44
|
if (!executorOptions.skipReadingConfig) {
|
|
41
|
-
|
|
45
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0,
|
|
42
46
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
43
47
|
- workspaceRoot: ${workspaceRoot}
|
|
44
48
|
- projectRoot: ${projectRoot}
|
|
@@ -47,18 +51,18 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
47
51
|
`,
|
|
48
52
|
config
|
|
49
53
|
);
|
|
50
|
-
config = await
|
|
54
|
+
config = await _chunk3UVFXL7Ijs.getConfig.call(void 0, workspaceRoot);
|
|
51
55
|
}
|
|
52
56
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
53
|
-
|
|
57
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
54
58
|
options = await Promise.resolve(
|
|
55
59
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
56
60
|
);
|
|
57
|
-
|
|
61
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
58
62
|
}
|
|
59
|
-
|
|
63
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0,
|
|
60
64
|
`Executor schema options \u2699\uFE0F
|
|
61
|
-
${
|
|
65
|
+
${_chunkOS24C67Pjs.formatLogMessage.call(void 0, options)}
|
|
62
66
|
`,
|
|
63
67
|
config
|
|
64
68
|
);
|
|
@@ -71,18 +75,18 @@ ${_chunkMJPVYBMEjs.formatLogMessage.call(void 0, options)}
|
|
|
71
75
|
),
|
|
72
76
|
_chunkHXQRGLIIjs.applyWorkspaceProjectTokens
|
|
73
77
|
);
|
|
74
|
-
|
|
78
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0,
|
|
75
79
|
`Executor schema tokenized options \u2699\uFE0F
|
|
76
|
-
${
|
|
80
|
+
${_chunkOS24C67Pjs.formatLogMessage.call(void 0, tokenized)}
|
|
77
81
|
`,
|
|
78
82
|
config
|
|
79
83
|
);
|
|
80
84
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
81
|
-
|
|
85
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
82
86
|
await Promise.resolve(
|
|
83
87
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
84
88
|
);
|
|
85
|
-
|
|
89
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
86
90
|
}
|
|
87
91
|
const ret = executorFn(tokenized, context, config);
|
|
88
92
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -97,7 +101,7 @@ ${_chunkMJPVYBMEjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
97
101
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
|
|
98
102
|
throw new Error(
|
|
99
103
|
`Failure determined while running the ${name} executor
|
|
100
|
-
${
|
|
104
|
+
${_chunkOS24C67Pjs.formatLogMessage.call(void 0,
|
|
101
105
|
result
|
|
102
106
|
)}`,
|
|
103
107
|
{
|
|
@@ -106,21 +110,21 @@ ${_chunkMJPVYBMEjs.formatLogMessage.call(void 0,
|
|
|
106
110
|
);
|
|
107
111
|
}
|
|
108
112
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
109
|
-
|
|
113
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
110
114
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
111
|
-
|
|
115
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
112
116
|
}
|
|
113
|
-
|
|
117
|
+
_chunkOS24C67Pjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
114
118
|
`, config);
|
|
115
119
|
return {
|
|
116
120
|
success: true
|
|
117
121
|
};
|
|
118
122
|
} catch (error) {
|
|
119
|
-
|
|
123
|
+
_chunkOS24C67Pjs.writeFatal.call(void 0,
|
|
120
124
|
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
121
125
|
config
|
|
122
126
|
);
|
|
123
|
-
|
|
127
|
+
_chunkOS24C67Pjs.writeError.call(void 0,
|
|
124
128
|
`An exception was thrown in the executor's process
|
|
125
129
|
- Details: ${error.message}
|
|
126
130
|
- Stacktrace: ${error.stack}`,
|
|
@@ -5,21 +5,22 @@ import {
|
|
|
5
5
|
addWorkspacePackageJsonFields,
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEnv
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5LORK24T.mjs";
|
|
9
9
|
import {
|
|
10
10
|
withRunExecutor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2LSF54ZF.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getWorkspaceConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UWQQYG23.mjs";
|
|
15
15
|
import {
|
|
16
|
+
brandIcon,
|
|
16
17
|
getStopwatch,
|
|
17
18
|
writeDebug,
|
|
18
19
|
writeFatal,
|
|
19
20
|
writeInfo,
|
|
20
21
|
writeSuccess,
|
|
21
22
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-J3V2XDUI.mjs";
|
|
23
24
|
import {
|
|
24
25
|
findWorkspaceRoot
|
|
25
26
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -282,7 +283,7 @@ async function cleanOutputPath(options) {
|
|
|
282
283
|
return options;
|
|
283
284
|
}
|
|
284
285
|
async function build(options) {
|
|
285
|
-
writeDebug(`
|
|
286
|
+
writeDebug(` ${brandIcon()} Executing Storm TSDown pipeline`);
|
|
286
287
|
const stopwatch = getStopwatch("TSDown pipeline");
|
|
287
288
|
try {
|
|
288
289
|
const opts = Array.isArray(options) ? options : [options];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkOS24C67Pjs = require('./chunk-OS24C67P.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -12,12 +12,12 @@ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
|
12
12
|
// ../build-tools/src/config.ts
|
|
13
13
|
var DEFAULT_JS_BANNER = `
|
|
14
14
|
// ---------------------------------------
|
|
15
|
-
// \
|
|
15
|
+
// \u{1F5F2} Built by Storm Software
|
|
16
16
|
// ---------------------------------------
|
|
17
17
|
`;
|
|
18
18
|
var DEFAULT_CSS_BANNER = `
|
|
19
19
|
/* ---------------------------------------
|
|
20
|
-
\
|
|
20
|
+
\u{1F5F2} Built by Storm Software
|
|
21
21
|
--------------------------------------- */
|
|
22
22
|
`;
|
|
23
23
|
var DEFAULT_ENVIRONMENT = "production";
|
|
@@ -54,7 +54,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
54
54
|
output: "src/"
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0,
|
|
58
58
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
59
59
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkCQDBLKPFjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
60
60
|
config
|
|
@@ -66,9 +66,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
66
66
|
assets: pendingAssets
|
|
67
67
|
});
|
|
68
68
|
await assetHandler.processAllAssetsOnce();
|
|
69
|
-
|
|
69
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
70
70
|
if (includeSrc === true) {
|
|
71
|
-
|
|
71
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0,
|
|
72
72
|
`\u{1F4DD} Adding banner and writing source files: ${_chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
73
73
|
outputPath,
|
|
74
74
|
"src"
|
|
@@ -152,7 +152,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
if (localPackages.length > 0) {
|
|
155
|
-
|
|
155
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0,
|
|
156
156
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
157
157
|
);
|
|
158
158
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -200,7 +200,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
200
200
|
return ret;
|
|
201
201
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
202
202
|
} else {
|
|
203
|
-
|
|
203
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
204
204
|
}
|
|
205
205
|
return packageJson;
|
|
206
206
|
};
|
|
@@ -4,8 +4,9 @@ import {
|
|
|
4
4
|
} from "./chunk-2QMGYIOO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UWQQYG23.mjs";
|
|
8
8
|
import {
|
|
9
|
+
brandIcon,
|
|
9
10
|
getStopwatch,
|
|
10
11
|
writeDebug,
|
|
11
12
|
writeError,
|
|
@@ -13,7 +14,7 @@ import {
|
|
|
13
14
|
writeInfo,
|
|
14
15
|
writeSuccess,
|
|
15
16
|
writeTrace
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-J3V2XDUI.mjs";
|
|
17
18
|
import {
|
|
18
19
|
findWorkspaceRoot
|
|
19
20
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -26,9 +27,12 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
26
27
|
let options = _options;
|
|
27
28
|
let config;
|
|
28
29
|
try {
|
|
29
|
-
writeInfo(
|
|
30
|
+
writeInfo(
|
|
31
|
+
`${brandIcon(config)} Running the ${name} generator...
|
|
30
32
|
|
|
31
|
-
`,
|
|
33
|
+
`,
|
|
34
|
+
config
|
|
35
|
+
);
|
|
32
36
|
const workspaceRoot = findWorkspaceRoot();
|
|
33
37
|
if (!generatorOptions.skipReadingConfig) {
|
|
34
38
|
writeDebug(
|
|
@@ -62,6 +62,35 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
62
62
|
gradient: ["#1fb2a6", "#db2777", "#818cf8"]
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
+
function getColors(config) {
|
|
66
|
+
if (!config?.colors || typeof config.colors !== "object" || !config.colors["dark"] && (!config.colors["base"] || typeof config.colors !== "object" || !config.colors["base"]?.["dark"])) {
|
|
67
|
+
return DEFAULT_COLOR_CONFIG;
|
|
68
|
+
}
|
|
69
|
+
if (config.colors["base"]) {
|
|
70
|
+
if (typeof config.colors["base"]["dark"] === "object") {
|
|
71
|
+
return config.colors["base"]["dark"];
|
|
72
|
+
} else if (config.colors["base"]["dark"] === "string") {
|
|
73
|
+
return config.colors["base"];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (typeof config.colors["dark"] === "object") {
|
|
77
|
+
return config.colors["dark"];
|
|
78
|
+
}
|
|
79
|
+
return config.colors ?? DEFAULT_COLOR_CONFIG;
|
|
80
|
+
}
|
|
81
|
+
function getColor(key, config) {
|
|
82
|
+
const colors = getColors(config);
|
|
83
|
+
const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || DEFAULT_COLOR_CONFIG["dark"][key] || DEFAULT_COLOR_CONFIG[key];
|
|
84
|
+
if (result) {
|
|
85
|
+
return result;
|
|
86
|
+
}
|
|
87
|
+
if (key === "link" || key === "debug") {
|
|
88
|
+
return getColor("info", config);
|
|
89
|
+
} else if (key === "fatal") {
|
|
90
|
+
return getColor("danger", config);
|
|
91
|
+
}
|
|
92
|
+
return getColor("brand", config);
|
|
93
|
+
}
|
|
65
94
|
|
|
66
95
|
// ../config-tools/src/logger/chalk.ts
|
|
67
96
|
import chalk from "chalk";
|
|
@@ -328,6 +357,7 @@ var _isFunction = (value) => {
|
|
|
328
357
|
return false;
|
|
329
358
|
}
|
|
330
359
|
};
|
|
360
|
+
var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("\u{1F5F2}");
|
|
331
361
|
|
|
332
362
|
export {
|
|
333
363
|
LogLevel,
|
|
@@ -341,5 +371,6 @@ export {
|
|
|
341
371
|
writeDebug,
|
|
342
372
|
writeTrace,
|
|
343
373
|
getStopwatch,
|
|
344
|
-
formatLogMessage
|
|
374
|
+
formatLogMessage,
|
|
375
|
+
brandIcon
|
|
345
376
|
};
|
|
@@ -7,7 +7,7 @@ var _chunkBZMYB75Mjs = require('./chunk-BZMYB75M.js');
|
|
|
7
7
|
var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkPBN7PKGEjs = require('./chunk-PBN7PKGE.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -59,7 +59,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
59
59
|
await _devkit.formatFiles.call(void 0, tree);
|
|
60
60
|
return null;
|
|
61
61
|
}
|
|
62
|
-
var generator_default =
|
|
62
|
+
var generator_default = _chunkPBN7PKGEjs.withRunGenerator.call(void 0,
|
|
63
63
|
"TypeScript Library Creator (NodeJs Platform)",
|
|
64
64
|
nodeLibraryGeneratorFn,
|
|
65
65
|
{
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkCK3BPORZjs = require('./chunk-CK3BPORZ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOS24C67Pjs = require('./chunk-OS24C67P.js');
|
|
7
7
|
|
|
8
8
|
// src/executors/typia/executor.ts
|
|
9
9
|
var _fsextra = require('fs-extra');
|
|
10
10
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
11
11
|
async function typiaExecutorFn(options, _, config) {
|
|
12
12
|
if (options.clean !== false) {
|
|
13
|
-
|
|
13
|
+
_chunkOS24C67Pjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
14
14
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
15
15
|
}
|
|
16
16
|
await Promise.all(
|
|
17
17
|
options.entry.map((entry) => {
|
|
18
|
-
|
|
18
|
+
_chunkOS24C67Pjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
19
19
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
20
20
|
input: entry,
|
|
21
21
|
output: options.outputPath,
|
|
@@ -27,7 +27,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
27
27
|
success: true
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
var executor_default =
|
|
30
|
+
var executor_default = _chunkCK3BPORZjs.withRunExecutor.call(void 0,
|
|
31
31
|
"Typia runtime validation generator",
|
|
32
32
|
typiaExecutorFn,
|
|
33
33
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3UVFXL7Ijs = require('./chunk-3UVFXL7I.js');
|
|
4
4
|
|
|
5
5
|
// src/release/js-version-actions.ts
|
|
6
6
|
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
@@ -24,7 +24,7 @@ var StormJsVersionActions = (_class = class extends _versionactionsjs2.default {
|
|
|
24
24
|
* @params tree - The file system tree to read from.
|
|
25
25
|
*/
|
|
26
26
|
async init(tree) {
|
|
27
|
-
this.workspaceConfig = await
|
|
27
|
+
this.workspaceConfig = await _chunk3UVFXL7Ijs.getWorkspaceConfig.call(void 0, );
|
|
28
28
|
return super.init(tree);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2LSF54ZF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J3V2XDUI.mjs";
|
|
7
7
|
|
|
8
8
|
// src/executors/size-limit/executor.ts
|
|
9
9
|
import { joinPathFragments } from "@nx/devkit";
|
|
@@ -62,6 +62,35 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
62
62
|
gradient: ["#1fb2a6", "#db2777", "#818cf8"]
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
+
function getColors(config) {
|
|
66
|
+
if (!_optionalChain([config, 'optionalAccess', _2 => _2.colors]) || typeof config.colors !== "object" || !config.colors["dark"] && (!config.colors["base"] || typeof config.colors !== "object" || !_optionalChain([config, 'access', _3 => _3.colors, 'access', _4 => _4["base"], 'optionalAccess', _5 => _5["dark"]]))) {
|
|
67
|
+
return DEFAULT_COLOR_CONFIG;
|
|
68
|
+
}
|
|
69
|
+
if (config.colors["base"]) {
|
|
70
|
+
if (typeof config.colors["base"]["dark"] === "object") {
|
|
71
|
+
return config.colors["base"]["dark"];
|
|
72
|
+
} else if (config.colors["base"]["dark"] === "string") {
|
|
73
|
+
return config.colors["base"];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (typeof config.colors["dark"] === "object") {
|
|
77
|
+
return config.colors["dark"];
|
|
78
|
+
}
|
|
79
|
+
return _nullishCoalesce(config.colors, () => ( DEFAULT_COLOR_CONFIG));
|
|
80
|
+
}
|
|
81
|
+
function getColor(key, config) {
|
|
82
|
+
const colors = getColors(config);
|
|
83
|
+
const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || DEFAULT_COLOR_CONFIG["dark"][key] || DEFAULT_COLOR_CONFIG[key];
|
|
84
|
+
if (result) {
|
|
85
|
+
return result;
|
|
86
|
+
}
|
|
87
|
+
if (key === "link" || key === "debug") {
|
|
88
|
+
return getColor("info", config);
|
|
89
|
+
} else if (key === "fatal") {
|
|
90
|
+
return getColor("danger", config);
|
|
91
|
+
}
|
|
92
|
+
return getColor("brand", config);
|
|
93
|
+
}
|
|
65
94
|
|
|
66
95
|
// ../config-tools/src/logger/chalk.ts
|
|
67
96
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
@@ -90,7 +119,7 @@ var chalkDefault = {
|
|
|
90
119
|
};
|
|
91
120
|
var getChalk = () => {
|
|
92
121
|
let _chalk = _chalk3.default;
|
|
93
|
-
if (!_optionalChain([_chalk, 'optionalAccess',
|
|
122
|
+
if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright]) || !_optionalChain([_chalk, 'optionalAccess', _11 => _11.white])) {
|
|
94
123
|
_chalk = chalkDefault;
|
|
95
124
|
}
|
|
96
125
|
return _chalk;
|
|
@@ -178,7 +207,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
178
207
|
|
|
179
208
|
// ../config-tools/src/logger/console.ts
|
|
180
209
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
181
|
-
const colors = !_optionalChain([config, 'access',
|
|
210
|
+
const colors = !_optionalChain([config, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13.dark]) && !_optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) && !_optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"], 'optionalAccess', _23 => _23.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _24 => _24.colors, 'optionalAccess', _25 => _25["base"]]) ? _optionalChain([config, 'access', _26 => _26.colors, 'optionalAccess', _27 => _27["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
182
211
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
183
212
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
184
213
|
return (_) => {
|
|
@@ -323,11 +352,13 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
|
|
|
323
352
|
};
|
|
324
353
|
var _isFunction = (value) => {
|
|
325
354
|
try {
|
|
326
|
-
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess',
|
|
355
|
+
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _28 => _28.constructor]) && _optionalChain([value, 'optionalAccess', _29 => _29.call]) && _optionalChain([value, 'optionalAccess', _30 => _30.apply]));
|
|
327
356
|
} catch (e) {
|
|
328
357
|
return false;
|
|
329
358
|
}
|
|
330
359
|
};
|
|
360
|
+
var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("\u{1F5F2}");
|
|
361
|
+
|
|
331
362
|
|
|
332
363
|
|
|
333
364
|
|
|
@@ -342,4 +373,4 @@ var _isFunction = (value) => {
|
|
|
342
373
|
|
|
343
374
|
|
|
344
375
|
|
|
345
|
-
exports.LogLevel = LogLevel; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage;
|
|
376
|
+
exports.LogLevel = LogLevel; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage; exports.brandIcon = brandIcon;
|