@storm-software/workspace-tools 1.294.25 → 1.294.26
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 +11 -0
- package/dist/{chunk-C2V3ONEW.mjs → chunk-23AG7J6K.mjs} +1 -1
- package/dist/{chunk-BW353I42.mjs → chunk-2HFE4IAT.mjs} +1 -1
- package/dist/{chunk-UVPMJRGC.js → chunk-3ATRPILH.js} +2 -2
- package/dist/{chunk-QKU75RHX.js → chunk-4XMMNPEO.js} +2 -2
- package/dist/{chunk-DK64V7OM.js → chunk-5ZHH2FNQ.js} +10 -10
- package/dist/{chunk-GLXI6TSE.js → chunk-626FPLUP.js} +6 -6
- package/dist/{chunk-R5P7EFSH.mjs → chunk-AH5TFWCI.mjs} +1 -1
- package/dist/{chunk-7ME734DI.mjs → chunk-AXBRZDW7.mjs} +1 -1
- package/dist/{chunk-R55AVCBI.mjs → chunk-BFUD5R7Y.mjs} +1 -1
- package/dist/{chunk-3S3ECO2P.js → chunk-C4ETRYH2.js} +20 -20
- package/dist/{chunk-PLJLDJO3.mjs → chunk-CVWXJRXD.mjs} +1 -1
- package/dist/{chunk-4F7QVAV4.mjs → chunk-DONUBURB.mjs} +1 -1
- package/dist/{chunk-GSNIJD6H.mjs → chunk-DQQPNY3P.mjs} +2 -2
- package/dist/{chunk-K45IJANL.mjs → chunk-EIHVLRYO.mjs} +1 -1
- package/dist/{chunk-4BLFRRAU.js → chunk-ETSXRU6M.js} +12 -12
- package/dist/{chunk-CDE6PVTR.js → chunk-FAOWNWQO.js} +2 -2
- package/dist/{chunk-3TNILWMY.mjs → chunk-FAYJOHW6.mjs} +1 -1
- package/dist/{chunk-5UC3BYGW.mjs → chunk-FIAY4XVI.mjs} +1 -1
- package/dist/{chunk-XQR4GBDW.mjs → chunk-FLEL6HL3.mjs} +2 -2
- package/dist/{chunk-JWBCOV5V.mjs → chunk-GL7AEMWH.mjs} +2 -2
- package/dist/{chunk-U7DOJ5Z4.js → chunk-GQUC7Z5A.js} +2 -2
- package/dist/{chunk-2NJGL2TI.js → chunk-H2IQPKCX.js} +30 -30
- package/dist/{chunk-ZLJDMEVQ.js → chunk-HRSYZ5SJ.js} +2 -2
- package/dist/{chunk-JFFINA6G.mjs → chunk-HTZWMLHS.mjs} +3 -3
- package/dist/{chunk-4NAHZGF2.js → chunk-HUOI4PBW.js} +2 -2
- package/dist/{chunk-TBEXCUCY.js → chunk-I3IVGDHX.js} +11 -11
- package/dist/{chunk-FS5FXBEU.mjs → chunk-I4TZ6K5F.mjs} +1 -1
- package/dist/{chunk-GXUESV2V.js → chunk-I7VI4LB4.js} +2 -2
- package/dist/{chunk-HWZH4YPQ.mjs → chunk-JMG57VVQ.mjs} +1 -1
- package/dist/{chunk-CA46YTWV.mjs → chunk-JP5HZTAF.mjs} +2 -2
- package/dist/{chunk-2RVRHK5X.js → chunk-JV6AKQ47.js} +34 -34
- package/dist/{chunk-Q73EB4Y6.js → chunk-LN2ISRNV.js} +4 -4
- package/dist/{chunk-XEMXSQHD.js → chunk-LQLB23MA.js} +5 -5
- package/dist/{chunk-OF2KR2GF.js → chunk-LS6TILJC.js} +2 -2
- package/dist/{chunk-C6VRM4FR.js → chunk-MJPVYBME.js} +1 -1
- package/dist/{chunk-Q4Z7ZWH2.mjs → chunk-MJU4W4C7.mjs} +4 -4
- package/dist/{chunk-QR3G4OD6.mjs → chunk-NWXPYUQ3.mjs} +1 -1
- package/dist/{chunk-6FLLUGUF.mjs → chunk-OAWHJHVS.mjs} +2 -2
- package/dist/{chunk-4HTNEKMP.mjs → chunk-P37IUTEP.mjs} +1 -1
- package/dist/{chunk-GPGFEHZS.js → chunk-PED6YPOF.js} +4 -4
- package/dist/{chunk-54TSX5JF.mjs → chunk-QJEODVLU.mjs} +1 -1
- package/dist/{chunk-NSD4P5QK.js → chunk-R6OKTOPG.js} +5 -5
- package/dist/{chunk-C7JD44IU.js → chunk-RDLWCD3X.js} +2 -2
- package/dist/{chunk-Q2S3VKFE.js → chunk-SQ7YVBPN.js} +2 -2
- package/dist/{chunk-5WAINHJG.mjs → chunk-TSATJMLT.mjs} +4 -4
- package/dist/{chunk-LYU4P6X3.mjs → chunk-V5BPSX25.mjs} +2 -2
- package/dist/{chunk-U6J37DIY.mjs → chunk-V5L2NMX3.mjs} +2 -2
- package/dist/{chunk-CQ4XK3KB.js → chunk-V6KF2MA3.js} +16 -16
- package/dist/{chunk-ERW6FMLX.js → chunk-WJAIY3X6.js} +2 -2
- package/dist/{chunk-XXZQGOLV.mjs → chunk-XOC54MDY.mjs} +1 -1
- package/dist/{chunk-PMRFT5WV.js → chunk-XRVFIF7Q.js} +2 -2
- package/dist/{chunk-GRTWE432.mjs → chunk-YI34TEVO.mjs} +1 -1
- package/dist/{chunk-LL2ZDCBE.js → chunk-YRHOGXG2.js} +2 -2
- package/dist/{chunk-OEDORFRQ.js → chunk-YRHSIXS4.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 +8 -8
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkC4ETRYH2js = require('./chunk-C4ETRYH2.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkMJPVYBMEjs = require('./chunk-MJPVYBME.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
|
+
_chunkMJPVYBMEjs.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
|
+
_chunkMJPVYBMEjs.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 = _chunkC4ETRYH2js.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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkXRVFIF7Qjs = require('./chunk-XRVFIF7Q.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/cargo-publish/executor.ts
|
|
6
6
|
var _devkit = require('@nx/devkit');
|
|
@@ -25,7 +25,7 @@ async function runExecutor(options, context) {
|
|
|
25
25
|
context.root,
|
|
26
26
|
options.packageRoot ? options.packageRoot : root
|
|
27
27
|
);
|
|
28
|
-
const cargoToml =
|
|
28
|
+
const cargoToml = _chunkXRVFIF7Qjs.parseCargoToml.call(void 0,
|
|
29
29
|
_fs.readFileSync.call(void 0, _devkit.joinPathFragments.call(void 0, packageRoot, "Cargo.toml"), "utf-8")
|
|
30
30
|
);
|
|
31
31
|
try {
|
|
@@ -111,7 +111,7 @@ function isUnicodeSupported() {
|
|
|
111
111
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
112
112
|
var CONSOLE_ICONS = {
|
|
113
113
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
114
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
114
|
+
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
115
115
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
116
116
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
117
117
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
addWorkspacePackageJsonFields,
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEnv
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EIHVLRYO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
withRunExecutor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-V5BPSX25.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getWorkspaceConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AH5TFWCI.mjs";
|
|
15
15
|
import {
|
|
16
16
|
formatLogMessage,
|
|
17
17
|
getStopwatch,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
writeInfo,
|
|
22
22
|
writeSuccess,
|
|
23
23
|
writeWarning
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NWXPYUQ3.mjs";
|
|
25
25
|
import {
|
|
26
26
|
joinPaths
|
|
27
27
|
} from "./chunk-TBW5MCN6.mjs";
|
|
@@ -111,7 +111,7 @@ function isUnicodeSupported() {
|
|
|
111
111
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
112
112
|
var CONSOLE_ICONS = {
|
|
113
113
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
114
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
114
|
+
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
115
115
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
116
116
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
117
117
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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 _chunkRDLWCD3Xjs = require('./chunk-RDLWCD3X.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5ZHH2FNQjs = require('./chunk-5ZHH2FNQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -35,7 +35,7 @@ async function getNpmRegistry() {
|
|
|
35
35
|
if (process.env.STORM_REGISTRY_NPM) {
|
|
36
36
|
return process.env.STORM_REGISTRY_NPM;
|
|
37
37
|
}
|
|
38
|
-
const workspaceConfig = await
|
|
38
|
+
const workspaceConfig = await _chunk5ZHH2FNQjs.getConfig.call(void 0, );
|
|
39
39
|
if (_optionalChain([workspaceConfig, 'optionalAccess', _ => _.registry, 'optionalAccess', _2 => _2.npm])) {
|
|
40
40
|
return _optionalChain([workspaceConfig, 'optionalAccess', _3 => _3.registry, 'optionalAccess', _4 => _4.npm]);
|
|
41
41
|
}
|
|
@@ -315,7 +315,7 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
315
315
|
return { success: true };
|
|
316
316
|
}
|
|
317
317
|
await replaceDepsAliases(packageRoot, context.root);
|
|
318
|
-
await
|
|
318
|
+
await _chunkRDLWCD3Xjs.addPackageJsonGitHead.call(void 0, packageRoot);
|
|
319
319
|
const npmPublishCommandSegments = [`npm publish --json`];
|
|
320
320
|
const npmViewCommandSegments = [
|
|
321
321
|
`npm view ${packageName} versions dist-tags --json`
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkC4ETRYH2js = require('./chunk-C4ETRYH2.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkMJPVYBMEjs = require('./chunk-MJPVYBME.js');
|
|
7
7
|
|
|
8
8
|
// src/executors/size-limit/executor.ts
|
|
9
9
|
var _devkit = require('@nx/devkit');
|
|
@@ -17,14 +17,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
17
17
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
_chunkMJPVYBMEjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
21
21
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
22
22
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
23
23
|
_nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")),
|
|
24
24
|
"src"
|
|
25
25
|
)))
|
|
26
26
|
}).then((result) => {
|
|
27
|
-
|
|
27
|
+
_chunkMJPVYBMEjs.writeInfo.call(void 0,
|
|
28
28
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
29
29
|
config
|
|
30
30
|
);
|
|
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
33
33
|
success: true
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunkC4ETRYH2js.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkXRVFIF7Qjs = require('./chunk-XRVFIF7Q.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ var getPackageInfo = (project) => {
|
|
|
31
31
|
) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
|
|
32
32
|
return {
|
|
33
33
|
type: "Cargo.toml",
|
|
34
|
-
content:
|
|
34
|
+
content: _chunkXRVFIF7Qjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
|
|
35
35
|
};
|
|
36
36
|
} else if (_chunkUHTWNVEZjs.isEqualProjectTag.call(void 0,
|
|
37
37
|
project,
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkC4ETRYH2js = require('./chunk-C4ETRYH2.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-check/executor.ts
|
|
10
10
|
async function cargoCheckExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "check", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkC4ETRYH2js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
addWorkspacePackageJsonFields,
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEnv
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EIHVLRYO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
withRunExecutor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-V5BPSX25.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getWorkspaceConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AH5TFWCI.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getStopwatch,
|
|
17
17
|
writeDebug,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
writeInfo,
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NWXPYUQ3.mjs";
|
|
23
23
|
import {
|
|
24
24
|
findWorkspaceRoot
|
|
25
25
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-2QMGYIOO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AH5TFWCI.mjs";
|
|
8
8
|
import {
|
|
9
9
|
formatLogMessage,
|
|
10
10
|
getStopwatch,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
writeInfo,
|
|
15
15
|
writeSuccess,
|
|
16
16
|
writeTrace
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NWXPYUQ3.mjs";
|
|
18
18
|
import {
|
|
19
19
|
findWorkspaceRoot
|
|
20
20
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-2QMGYIOO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AH5TFWCI.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getStopwatch,
|
|
10
10
|
writeDebug,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeSuccess,
|
|
15
15
|
writeTrace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NWXPYUQ3.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHXQRGLIIjs = require('./chunk-HXQRGLII.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5ZHH2FNQjs = require('./chunk-5ZHH2FNQ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ var _chunkDK64V7OMjs = require('./chunk-DK64V7OM.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkMJPVYBMEjs = require('./chunk-MJPVYBME.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -22,30 +22,30 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
22
22
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
23
23
|
skipReadingConfig: false
|
|
24
24
|
}) => async (tree, _options) => {
|
|
25
|
-
const stopwatch =
|
|
25
|
+
const stopwatch = _chunkMJPVYBMEjs.getStopwatch.call(void 0, name);
|
|
26
26
|
let options = _options;
|
|
27
27
|
let config;
|
|
28
28
|
try {
|
|
29
|
-
|
|
29
|
+
_chunkMJPVYBMEjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
30
30
|
|
|
31
31
|
`, config);
|
|
32
32
|
const workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, );
|
|
33
33
|
if (!generatorOptions.skipReadingConfig) {
|
|
34
|
-
|
|
34
|
+
_chunkMJPVYBMEjs.writeDebug.call(void 0,
|
|
35
35
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`,
|
|
37
37
|
config
|
|
38
38
|
);
|
|
39
|
-
config = await
|
|
39
|
+
config = await _chunk5ZHH2FNQjs.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
}
|
|
41
41
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
42
|
-
|
|
42
|
+
_chunkMJPVYBMEjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
43
43
|
options = await Promise.resolve(
|
|
44
44
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
_chunkMJPVYBMEjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
_chunkMJPVYBMEjs.writeTrace.call(void 0,
|
|
49
49
|
`Generator schema options \u2699\uFE0F
|
|
50
50
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
51
51
|
config
|
|
@@ -56,11 +56,11 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
56
56
|
_chunkHXQRGLIIjs.applyWorkspaceBaseTokens
|
|
57
57
|
);
|
|
58
58
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
59
|
-
|
|
59
|
+
_chunkMJPVYBMEjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
60
60
|
await Promise.resolve(
|
|
61
61
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
62
62
|
);
|
|
63
|
-
|
|
63
|
+
_chunkMJPVYBMEjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
64
64
|
}
|
|
65
65
|
const result = await Promise.resolve(
|
|
66
66
|
generatorFn(tree, tokenized, config)
|
|
@@ -75,21 +75,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
78
|
-
|
|
78
|
+
_chunkMJPVYBMEjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
79
79
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
80
|
-
|
|
80
|
+
_chunkMJPVYBMEjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
81
81
|
}
|
|
82
82
|
return () => {
|
|
83
|
-
|
|
83
|
+
_chunkMJPVYBMEjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
84
84
|
`, config);
|
|
85
85
|
};
|
|
86
86
|
} catch (error) {
|
|
87
87
|
return () => {
|
|
88
|
-
|
|
88
|
+
_chunkMJPVYBMEjs.writeFatal.call(void 0,
|
|
89
89
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
90
90
|
config
|
|
91
91
|
);
|
|
92
|
-
|
|
92
|
+
_chunkMJPVYBMEjs.writeError.call(void 0,
|
|
93
93
|
`An exception was thrown in the generator's process
|
|
94
94
|
- Details: ${error.message}
|
|
95
95
|
- Stacktrace: ${error.stack}`,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkC4ETRYH2js = require('./chunk-C4ETRYH2.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-doc/executor.ts
|
|
10
10
|
async function cargoDocExecutor(options, context) {
|
|
@@ -14,7 +14,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
14
14
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "doc", options, context);
|
|
15
15
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
16
16
|
}
|
|
17
|
-
var executor_default =
|
|
17
|
+
var executor_default = _chunkC4ETRYH2js.withRunExecutor.call(void 0,
|
|
18
18
|
"Cargo - Doc",
|
|
19
19
|
cargoDocExecutor,
|
|
20
20
|
{
|
|
@@ -1,13 +1,13 @@
|
|
|
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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkMJPVYBMEjs = require('./chunk-MJPVYBME.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/toml.ts
|
|
6
6
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
7
7
|
function parseCargoTomlWithTree(tree, projectRoot, projectName) {
|
|
8
8
|
const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
9
9
|
if (!cargoTomlString) {
|
|
10
|
-
|
|
10
|
+
_chunkMJPVYBMEjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
|
|
11
11
|
throw new Error();
|
|
12
12
|
}
|
|
13
13
|
return parseCargoToml(cargoTomlString);
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkC4ETRYH2js = require('./chunk-C4ETRYH2.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-format/executor.ts
|
|
10
10
|
async function cargoFormatExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "fmt", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkC4ETRYH2js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Format",
|
|
16
16
|
cargoFormatExecutor,
|
|
17
17
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkC4ETRYH2js = require('./chunk-C4ETRYH2.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-clippy/executor.ts
|
|
10
10
|
async function cargoClippyExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "clippy", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkC4ETRYH2js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Clippy",
|
|
16
16
|
cargoClippyExecutor,
|
|
17
17
|
{
|
package/dist/executors.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-P6HSE7LH.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkR6OKTOPGjs = require('./chunk-R6OKTOPG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkH2IQPKCXjs = require('./chunk-H2IQPKCX.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkLQLB23MAjs = require('./chunk-LQLB23MA.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkLN2ISRNVjs = require('./chunk-LN2ISRNV.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
17
|
-
require('./chunk-
|
|
16
|
+
var _chunkJV6AKQ47js = require('./chunk-JV6AKQ47.js');
|
|
17
|
+
require('./chunk-626FPLUP.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkHUOI4PBWjs = require('./chunk-HUOI4PBW.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkPED6YPOFjs = require('./chunk-PED6YPOF.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkYRHSIXS4js = require('./chunk-YRHSIXS4.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkWJAIY3X6js = require('./chunk-WJAIY3X6.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkYRHOGXG2js = require('./chunk-YRHOGXG2.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkLS6TILJCjs = require('./chunk-LS6TILJC.js');
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunk4XMMNPEOjs = require('./chunk-4XMMNPEO.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkSQ7YVBPNjs = require('./chunk-SQ7YVBPN.js');
|
|
42
42
|
require('./chunk-D2PV33E5.js');
|
|
43
|
-
require('./chunk-
|
|
44
|
-
require('./chunk-
|
|
43
|
+
require('./chunk-RDLWCD3X.js');
|
|
44
|
+
require('./chunk-XRVFIF7Q.js');
|
|
45
45
|
require('./chunk-UHTWNVEZ.js');
|
|
46
|
-
require('./chunk-
|
|
46
|
+
require('./chunk-C4ETRYH2.js');
|
|
47
47
|
require('./chunk-HXQRGLII.js');
|
|
48
|
-
require('./chunk-
|
|
49
|
-
require('./chunk-
|
|
48
|
+
require('./chunk-5ZHH2FNQ.js');
|
|
49
|
+
require('./chunk-MJPVYBME.js');
|
|
50
50
|
require('./chunk-LMYTVXGX.js');
|
|
51
51
|
require('./chunk-CQDBLKPF.js');
|
|
52
52
|
|
|
@@ -63,4 +63,4 @@ require('./chunk-CQDBLKPF.js');
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
exports.LARGE_BUFFER =
|
|
66
|
+
exports.LARGE_BUFFER = _chunkPED6YPOFjs.LARGE_BUFFER; exports.cargoBuildExecutor = _chunk4XMMNPEOjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkSQ7YVBPNjs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkYRHSIXS4js.cargoClippyExecutor; exports.cargoDocExecutor = _chunkWJAIY3X6js.cargoDocExecutor; exports.cargoFormatExecutor = _chunkYRHOGXG2js.cargoFormatExecutor; exports.esbuildExecutorFn = _chunkJV6AKQ47js.esbuildExecutorFn; exports.getRegistryVersion = _chunkLS6TILJCjs.getRegistryVersion; exports.napiExecutor = _chunkHUOI4PBWjs.napiExecutor; exports.sizeLimitExecutorFn = _chunkR6OKTOPGjs.sizeLimitExecutorFn; exports.tsdownExecutorFn = _chunkH2IQPKCXjs.tsdownExecutorFn; exports.typiaExecutorFn = _chunkLQLB23MAjs.typiaExecutorFn; exports.unbuildExecutorFn = _chunkLN2ISRNVjs.unbuildExecutorFn;
|
package/dist/executors.mjs
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import "./chunk-GHQJKIMQ.mjs";
|
|
2
2
|
import {
|
|
3
3
|
sizeLimitExecutorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FLEL6HL3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
tsdownExecutorFn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TSATJMLT.mjs";
|
|
8
8
|
import {
|
|
9
9
|
typiaExecutorFn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JP5HZTAF.mjs";
|
|
11
11
|
import {
|
|
12
12
|
unbuildExecutorFn
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DQQPNY3P.mjs";
|
|
14
14
|
import {
|
|
15
15
|
esbuildExecutorFn
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-MJU4W4C7.mjs";
|
|
17
|
+
import "./chunk-EIHVLRYO.mjs";
|
|
18
18
|
import {
|
|
19
19
|
napiExecutor
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JMG57VVQ.mjs";
|
|
21
21
|
import {
|
|
22
22
|
LARGE_BUFFER
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OAWHJHVS.mjs";
|
|
24
24
|
import {
|
|
25
25
|
cargoClippyExecutor
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-P37IUTEP.mjs";
|
|
27
27
|
import {
|
|
28
28
|
cargoDocExecutor
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-CVWXJRXD.mjs";
|
|
30
30
|
import {
|
|
31
31
|
cargoFormatExecutor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2HFE4IAT.mjs";
|
|
33
33
|
import {
|
|
34
34
|
getRegistryVersion
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-23AG7J6K.mjs";
|
|
36
36
|
import {
|
|
37
37
|
cargoBuildExecutor
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-FAYJOHW6.mjs";
|
|
39
39
|
import {
|
|
40
40
|
cargoCheckExecutor
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BFUD5R7Y.mjs";
|
|
42
42
|
import "./chunk-ZTN2676G.mjs";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-I4TZ6K5F.mjs";
|
|
44
|
+
import "./chunk-FIAY4XVI.mjs";
|
|
45
45
|
import "./chunk-AQ7B26V3.mjs";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-V5BPSX25.mjs";
|
|
47
47
|
import "./chunk-2QMGYIOO.mjs";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-AH5TFWCI.mjs";
|
|
49
|
+
import "./chunk-NWXPYUQ3.mjs";
|
|
50
50
|
import "./chunk-3J2CP54B.mjs";
|
|
51
51
|
import "./chunk-TBW5MCN6.mjs";
|
|
52
52
|
import "./chunk-L2Y6WKX4.mjs";
|