@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
|
@@ -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
|
|
|
@@ -13,7 +13,8 @@ var _chunk5ZHH2FNQjs = require('./chunk-5ZHH2FNQ.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
var _chunkOS24C67Pjs = require('./chunk-OS24C67P.js');
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -22,30 +23,33 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
22
23
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
23
24
|
skipReadingConfig: false
|
|
24
25
|
}) => async (tree, _options) => {
|
|
25
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, name);
|
|
26
27
|
let options = _options;
|
|
27
28
|
let config;
|
|
28
29
|
try {
|
|
29
|
-
|
|
30
|
+
_chunkOS24C67Pjs.writeInfo.call(void 0,
|
|
31
|
+
`${_chunkOS24C67Pjs.brandIcon.call(void 0, config)} Running the ${name} generator...
|
|
30
32
|
|
|
31
|
-
`,
|
|
33
|
+
`,
|
|
34
|
+
config
|
|
35
|
+
);
|
|
32
36
|
const workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, );
|
|
33
37
|
if (!generatorOptions.skipReadingConfig) {
|
|
34
|
-
|
|
38
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0,
|
|
35
39
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
40
|
- workspaceRoot: ${workspaceRoot}`,
|
|
37
41
|
config
|
|
38
42
|
);
|
|
39
|
-
config = await
|
|
43
|
+
config = await _chunk3UVFXL7Ijs.getConfig.call(void 0, workspaceRoot);
|
|
40
44
|
}
|
|
41
45
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
42
|
-
|
|
46
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
43
47
|
options = await Promise.resolve(
|
|
44
48
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
45
49
|
);
|
|
46
|
-
|
|
50
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
47
51
|
}
|
|
48
|
-
|
|
52
|
+
_chunkOS24C67Pjs.writeTrace.call(void 0,
|
|
49
53
|
`Generator schema options \u2699\uFE0F
|
|
50
54
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
51
55
|
config
|
|
@@ -56,11 +60,11 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
56
60
|
_chunkHXQRGLIIjs.applyWorkspaceBaseTokens
|
|
57
61
|
);
|
|
58
62
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
59
|
-
|
|
63
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
60
64
|
await Promise.resolve(
|
|
61
65
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
62
66
|
);
|
|
63
|
-
|
|
67
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
64
68
|
}
|
|
65
69
|
const result = await Promise.resolve(
|
|
66
70
|
generatorFn(tree, tokenized, config)
|
|
@@ -75,21 +79,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
75
79
|
}
|
|
76
80
|
}
|
|
77
81
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
78
|
-
|
|
82
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
79
83
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
80
|
-
|
|
84
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
81
85
|
}
|
|
82
86
|
return () => {
|
|
83
|
-
|
|
87
|
+
_chunkOS24C67Pjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
84
88
|
`, config);
|
|
85
89
|
};
|
|
86
90
|
} catch (error) {
|
|
87
91
|
return () => {
|
|
88
|
-
|
|
92
|
+
_chunkOS24C67Pjs.writeFatal.call(void 0,
|
|
89
93
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
90
94
|
config
|
|
91
95
|
);
|
|
92
|
-
|
|
96
|
+
_chunkOS24C67Pjs.writeError.call(void 0,
|
|
93
97
|
`An exception was thrown in the generator's process
|
|
94
98
|
- Details: ${error.message}
|
|
95
99
|
- Stacktrace: ${error.stack}`,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCK3BPORZjs = require('./chunk-CK3BPORZ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -89,7 +89,7 @@ async function napiExecutor(options, context, config) {
|
|
|
89
89
|
const { task } = await napi.build(normalizedOptions);
|
|
90
90
|
return { success: true, terminalOutput: await task };
|
|
91
91
|
}
|
|
92
|
-
var executor_default =
|
|
92
|
+
var executor_default = _chunkCK3BPORZjs.withRunExecutor.call(void 0,
|
|
93
93
|
"Napi - Build Bindings",
|
|
94
94
|
napiExecutor,
|
|
95
95
|
{
|
|
@@ -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 _chunkCK3BPORZjs = require('./chunk-CK3BPORZ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOS24C67Pjs = require('./chunk-OS24C67P.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
|
+
_chunkOS24C67Pjs.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
|
+
_chunkOS24C67Pjs.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 = _chunkCK3BPORZjs.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -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/typia/executor.ts
|
|
9
9
|
import { removeSync } from "fs-extra";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkBZMYB75Mjs = require('./chunk-BZMYB75M.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPBN7PKGEjs = require('./chunk-PBN7PKGE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -82,7 +82,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
82
82
|
await _devkit.formatFiles.call(void 0, tree);
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
|
-
var generator_default =
|
|
85
|
+
var generator_default = _chunkPBN7PKGEjs.withRunGenerator.call(void 0,
|
|
86
86
|
"TypeScript Library Creator (Browser Platform)",
|
|
87
87
|
browserLibraryGeneratorFn,
|
|
88
88
|
{
|
|
@@ -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-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 = _chunkCK3BPORZjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Format",
|
|
16
16
|
cargoFormatExecutor,
|
|
17
17
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkYRI7JSHFjs = require('./chunk-YRI7JSHF.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: _chunkYRI7JSHFjs.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,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HLZG5AEE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
schemaRegistry,
|
|
6
6
|
workspaceConfigSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UWQQYG23.mjs";
|
|
8
8
|
import {
|
|
9
9
|
writeInfo,
|
|
10
10
|
writeSuccess,
|
|
11
11
|
writeTrace
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-J3V2XDUI.mjs";
|
|
13
13
|
import {
|
|
14
14
|
findWorkspaceRoot
|
|
15
15
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGAOMOIRSjs = require('./chunk-GAOMOIRS.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkCK3BPORZjs = require('./chunk-CK3BPORZ.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk3UVFXL7Ijs = require('./chunk-3UVFXL7I.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -21,7 +21,8 @@ var _chunk5ZHH2FNQjs = require('./chunk-5ZHH2FNQ.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
var _chunkOS24C67Pjs = require('./chunk-OS24C67P.js');
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -29,12 +30,12 @@ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
|
29
30
|
// ../esbuild/src/assets.ts
|
|
30
31
|
async function copyBuildAssets(context) {
|
|
31
32
|
if (!_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) && _optionalChain([context, 'access', _4 => _4.options, 'access', _5 => _5.assets, 'optionalAccess', _6 => _6.length])) {
|
|
32
|
-
|
|
33
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0,
|
|
33
34
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
34
35
|
context.workspaceConfig
|
|
35
36
|
);
|
|
36
|
-
const stopwatch =
|
|
37
|
-
await
|
|
37
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
38
|
+
await _chunkGAOMOIRSjs.copyAssets.call(void 0,
|
|
38
39
|
context.workspaceConfig,
|
|
39
40
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
40
41
|
context.outputPath,
|
|
@@ -102,8 +103,8 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
102
103
|
".woff2": "file"
|
|
103
104
|
},
|
|
104
105
|
banner: {
|
|
105
|
-
js:
|
|
106
|
-
css:
|
|
106
|
+
js: _chunkGAOMOIRSjs.DEFAULT_JS_BANNER,
|
|
107
|
+
css: _chunkGAOMOIRSjs.DEFAULT_CSS_BANNER
|
|
107
108
|
}
|
|
108
109
|
};
|
|
109
110
|
|
|
@@ -114,11 +115,11 @@ async function resolveContext(userOptions) {
|
|
|
114
115
|
if (!workspaceRoot) {
|
|
115
116
|
throw new Error("Cannot find Nx workspace root");
|
|
116
117
|
}
|
|
117
|
-
const workspaceConfig = await
|
|
118
|
+
const workspaceConfig = await _chunk3UVFXL7Ijs.getWorkspaceConfig.call(void 0, true, {
|
|
118
119
|
workspaceRoot: workspaceRoot.dir
|
|
119
120
|
});
|
|
120
|
-
|
|
121
|
-
const stopwatch =
|
|
121
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
122
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, "Build options resolution");
|
|
122
123
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
123
124
|
exitOnError: true
|
|
124
125
|
});
|
|
@@ -149,7 +150,7 @@ async function resolveContext(userOptions) {
|
|
|
149
150
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
150
151
|
throw new Error("Cannot find package.json configuration");
|
|
151
152
|
}
|
|
152
|
-
const env =
|
|
153
|
+
const env = _chunkGAOMOIRSjs.getEnv.call(void 0, "esbuild", options);
|
|
153
154
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
154
155
|
const resolvedOptions = {
|
|
155
156
|
...options,
|
|
@@ -188,10 +189,10 @@ async function resolveContext(userOptions) {
|
|
|
188
189
|
};
|
|
189
190
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
190
191
|
if (context.options.verbose) {
|
|
191
|
-
|
|
192
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0,
|
|
192
193
|
` \u2699\uFE0F Build options resolved:
|
|
193
194
|
|
|
194
|
-
${
|
|
195
|
+
${_chunkOS24C67Pjs.formatLogMessage.call(void 0, context.options)}`,
|
|
195
196
|
workspaceConfig
|
|
196
197
|
);
|
|
197
198
|
}
|
|
@@ -204,8 +205,8 @@ ${_chunkMJPVYBMEjs.formatLogMessage.call(void 0, context.options)}`,
|
|
|
204
205
|
|
|
205
206
|
async function generatePackageJson(context) {
|
|
206
207
|
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
207
|
-
|
|
208
|
-
const stopwatch =
|
|
208
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
209
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, "Write package.json file");
|
|
209
210
|
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
210
211
|
context.options.projectRoot,
|
|
211
212
|
"project.json"
|
|
@@ -225,13 +226,13 @@ async function generatePackageJson(context) {
|
|
|
225
226
|
if (!packageJson) {
|
|
226
227
|
throw new Error("Cannot find package.json configuration file");
|
|
227
228
|
}
|
|
228
|
-
packageJson = await
|
|
229
|
+
packageJson = await _chunkGAOMOIRSjs.addPackageDependencies.call(void 0,
|
|
229
230
|
context.workspaceConfig.workspaceRoot,
|
|
230
231
|
context.options.projectRoot,
|
|
231
232
|
context.projectName,
|
|
232
233
|
packageJson
|
|
233
234
|
);
|
|
234
|
-
packageJson = await
|
|
235
|
+
packageJson = await _chunkGAOMOIRSjs.addWorkspacePackageJsonFields.call(void 0,
|
|
235
236
|
context.workspaceConfig,
|
|
236
237
|
context.options.projectRoot,
|
|
237
238
|
context.sourceRoot,
|
|
@@ -332,12 +333,12 @@ async function generatePackageJson(context) {
|
|
|
332
333
|
var _tsup = require('tsup');
|
|
333
334
|
async function build(options) {
|
|
334
335
|
if (!options.silent) {
|
|
335
|
-
|
|
336
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0,
|
|
336
337
|
` \u{1F680} Running ${options.name || "tsup"} build`,
|
|
337
338
|
options.workspaceConfig
|
|
338
339
|
);
|
|
339
340
|
}
|
|
340
|
-
const stopwatch =
|
|
341
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, `${options.name || "tsup"} build`);
|
|
341
342
|
await _tsup.build.call(void 0, options);
|
|
342
343
|
if (!options.silent) {
|
|
343
344
|
stopwatch();
|
|
@@ -346,11 +347,11 @@ async function build(options) {
|
|
|
346
347
|
|
|
347
348
|
// ../esbuild/src/tsup.ts
|
|
348
349
|
async function executeTsup(context) {
|
|
349
|
-
|
|
350
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0,
|
|
350
351
|
` \u{1F680} Running ${context.options.name} build`,
|
|
351
352
|
context.workspaceConfig
|
|
352
353
|
);
|
|
353
|
-
const stopwatch =
|
|
354
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
354
355
|
await build({
|
|
355
356
|
...context.options,
|
|
356
357
|
outDir: context.options.distDir ? _chunkCQDBLKPFjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
@@ -364,17 +365,17 @@ async function executeTsup(context) {
|
|
|
364
365
|
async function reportResults(context) {
|
|
365
366
|
if (_optionalChain([context, 'access', _9 => _9.result, 'optionalAccess', _10 => _10.errors, 'access', _11 => _11.length]) === 0) {
|
|
366
367
|
if (context.result.warnings.length > 0) {
|
|
367
|
-
|
|
368
|
+
_chunkOS24C67Pjs.writeWarning.call(void 0,
|
|
368
369
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
369
370
|
context.workspaceConfig
|
|
370
371
|
);
|
|
371
372
|
}
|
|
372
|
-
|
|
373
|
+
_chunkOS24C67Pjs.writeSuccess.call(void 0,
|
|
373
374
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
374
375
|
context.workspaceConfig
|
|
375
376
|
);
|
|
376
377
|
} else if (_optionalChain([context, 'access', _12 => _12.result, 'optionalAccess', _13 => _13.errors]) && _optionalChain([context, 'access', _14 => _14.result, 'optionalAccess', _15 => _15.errors, 'access', _16 => _16.length]) > 0) {
|
|
377
|
-
|
|
378
|
+
_chunkOS24C67Pjs.writeError.call(void 0,
|
|
378
379
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
379
380
|
context.workspaceConfig
|
|
380
381
|
);
|
|
@@ -385,19 +386,19 @@ async function reportResults(context) {
|
|
|
385
386
|
}
|
|
386
387
|
async function cleanOutputPath(context) {
|
|
387
388
|
if (context.clean !== false && context.outputPath) {
|
|
388
|
-
|
|
389
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0,
|
|
389
390
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
390
391
|
context.workspaceConfig
|
|
391
392
|
);
|
|
392
|
-
const stopwatch =
|
|
393
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
393
394
|
await cleanDirectories(context.outputPath);
|
|
394
395
|
stopwatch();
|
|
395
396
|
}
|
|
396
397
|
return context;
|
|
397
398
|
}
|
|
398
399
|
async function build2(options) {
|
|
399
|
-
|
|
400
|
-
const stopwatch =
|
|
400
|
+
_chunkOS24C67Pjs.writeDebug.call(void 0, ` ${_chunkOS24C67Pjs.brandIcon.call(void 0, )} Executing Storm ESBuild pipeline`);
|
|
401
|
+
const stopwatch = _chunkOS24C67Pjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
401
402
|
try {
|
|
402
403
|
const opts = Array.isArray(options) ? options : [options];
|
|
403
404
|
if (opts.length === 0) {
|
|
@@ -412,9 +413,9 @@ async function build2(options) {
|
|
|
412
413
|
executeTsup(context)
|
|
413
414
|
]);
|
|
414
415
|
await reportResults(context);
|
|
415
|
-
|
|
416
|
+
_chunkOS24C67Pjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
416
417
|
} catch (error) {
|
|
417
|
-
|
|
418
|
+
_chunkOS24C67Pjs.writeFatal.call(void 0,
|
|
418
419
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
419
420
|
);
|
|
420
421
|
throw error;
|
|
@@ -425,7 +426,7 @@ async function build2(options) {
|
|
|
425
426
|
|
|
426
427
|
// src/executors/esbuild/executor.ts
|
|
427
428
|
async function esbuildExecutorFn(options, context, config) {
|
|
428
|
-
|
|
429
|
+
_chunkOS24C67Pjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
429
430
|
if (!_optionalChain([context, 'access', _17 => _17.projectsConfigurations, 'optionalAccess', _18 => _18.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _19 => _19.projectsConfigurations, 'access', _20 => _20.projects, 'access', _21 => _21[context.projectName], 'optionalAccess', _22 => _22.root])) {
|
|
430
431
|
throw new Error(
|
|
431
432
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -446,7 +447,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
446
447
|
success: true
|
|
447
448
|
};
|
|
448
449
|
}
|
|
449
|
-
var executor_default =
|
|
450
|
+
var executor_default = _chunkCK3BPORZjs.withRunExecutor.call(void 0,
|
|
450
451
|
"Storm ESBuild build",
|
|
451
452
|
esbuildExecutorFn,
|
|
452
453
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkBZMYB75Mjs = require('./chunk-BZMYB75M.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPBN7PKGEjs = require('./chunk-PBN7PKGE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -54,7 +54,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
54
54
|
await _devkit.formatFiles.call(void 0, tree);
|
|
55
55
|
return null;
|
|
56
56
|
}
|
|
57
|
-
var generator_default =
|
|
57
|
+
var generator_default = _chunkPBN7PKGEjs.withRunGenerator.call(void 0,
|
|
58
58
|
"TypeScript Library Creator (Neutral Platform)",
|
|
59
59
|
neutralLibraryGeneratorFn,
|
|
60
60
|
{
|
|
@@ -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-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 = _chunkCK3BPORZjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -5,14 +5,15 @@ 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
|
formatLogMessage,
|
|
17
18
|
getStopwatch,
|
|
18
19
|
writeDebug,
|
|
@@ -21,7 +22,7 @@ import {
|
|
|
21
22
|
writeInfo,
|
|
22
23
|
writeSuccess,
|
|
23
24
|
writeWarning
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-J3V2XDUI.mjs";
|
|
25
26
|
import {
|
|
26
27
|
joinPaths
|
|
27
28
|
} from "./chunk-TBW5MCN6.mjs";
|
|
@@ -396,7 +397,7 @@ async function cleanOutputPath(context) {
|
|
|
396
397
|
return context;
|
|
397
398
|
}
|
|
398
399
|
async function build2(options) {
|
|
399
|
-
writeDebug(`
|
|
400
|
+
writeDebug(` ${brandIcon()} Executing Storm ESBuild pipeline`);
|
|
400
401
|
const stopwatch = getStopwatch("ESBuild pipeline");
|
|
401
402
|
try {
|
|
402
403
|
const opts = Array.isArray(options) ? options : [options];
|
|
@@ -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 _chunkOS24C67Pjs = require('./chunk-OS24C67P.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
|
+
_chunkOS24C67Pjs.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,7 +4,7 @@
|
|
|
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-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 = _chunkCK3BPORZjs.withRunExecutor.call(void 0,
|
|
18
18
|
"Cargo - Doc",
|
|
19
19
|
cargoDocExecutor,
|
|
20
20
|
{
|