@storm-software/workspace-tools 1.295.78 → 1.295.80
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/config/base.json +20 -1
- package/config/recommended.json +20 -1
- package/dist/{chunk-XT7T25QQ.js → chunk-2DU5WLFW.js} +2 -2
- package/dist/{chunk-BEZE4GFI.mjs → chunk-2IIPHTTD.mjs} +1 -1
- package/dist/{chunk-75H7T5KM.mjs → chunk-34HAURDJ.mjs} +2 -2
- package/dist/{chunk-VGLDTD5U.mjs → chunk-3HLM3WH4.mjs} +1 -1
- package/dist/{chunk-L4SZWD3D.js → chunk-3OHXS6GF.js} +2 -2
- package/dist/{chunk-KM43UGU6.mjs → chunk-3SPI2WQG.mjs} +2 -2
- package/dist/{chunk-X777ZFHU.js → chunk-3VO4IR6L.js} +5 -5
- package/dist/{chunk-CHHDG2MX.js → chunk-4CDTCMWG.js} +10 -10
- package/dist/{chunk-YZVCSH3T.mjs → chunk-4UF246OR.mjs} +2 -2
- package/dist/{chunk-HE55HJHZ.mjs → chunk-53OPQNZ5.mjs} +1 -1
- package/dist/{chunk-5WFZQ5JS.mjs → chunk-6COBTQS2.mjs} +1 -1
- package/dist/{chunk-H75JKG5Z.mjs → chunk-6DAVAUBH.mjs} +4 -4
- package/dist/{chunk-TLWPXL7M.mjs → chunk-6VHUT2ZQ.mjs} +1 -1
- package/dist/{chunk-2FQIDYBN.js → chunk-7CNSBQ4W.js} +12 -12
- package/dist/{chunk-J2TZAZ76.js → chunk-7UALMGKJ.js} +17 -17
- package/dist/{chunk-KSL6QUB7.js → chunk-ASHUCOUY.js} +21 -21
- package/dist/{chunk-OAST6ITX.mjs → chunk-B44XYUQZ.mjs} +1 -1
- package/dist/{chunk-Q5FLBXGL.js → chunk-BAF4ETQS.js} +4 -4
- package/dist/{chunk-K2QPHBGO.js → chunk-BELK3USL.js} +6 -6
- package/dist/{chunk-KW6T252F.mjs → chunk-BMFYH5B6.mjs} +3 -3
- package/dist/{chunk-7Y4HTTCH.js → chunk-BPH3XDOT.js} +2 -2
- package/dist/{chunk-42LESXB3.mjs → chunk-BPKBADYL.mjs} +1 -1
- package/dist/{chunk-MNFKXDV6.mjs → chunk-CFVJXWU6.mjs} +2 -2
- package/dist/{chunk-AFZKYL2P.mjs → chunk-ENGUMHAC.mjs} +2 -2
- package/dist/{chunk-FAMMSDNC.js → chunk-FPXWV76I.js} +2 -2
- package/dist/{chunk-6ECSUXBH.mjs → chunk-GHEVOUU5.mjs} +1 -1
- package/dist/{chunk-AJSJ2JR6.mjs → chunk-GKWQPCBM.mjs} +1 -1
- package/dist/{chunk-HLULZNA6.mjs → chunk-GQTT2YEC.mjs} +1 -1
- package/dist/{chunk-CW4MH5E2.mjs → chunk-H3RZ4Q4R.mjs} +2 -2
- package/dist/{chunk-5M7Q5AGZ.js → chunk-HMNBJL7E.js} +30 -30
- package/dist/{chunk-35KAXAXF.js → chunk-INELQLPN.js} +34 -34
- package/dist/{chunk-HXRTQR3U.js → chunk-ISNATBTG.js} +2 -2
- package/dist/{chunk-FSSGFERS.js → chunk-JW2WBPGH.js} +2 -2
- package/dist/{chunk-CHUFDTF4.js → chunk-KFJJDYCQ.js} +11 -11
- package/dist/{chunk-BE6YVKCO.js → chunk-KLG3FYHP.js} +2 -2
- package/dist/{chunk-TEYNJ3L6.mjs → chunk-KYHKGHIE.mjs} +6 -2
- package/dist/{chunk-RK2R4IGP.js → chunk-L6TB654Q.js} +2 -2
- package/dist/{chunk-3ZYXVFDI.mjs → chunk-LMIJYAHA.mjs} +2 -2
- package/dist/{chunk-WNPTYHA4.js → chunk-LY5NCULF.js} +5 -5
- package/dist/{chunk-VSWADZIP.mjs → chunk-MYUYK7QF.mjs} +1 -1
- package/dist/{chunk-UIRPA76V.js → chunk-NHVYO5AW.js} +4 -4
- package/dist/{chunk-IDQYPP4E.js → chunk-NJKJ2CMC.js} +2 -2
- package/dist/{chunk-CSZ34LXS.mjs → chunk-OE3OEQFG.mjs} +1 -1
- package/dist/{chunk-IPVDQCJ4.js → chunk-OEMAV2M6.js} +2 -2
- package/dist/{chunk-42RN7JZQ.mjs → chunk-OPOIT2ZX.mjs} +1 -1
- package/dist/{chunk-HU3JD26C.mjs → chunk-OVQR7R35.mjs} +1 -1
- package/dist/{chunk-OPW7VZL2.mjs → chunk-PSKG5FDV.mjs} +1 -1
- package/dist/{chunk-5QE6QZLL.js → chunk-RMX3UJAR.js} +6 -2
- package/dist/{chunk-24WGOY7M.js → chunk-XVYSFNZO.js} +2 -2
- package/dist/{chunk-GOCSQYEA.mjs → chunk-YUR3X2R3.mjs} +2 -2
- package/dist/{chunk-QKLKDDTU.js → chunk-YVWONRVB.js} +2 -2
- package/dist/{chunk-TFTJEDAM.mjs → chunk-ZBGKIIMY.mjs} +4 -4
- package/dist/{chunk-KMBE3TLK.js → chunk-ZHF2EPUB.js} +4 -4
- package/dist/{chunk-JINU7C4X.js → chunk-ZSKE7MPR.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 +10 -10
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHXQRGLIIjs = require('./chunk-HXQRGLII.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4CDTCMWGjs = require('./chunk-4CDTCMWG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -15,7 +15,7 @@ var _chunkCHHDG2MXjs = require('./chunk-CHHDG2MX.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkRMX3UJARjs = require('./chunk-RMX3UJAR.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -23,7 +23,7 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
23
23
|
// src/base/base-executor.ts
|
|
24
24
|
var _defu = require('defu');
|
|
25
25
|
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkRMX3UJARjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config = {};
|
|
29
29
|
try {
|
|
@@ -37,12 +37,12 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
37
37
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
38
38
|
const projectName = context.projectName;
|
|
39
39
|
config.workspaceRoot = workspaceRoot;
|
|
40
|
-
|
|
41
|
-
`${
|
|
40
|
+
_chunkRMX3UJARjs.writeInfo.call(void 0,
|
|
41
|
+
`${_chunkRMX3UJARjs.brandIcon.call(void 0, config)} Running the ${name} executor for ${projectName} `,
|
|
42
42
|
config
|
|
43
43
|
);
|
|
44
44
|
if (!executorOptions.skipReadingConfig) {
|
|
45
|
-
|
|
45
|
+
_chunkRMX3UJARjs.writeTrace.call(void 0,
|
|
46
46
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
47
47
|
- workspaceRoot: ${workspaceRoot}
|
|
48
48
|
- projectRoot: ${projectRoot}
|
|
@@ -51,18 +51,18 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
51
51
|
`,
|
|
52
52
|
config
|
|
53
53
|
);
|
|
54
|
-
config = await
|
|
54
|
+
config = await _chunk4CDTCMWGjs.getConfig.call(void 0, workspaceRoot);
|
|
55
55
|
}
|
|
56
56
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
57
|
-
|
|
57
|
+
_chunkRMX3UJARjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
58
58
|
options = await Promise.resolve(
|
|
59
59
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
60
60
|
);
|
|
61
|
-
|
|
61
|
+
_chunkRMX3UJARjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
_chunkRMX3UJARjs.writeTrace.call(void 0,
|
|
64
64
|
`Executor schema options \u2699\uFE0F
|
|
65
|
-
${
|
|
65
|
+
${_chunkRMX3UJARjs.formatLogMessage.call(void 0, options)}
|
|
66
66
|
`,
|
|
67
67
|
config
|
|
68
68
|
);
|
|
@@ -75,18 +75,18 @@ ${_chunk5QE6QZLLjs.formatLogMessage.call(void 0, options)}
|
|
|
75
75
|
),
|
|
76
76
|
_chunkHXQRGLIIjs.applyWorkspaceProjectTokens
|
|
77
77
|
);
|
|
78
|
-
|
|
78
|
+
_chunkRMX3UJARjs.writeTrace.call(void 0,
|
|
79
79
|
`Executor schema tokenized options \u2699\uFE0F
|
|
80
|
-
${
|
|
80
|
+
${_chunkRMX3UJARjs.formatLogMessage.call(void 0, tokenized)}
|
|
81
81
|
`,
|
|
82
82
|
config
|
|
83
83
|
);
|
|
84
84
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
85
|
-
|
|
85
|
+
_chunkRMX3UJARjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
86
86
|
await Promise.resolve(
|
|
87
87
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
88
88
|
);
|
|
89
|
-
|
|
89
|
+
_chunkRMX3UJARjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
90
90
|
}
|
|
91
91
|
const ret = executorFn(tokenized, context, config);
|
|
92
92
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -101,7 +101,7 @@ ${_chunk5QE6QZLLjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
101
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")) {
|
|
102
102
|
throw new Error(
|
|
103
103
|
`Failure determined while running the ${name} executor
|
|
104
|
-
${
|
|
104
|
+
${_chunkRMX3UJARjs.formatLogMessage.call(void 0,
|
|
105
105
|
result
|
|
106
106
|
)}`,
|
|
107
107
|
{
|
|
@@ -110,21 +110,21 @@ ${_chunk5QE6QZLLjs.formatLogMessage.call(void 0,
|
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
112
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
113
|
-
|
|
113
|
+
_chunkRMX3UJARjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
114
114
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
115
|
-
|
|
115
|
+
_chunkRMX3UJARjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
_chunkRMX3UJARjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
118
118
|
`, config);
|
|
119
119
|
return {
|
|
120
120
|
success: true
|
|
121
121
|
};
|
|
122
122
|
} catch (error) {
|
|
123
|
-
|
|
123
|
+
_chunkRMX3UJARjs.writeFatal.call(void 0,
|
|
124
124
|
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
125
125
|
config
|
|
126
126
|
);
|
|
127
|
-
|
|
127
|
+
_chunkRMX3UJARjs.writeError.call(void 0,
|
|
128
128
|
`An exception was thrown in the executor's process
|
|
129
129
|
- Details: ${error.message}
|
|
130
130
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkASHUCOUYjs = require('./chunk-ASHUCOUY.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkRMX3UJARjs = require('./chunk-RMX3UJAR.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -12,7 +12,7 @@ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
|
12
12
|
var _defu = require('defu');
|
|
13
13
|
var _jiti = require('jiti');
|
|
14
14
|
async function unbuildExecutorFn(options, context, config) {
|
|
15
|
-
|
|
15
|
+
_chunkRMX3UJARjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
16
16
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
17
17
|
throw new Error(
|
|
18
18
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -80,7 +80,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
80
80
|
success: true
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
var executor_default =
|
|
83
|
+
var executor_default = _chunkASHUCOUYjs.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -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 _chunkRMX3UJARjs = require('./chunk-RMX3UJAR.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -54,7 +54,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
54
54
|
output: "src/"
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
_chunkRMX3UJARjs.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
|
+
_chunkRMX3UJARjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
70
70
|
if (includeSrc === true) {
|
|
71
|
-
|
|
71
|
+
_chunkRMX3UJARjs.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
|
+
_chunkRMX3UJARjs.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
|
+
_chunkRMX3UJARjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
204
204
|
}
|
|
205
205
|
return packageJson;
|
|
206
206
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YUR3X2R3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
schemaRegistry,
|
|
6
6
|
workspaceConfigSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OVQR7R35.mjs";
|
|
8
8
|
import {
|
|
9
9
|
writeInfo,
|
|
10
10
|
writeSuccess,
|
|
11
11
|
writeTrace
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KYHKGHIE.mjs";
|
|
13
13
|
import {
|
|
14
14
|
findWorkspaceRoot
|
|
15
15
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkASHUCOUYjs = require('./chunk-ASHUCOUY.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-clippy/executor.ts
|
|
10
10
|
async function cargoClippyExecutor(options, context) {
|
|
11
11
|
const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "clippy", options, context);
|
|
12
12
|
return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkASHUCOUYjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Clippy",
|
|
16
16
|
cargoClippyExecutor,
|
|
17
17
|
{
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-GKLFEOKK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
withRunExecutor
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LMIJYAHA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
writeDebug
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KYHKGHIE.mjs";
|
|
10
10
|
import {
|
|
11
11
|
correctPaths,
|
|
12
12
|
isAbsolute,
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkASHUCOUYjs = require('./chunk-ASHUCOUY.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-build/executor.ts
|
|
10
10
|
async function cargoBuildExecutor(options, context) {
|
|
11
11
|
const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "build", options, context);
|
|
12
12
|
return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkASHUCOUYjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Build",
|
|
16
16
|
cargoBuildExecutor,
|
|
17
17
|
{
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
parseCargoToml,
|
|
6
6
|
parseCargoTomlWithTree,
|
|
7
7
|
stringifyCargoToml
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-B44XYUQZ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getWorkspaceConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OVQR7R35.mjs";
|
|
12
12
|
|
|
13
13
|
// src/release/rust-version-actions.ts
|
|
14
14
|
import {
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkBELK3USLjs = require('./chunk-BELK3USL.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkASHUCOUYjs = require('./chunk-ASHUCOUY.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk4CDTCMWGjs = require('./chunk-4CDTCMWG.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -20,7 +20,7 @@ var _chunkCHHDG2MXjs = require('./chunk-CHHDG2MX.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkRMX3UJARjs = require('./chunk-RMX3UJAR.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -80,11 +80,11 @@ var resolveOptions = async (userOptions) => {
|
|
|
80
80
|
if (!workspaceRoot) {
|
|
81
81
|
throw new Error("Cannot find Nx workspace root");
|
|
82
82
|
}
|
|
83
|
-
const workspaceConfig = await
|
|
83
|
+
const workspaceConfig = await _chunk4CDTCMWGjs.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
84
84
|
workspaceRoot
|
|
85
85
|
});
|
|
86
|
-
|
|
87
|
-
const stopwatch =
|
|
86
|
+
_chunkRMX3UJARjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
87
|
+
const stopwatch = _chunkRMX3UJARjs.getStopwatch.call(void 0, "Build options resolution");
|
|
88
88
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
89
89
|
exitOnError: true
|
|
90
90
|
});
|
|
@@ -118,7 +118,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
118
118
|
const result = {
|
|
119
119
|
name: projectName,
|
|
120
120
|
mode: "production",
|
|
121
|
-
target:
|
|
121
|
+
target: _chunkBELK3USLjs.DEFAULT_TARGET,
|
|
122
122
|
generatePackageJson: true,
|
|
123
123
|
outDir: _chunkCQDBLKPFjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
124
124
|
minify: !debug,
|
|
@@ -150,15 +150,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
150
150
|
};
|
|
151
151
|
result.env = _defu2.default.call(void 0,
|
|
152
152
|
options.env,
|
|
153
|
-
|
|
153
|
+
_chunkBELK3USLjs.getEnv.call(void 0, "tsdown", result)
|
|
154
154
|
);
|
|
155
155
|
stopwatch();
|
|
156
156
|
return result;
|
|
157
157
|
};
|
|
158
158
|
async function generatePackageJson(options) {
|
|
159
159
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
160
|
-
|
|
161
|
-
const stopwatch =
|
|
160
|
+
_chunkRMX3UJARjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
161
|
+
const stopwatch = _chunkRMX3UJARjs.getStopwatch.call(void 0, "Write package.json file");
|
|
162
162
|
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
163
163
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
164
164
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -175,13 +175,13 @@ async function generatePackageJson(options) {
|
|
|
175
175
|
throw new Error("Cannot find package.json configuration file");
|
|
176
176
|
}
|
|
177
177
|
let packageJson = JSON.parse(packageJsonFile);
|
|
178
|
-
packageJson = await
|
|
178
|
+
packageJson = await _chunkBELK3USLjs.addPackageDependencies.call(void 0,
|
|
179
179
|
options.workspaceConfig.workspaceRoot,
|
|
180
180
|
options.projectRoot,
|
|
181
181
|
options.projectName,
|
|
182
182
|
packageJson
|
|
183
183
|
);
|
|
184
|
-
packageJson = await
|
|
184
|
+
packageJson = await _chunkBELK3USLjs.addWorkspacePackageJsonFields.call(void 0,
|
|
185
185
|
options.workspaceConfig,
|
|
186
186
|
options.projectRoot,
|
|
187
187
|
options.sourceRoot,
|
|
@@ -191,7 +191,7 @@ async function generatePackageJson(options) {
|
|
|
191
191
|
);
|
|
192
192
|
packageJson.exports ??= {};
|
|
193
193
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
194
|
-
packageJson.exports["."] ??=
|
|
194
|
+
packageJson.exports["."] ??= _chunkBELK3USLjs.addPackageJsonExport.call(void 0,
|
|
195
195
|
"index",
|
|
196
196
|
packageJson.type,
|
|
197
197
|
options.sourceRoot
|
|
@@ -207,7 +207,7 @@ async function generatePackageJson(options) {
|
|
|
207
207
|
const split = entryPoint.out.split(".");
|
|
208
208
|
split.pop();
|
|
209
209
|
const entry2 = split.join(".").replaceAll("\\", "/");
|
|
210
|
-
packageJson.exports[`./${entry2}`] ??=
|
|
210
|
+
packageJson.exports[`./${entry2}`] ??= _chunkBELK3USLjs.addPackageJsonExport.call(void 0,
|
|
211
211
|
entry2,
|
|
212
212
|
options.fixedExtension ? "fixed" : packageJson.type,
|
|
213
213
|
options.sourceRoot
|
|
@@ -232,8 +232,8 @@ async function generatePackageJson(options) {
|
|
|
232
232
|
return options;
|
|
233
233
|
}
|
|
234
234
|
async function executeTSDown(options) {
|
|
235
|
-
|
|
236
|
-
const stopwatch =
|
|
235
|
+
_chunkRMX3UJARjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
236
|
+
const stopwatch = _chunkRMX3UJARjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
237
237
|
await _tsdown.build.call(void 0, {
|
|
238
238
|
...options,
|
|
239
239
|
entry: options.entry,
|
|
@@ -243,12 +243,12 @@ async function executeTSDown(options) {
|
|
|
243
243
|
return options;
|
|
244
244
|
}
|
|
245
245
|
async function copyBuildAssets(options) {
|
|
246
|
-
|
|
246
|
+
_chunkRMX3UJARjs.writeDebug.call(void 0,
|
|
247
247
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
248
248
|
options.workspaceConfig
|
|
249
249
|
);
|
|
250
|
-
const stopwatch =
|
|
251
|
-
await
|
|
250
|
+
const stopwatch = _chunkRMX3UJARjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
251
|
+
await _chunkBELK3USLjs.copyAssets.call(void 0,
|
|
252
252
|
options.workspaceConfig,
|
|
253
253
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
254
254
|
options.outDir,
|
|
@@ -261,18 +261,18 @@ async function copyBuildAssets(options) {
|
|
|
261
261
|
return options;
|
|
262
262
|
}
|
|
263
263
|
async function reportResults(options) {
|
|
264
|
-
|
|
264
|
+
_chunkRMX3UJARjs.writeSuccess.call(void 0,
|
|
265
265
|
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
266
266
|
options.workspaceConfig
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
269
|
async function cleanOutputPath(options) {
|
|
270
270
|
if (options.clean !== false && options.workspaceConfig) {
|
|
271
|
-
|
|
271
|
+
_chunkRMX3UJARjs.writeDebug.call(void 0,
|
|
272
272
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
273
273
|
options.workspaceConfig
|
|
274
274
|
);
|
|
275
|
-
const stopwatch =
|
|
275
|
+
const stopwatch = _chunkRMX3UJARjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
276
276
|
await cleanDirectories(
|
|
277
277
|
options.name,
|
|
278
278
|
options.outDir,
|
|
@@ -283,8 +283,8 @@ async function cleanOutputPath(options) {
|
|
|
283
283
|
return options;
|
|
284
284
|
}
|
|
285
285
|
async function build(options) {
|
|
286
|
-
|
|
287
|
-
const stopwatch =
|
|
286
|
+
_chunkRMX3UJARjs.writeDebug.call(void 0, ` ${_chunkRMX3UJARjs.brandIcon.call(void 0, )} Executing Storm TSDown pipeline`);
|
|
287
|
+
const stopwatch = _chunkRMX3UJARjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
288
288
|
try {
|
|
289
289
|
const opts = Array.isArray(options) ? options : [options];
|
|
290
290
|
if (opts.length === 0) {
|
|
@@ -304,13 +304,13 @@ async function build(options) {
|
|
|
304
304
|
})
|
|
305
305
|
);
|
|
306
306
|
} else {
|
|
307
|
-
|
|
307
|
+
_chunkRMX3UJARjs.writeWarning.call(void 0,
|
|
308
308
|
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
309
309
|
);
|
|
310
310
|
}
|
|
311
|
-
|
|
311
|
+
_chunkRMX3UJARjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
312
312
|
} catch (error) {
|
|
313
|
-
|
|
313
|
+
_chunkRMX3UJARjs.writeFatal.call(void 0,
|
|
314
314
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
315
315
|
);
|
|
316
316
|
throw error;
|
|
@@ -321,7 +321,7 @@ async function build(options) {
|
|
|
321
321
|
|
|
322
322
|
// src/executors/tsdown/executor.ts
|
|
323
323
|
async function tsdownExecutorFn(options, context, config) {
|
|
324
|
-
|
|
324
|
+
_chunkRMX3UJARjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
325
325
|
if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
|
|
326
326
|
throw new Error(
|
|
327
327
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -342,7 +342,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
342
342
|
success: true
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
var executor_default =
|
|
345
|
+
var executor_default = _chunkASHUCOUYjs.withRunExecutor.call(void 0,
|
|
346
346
|
"Storm TSDown build",
|
|
347
347
|
tsdownExecutorFn,
|
|
348
348
|
{
|