@storm-software/workspace-tools 1.264.21 → 1.264.23
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 +15 -0
- package/README.md +1 -1
- package/dist/{chunk-TYTLMYMZ.mjs → chunk-2JMPJLUY.mjs} +1 -1
- package/dist/{chunk-SWKSEHJV.js → chunk-2JSGLAYY.js} +15 -15
- package/dist/{chunk-IRSGGDCX.mjs → chunk-2VGQHNUI.mjs} +2 -2
- package/dist/{chunk-VGWC25SX.js → chunk-3CMQVIZF.js} +2 -2
- package/dist/{chunk-KUPMTEZU.js → chunk-5HKVKVGO.js} +70 -57
- package/dist/{chunk-AWUOBB3R.mjs → chunk-6TELW6SY.mjs} +1 -1
- package/dist/{chunk-W25HMODD.js → chunk-7D54ET5P.js} +11 -11
- package/dist/{chunk-FQSPQRIB.mjs → chunk-ACGR2DGA.mjs} +1 -1
- package/dist/{chunk-IFB5HNMT.js → chunk-B7OV5XTN.js} +2 -2
- package/dist/{chunk-5OWPWITA.mjs → chunk-CO3WS2F5.mjs} +1 -1
- package/dist/{chunk-3MWOC5X7.js → chunk-D2B7RMJY.js} +2 -2
- package/dist/{chunk-DYKPDBZQ.js → chunk-GIHDKGOW.js} +2 -2
- package/dist/{chunk-Q6PB2D4O.mjs → chunk-H7R5WWWN.mjs} +2 -2
- package/dist/{chunk-ASBO74YM.js → chunk-HAR2JAKF.js} +5 -5
- package/dist/{chunk-4UTIWEDA.mjs → chunk-IVVMLTAZ.mjs} +1 -1
- package/dist/{chunk-TFNKD3A2.js → chunk-IWTY5YHA.js} +4 -4
- package/dist/{chunk-I44JBB55.js → chunk-JGBWUIDB.js} +2 -2
- package/dist/{chunk-PUW5GKBJ.mjs → chunk-JIEME4DE.mjs} +1 -1
- package/dist/{chunk-3OLF2X22.mjs → chunk-KZEIFYBW.mjs} +20 -7
- package/dist/{chunk-WCGJHQTH.mjs → chunk-LCEW4RCH.mjs} +2 -2
- package/dist/{chunk-P5WJDR64.js → chunk-OE5D5OX2.js} +2 -2
- package/dist/{chunk-7A34G3TI.mjs → chunk-OOKKGQYY.mjs} +1 -1
- package/dist/{chunk-CEK44GFG.mjs → chunk-PKZ57ZT3.mjs} +1 -1
- package/dist/{chunk-DJJEQUOE.js → chunk-Q2HDALQQ.js} +2 -2
- package/dist/{chunk-KFT2TAHE.js → chunk-S672NL5L.js} +2 -2
- package/dist/{chunk-IRPD2M2I.js → chunk-SYVKCVS5.js} +2 -2
- package/dist/{chunk-MHZ6V7XS.mjs → chunk-UBQVODWE.mjs} +1 -1
- package/dist/{chunk-5QWEZQFR.mjs → chunk-VIYVUTPL.mjs} +1 -1
- package/dist/{chunk-IVNDY2FE.js → chunk-W6XC45WY.js} +20 -20
- package/dist/{chunk-NW4PIBL2.mjs → chunk-WKHNKMGG.mjs} +1 -1
- package/dist/{chunk-YCDNXKRB.js → chunk-WSYNUVFE.js} +9 -9
- package/dist/{chunk-K5XDKCHY.mjs → chunk-XL2QCC3O.mjs} +4 -4
- package/dist/{chunk-5M3R4RLA.mjs → chunk-Y4DQH7H3.mjs} +1 -1
- package/dist/{chunk-EEMX5TF7.js → chunk-YEAEA7VH.js} +5 -5
- package/dist/{chunk-SPRQWSBE.js → chunk-Z7QQFXLC.js} +9 -9
- package/dist/{chunk-AUU7AFJV.mjs → chunk-ZQM46HJL.mjs} +9 -9
- package/dist/{executor-CqRyjFhC.d.mts → executor-Bl_R7eWL.d.mts} +2 -2
- package/dist/{executor-BeYtFLmD.d.mts → executor-CQREXH1r.d.mts} +2 -2
- package/dist/{executor-BHZDUmGV.d.ts → executor-Cfnvj_UD.d.ts} +2 -2
- package/dist/{executor-Ba3sXm2v.d.ts → executor-CkpY6Cn6.d.ts} +2 -2
- package/dist/{executor-aaNF3iYy.d.mts → executor-D7Jon7YZ.d.mts} +2 -2
- package/dist/{executor-C5FcAd29.d.ts → executor-FnV7Zyhi.d.mts} +2 -2
- package/dist/{executor-BSdK3i-c.d.ts → executor-Z5RZ_Cc7.d.ts} +2 -2
- package/dist/{executor-D8PlrGW7.d.mts → executor-jhLTqjwT.d.ts} +2 -2
- package/dist/executors.d.mts +5 -5
- package/dist/executors.d.ts +5 -5
- package/dist/executors.js +12 -12
- package/dist/executors.mjs +13 -13
- package/dist/{generator-PWtPKnX3.d.ts → generator-BxNcUEBh.d.mts} +3 -3
- package/dist/{generator-BN20pTlZ.d.mts → generator-BzokTeDK.d.ts} +3 -3
- package/dist/{generator-ieAZPSV9.d.ts → generator-CDN_7s1G.d.mts} +3 -3
- package/dist/{generator-CDWEbKl9.d.ts → generator-Cp27CDI2.d.mts} +3 -3
- package/dist/{generator-CO80PAYg.d.mts → generator-D2sZ7Ie-.d.ts} +3 -3
- package/dist/{generator-CPOA4iOa.d.mts → generator-DWD1hj3X.d.ts} +2 -2
- package/dist/{generator-D1KDMMWv.d.ts → generator-DYKOkcwS.d.mts} +3 -3
- package/dist/{generator-CDFD9683.d.mts → generator-DewOeQFs.d.ts} +3 -3
- package/dist/{generator-C77-chd9.d.mts → generator-DpjwOis-.d.ts} +3 -3
- package/dist/{generator-DHaTv11N.d.ts → generator-ciGwzWek.d.mts} +2 -2
- package/dist/{generator-CwtaXN68.d.mts → generator-hhjMvDQ2.d.mts} +1 -1
- package/dist/{generator-C8vM6WVl.d.ts → generator-m71zZSnI.d.ts} +1 -1
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +8 -8
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +19 -19
- package/dist/index.mjs +20 -20
- package/dist/src/base/base-executor.d.mts +3 -3
- package/dist/src/base/base-executor.d.ts +3 -3
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/base-generator.d.mts +3 -3
- package/dist/src/base/base-generator.d.ts +3 -3
- package/dist/src/base/base-generator.js +3 -3
- package/dist/src/base/base-generator.mjs +2 -2
- package/dist/src/base/index.d.mts +4 -4
- package/dist/src/base/index.d.ts +4 -4
- package/dist/src/base/index.js +4 -4
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/executors/cargo-build/executor.js +4 -4
- package/dist/src/executors/cargo-build/executor.mjs +3 -3
- package/dist/src/executors/cargo-check/executor.js +4 -4
- package/dist/src/executors/cargo-check/executor.mjs +3 -3
- package/dist/src/executors/cargo-clippy/executor.js +4 -4
- package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
- package/dist/src/executors/cargo-doc/executor.js +4 -4
- package/dist/src/executors/cargo-doc/executor.mjs +3 -3
- package/dist/src/executors/cargo-format/executor.js +4 -4
- package/dist/src/executors/cargo-format/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.d.mts +2 -2
- package/dist/src/executors/clean-package/executor.d.ts +2 -2
- package/dist/src/executors/clean-package/executor.js +5 -5
- package/dist/src/executors/clean-package/executor.mjs +2 -2
- package/dist/src/executors/esbuild/executor.d.mts +2 -2
- package/dist/src/executors/esbuild/executor.d.ts +2 -2
- package/dist/src/executors/esbuild/executor.js +4 -4
- package/dist/src/executors/esbuild/executor.mjs +3 -3
- package/dist/src/executors/size-limit/executor.d.mts +2 -2
- package/dist/src/executors/size-limit/executor.d.ts +2 -2
- package/dist/src/executors/size-limit/executor.js +4 -4
- package/dist/src/executors/size-limit/executor.mjs +3 -3
- package/dist/src/executors/typia/executor.d.mts +2 -2
- package/dist/src/executors/typia/executor.d.ts +2 -2
- package/dist/src/executors/typia/executor.js +4 -4
- package/dist/src/executors/typia/executor.mjs +3 -3
- package/dist/src/executors/unbuild/executor.d.mts +2 -2
- package/dist/src/executors/unbuild/executor.d.ts +2 -2
- package/dist/src/executors/unbuild/executor.js +4 -4
- package/dist/src/executors/unbuild/executor.mjs +3 -3
- package/dist/src/generators/browser-library/generator.d.mts +3 -3
- package/dist/src/generators/browser-library/generator.d.ts +3 -3
- package/dist/src/generators/browser-library/generator.js +4 -4
- package/dist/src/generators/browser-library/generator.mjs +3 -3
- package/dist/src/generators/config-schema/generator.d.mts +3 -3
- package/dist/src/generators/config-schema/generator.d.ts +3 -3
- package/dist/src/generators/config-schema/generator.js +4 -4
- package/dist/src/generators/config-schema/generator.mjs +3 -3
- package/dist/src/generators/neutral-library/generator.d.mts +3 -3
- package/dist/src/generators/neutral-library/generator.d.ts +3 -3
- package/dist/src/generators/neutral-library/generator.js +4 -4
- package/dist/src/generators/neutral-library/generator.mjs +3 -3
- package/dist/src/generators/node-library/generator.d.mts +3 -3
- package/dist/src/generators/node-library/generator.d.ts +3 -3
- package/dist/src/generators/node-library/generator.js +4 -4
- package/dist/src/generators/node-library/generator.mjs +3 -3
- package/dist/src/generators/preset/generator.d.mts +3 -3
- package/dist/src/generators/preset/generator.d.ts +3 -3
- package/dist/src/generators/preset/generator.js +4 -4
- package/dist/src/generators/preset/generator.mjs +3 -3
- package/dist/src/generators/release-version/generator.d.mts +2 -2
- package/dist/src/generators/release-version/generator.d.ts +2 -2
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/dist/src/types.d.mts +2 -2
- package/dist/src/types.d.ts +2 -2
- package/dist/src/utils/apply-workspace-tokens.d.mts +2 -2
- package/dist/src/utils/apply-workspace-tokens.d.ts +2 -2
- package/dist/src/utils/index.d.mts +2 -2
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/src/utils/project-tags.d.mts +2 -2
- package/dist/src/utils/project-tags.d.ts +2 -2
- package/dist/{types-BhjX7nv_.d.ts → types-CbF567tH.d.mts} +4 -4
- package/dist/{types-DdLUCAjP.d.ts → types-DK9-a60Q.d.mts} +21 -5
- package/dist/{types-DdLUCAjP.d.mts → types-DK9-a60Q.d.ts} +21 -5
- package/dist/{types-DAkcs-RD.d.mts → types-DvN-p7Ms.d.ts} +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.264.23](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.264.23) (2025-04-02)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **workspace-tools:** Update all references to `StormConfig` to point to
|
|
10
|
+
`StormWorkspaceConfig`
|
|
11
|
+
([c769b40dd](https://github.com/storm-software/storm-ops/commit/c769b40dd))
|
|
12
|
+
|
|
13
|
+
## [1.264.22](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.264.22) (2025-03-18)
|
|
14
|
+
|
|
15
|
+
### Miscellaneous
|
|
16
|
+
|
|
17
|
+
- **monorepo:** Regenerate README markdown files
|
|
18
|
+
([4a6eeab3f](https://github.com/storm-software/storm-ops/commit/4a6eeab3f))
|
|
19
|
+
|
|
5
20
|
## [1.264.21](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.264.21) (2025-03-18)
|
|
6
21
|
|
|
7
22
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -11,7 +11,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZ7QQFXLCjs = require('./chunk-Z7QQFXLC.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -23,34 +23,34 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
24
24
|
skipReadingConfig: false
|
|
25
25
|
}) => async (tree, _options) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
_chunkZ7QQFXLCjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
31
31
|
|
|
32
32
|
`, config);
|
|
33
33
|
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
34
34
|
if (!generatorOptions.skipReadingConfig) {
|
|
35
|
-
|
|
35
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
37
|
-
config = await
|
|
37
|
+
config = await _chunkZ7QQFXLCjs.getConfig.call(void 0, workspaceRoot);
|
|
38
38
|
}
|
|
39
39
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
40
|
-
|
|
40
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
41
41
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
42
|
-
|
|
42
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
_chunkZ7QQFXLCjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
45
45
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
46
46
|
const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, {
|
|
47
47
|
workspaceRoot: tree.root,
|
|
48
48
|
config
|
|
49
49
|
}, _chunkUALZJZUKjs.applyWorkspaceBaseTokens);
|
|
50
50
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
51
|
-
|
|
51
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
52
52
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
53
|
-
|
|
53
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
54
54
|
}
|
|
55
55
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
56
56
|
if (result) {
|
|
@@ -63,18 +63,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
66
|
-
|
|
66
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
67
67
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
68
|
-
|
|
68
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
69
69
|
}
|
|
70
70
|
return () => {
|
|
71
|
-
|
|
71
|
+
_chunkZ7QQFXLCjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
72
72
|
`, config);
|
|
73
73
|
};
|
|
74
74
|
} catch (error) {
|
|
75
75
|
return () => {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
_chunkZ7QQFXLCjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
77
|
+
_chunkZ7QQFXLCjs.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
78
78
|
- Details: ${error.message}
|
|
79
79
|
- Stacktrace: ${error.stack}`, config);
|
|
80
80
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkW6XC45WYjs = require('./chunk-W6XC45WY.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkW6XC45WYjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunkW6XC45WYjs = require('./chunk-W6XC45WY.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ var _chunkIVNDY2FEjs = require('./chunk-IVNDY2FE.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkZ7QQFXLCjs = require('./chunk-Z7QQFXLC.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -83,7 +83,7 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
83
83
|
output: "src/"
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
_chunkZ7QQFXLCjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
87
87
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
88
88
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
89
89
|
projectDir: projectRoot,
|
|
@@ -93,7 +93,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
93
93
|
});
|
|
94
94
|
await assetHandler.processAllAssetsOnce();
|
|
95
95
|
if (includeSrc === true) {
|
|
96
|
-
|
|
96
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkJTAXCQX6js.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
97
97
|
const files = await _glob.glob.call(void 0, [
|
|
98
98
|
_chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
99
99
|
_chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -132,7 +132,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
if (localPackages.length > 0) {
|
|
135
|
-
|
|
135
|
+
_chunkZ7QQFXLCjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
136
136
|
const projectJsonFile = await _promises.readFile.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
137
137
|
const projectJson = JSON.parse(projectJsonFile);
|
|
138
138
|
const projectName2 = projectJson.name;
|
|
@@ -154,19 +154,19 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
154
154
|
return ret;
|
|
155
155
|
}, [])]);
|
|
156
156
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
157
|
-
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _17 => _17.includes, 'call', _18 => _18(localPackage.name)])) {
|
|
158
|
-
ret[localPackage.name] =
|
|
157
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _17 => _17.includes, 'call', _18 => _18(localPackage.name)]) && _optionalChain([packageJson, 'access', _19 => _19.devDependencies, 'optionalAccess', _20 => _20[localPackage.name]]) === void 0) {
|
|
158
|
+
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
159
159
|
}
|
|
160
160
|
return ret;
|
|
161
161
|
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
162
162
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
163
|
-
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess',
|
|
163
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _21 => _21.includes, 'call', _22 => _22(localPackage.name)]) && _optionalChain([packageJson, 'access', _23 => _23.dependencies, 'optionalAccess', _24 => _24[localPackage.name]]) === void 0) {
|
|
164
164
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
165
165
|
}
|
|
166
166
|
return ret;
|
|
167
167
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
168
168
|
} else {
|
|
169
|
-
|
|
169
|
+
_chunkZ7QQFXLCjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
170
170
|
}
|
|
171
171
|
return packageJson;
|
|
172
172
|
}, "addPackageDependencies");
|
|
@@ -264,7 +264,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
264
264
|
paths.push(...files.reduce((ret, filePath) => {
|
|
265
265
|
const result = _chunkJTAXCQX6js.correctPaths.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, projectRoot), ""));
|
|
266
266
|
if (result) {
|
|
267
|
-
|
|
267
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkJTAXCQX6js.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
268
268
|
if (!paths.includes(result)) {
|
|
269
269
|
paths.push(result);
|
|
270
270
|
}
|
|
@@ -272,7 +272,11 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
272
272
|
return ret;
|
|
273
273
|
}, []));
|
|
274
274
|
} else {
|
|
275
|
-
|
|
275
|
+
const result = _chunkJTAXCQX6js.correctPaths.call(void 0, entryPoint.replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkJTAXCQX6js.correctPaths.call(void 0, projectRoot), ""));
|
|
276
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, `Trying to add entry point ${result}"`, config);
|
|
277
|
+
if (!paths.includes(result)) {
|
|
278
|
+
paths.push(result);
|
|
279
|
+
}
|
|
276
280
|
}
|
|
277
281
|
return paths;
|
|
278
282
|
}));
|
|
@@ -384,15 +388,15 @@ var RendererEngine = class {
|
|
|
384
388
|
if (!relativePath.startsWith("\\\\?\\")) {
|
|
385
389
|
relativePath = relativePath.replace(/\\/g, "/");
|
|
386
390
|
}
|
|
387
|
-
const meta = _optionalChain([metafile, 'optionalAccess',
|
|
391
|
+
const meta = _optionalChain([metafile, 'optionalAccess', _25 => _25.outputs, 'access', _26 => _26[relativePath]]);
|
|
388
392
|
return {
|
|
389
393
|
type: "chunk",
|
|
390
394
|
path: file.path,
|
|
391
395
|
code: file.text,
|
|
392
|
-
map: _optionalChain([outputFiles, 'access',
|
|
393
|
-
entryPoint: _optionalChain([meta, 'optionalAccess',
|
|
394
|
-
exports: _optionalChain([meta, 'optionalAccess',
|
|
395
|
-
imports: _optionalChain([meta, 'optionalAccess',
|
|
396
|
+
map: _optionalChain([outputFiles, 'access', _27 => _27.find, 'call', _28 => _28((f) => f.path === `${file.path}.map`), 'optionalAccess', _29 => _29.text]),
|
|
397
|
+
entryPoint: _optionalChain([meta, 'optionalAccess', _30 => _30.entryPoint]),
|
|
398
|
+
exports: _optionalChain([meta, 'optionalAccess', _31 => _31.exports]),
|
|
399
|
+
imports: _optionalChain([meta, 'optionalAccess', _32 => _32.imports])
|
|
396
400
|
};
|
|
397
401
|
} else {
|
|
398
402
|
return {
|
|
@@ -475,7 +479,7 @@ var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
|
|
|
475
479
|
name: "storm:esm-split-code-to-cjs",
|
|
476
480
|
setup(build4) {
|
|
477
481
|
build4.onEnd(async (result) => {
|
|
478
|
-
const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access',
|
|
482
|
+
const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _33 => _33.metafile, 'optionalAccess', _34 => _34.outputs]), () => ( {})));
|
|
479
483
|
const jsFiles = outFiles.filter((f) => f.endsWith("js"));
|
|
480
484
|
await esbuild.build({
|
|
481
485
|
outdir: resolvedOptions.outdir,
|
|
@@ -584,7 +588,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
584
588
|
setup(build4) {
|
|
585
589
|
build4.onEnd((result) => {
|
|
586
590
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
587
|
-
|
|
591
|
+
_chunkZ7QQFXLCjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
588
592
|
${result.errors.map((error) => error.text).join("\n")}
|
|
589
593
|
|
|
590
594
|
`, resolvedOptions.config);
|
|
@@ -597,7 +601,7 @@ ${result.errors.map((error) => error.text).join("\n")}
|
|
|
597
601
|
// ../esbuild/src/plugins/resolve-paths.ts
|
|
598
602
|
|
|
599
603
|
function resolvePathsConfig(options, cwd) {
|
|
600
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
604
|
+
if (_optionalChain([options, 'optionalAccess', _35 => _35.compilerOptions, 'optionalAccess', _36 => _36.paths])) {
|
|
601
605
|
const paths = Object.entries(options.compilerOptions.paths);
|
|
602
606
|
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
603
607
|
return [
|
|
@@ -625,7 +629,7 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (o
|
|
|
625
629
|
build4.onResolve({
|
|
626
630
|
filter: packagesRegex
|
|
627
631
|
}, (args) => {
|
|
628
|
-
if (_optionalChain([build4, 'access',
|
|
632
|
+
if (_optionalChain([build4, 'access', _37 => _37.initialOptions, 'access', _38 => _38.external, 'optionalAccess', _39 => _39.includes, 'call', _40 => _40(args.path)])) {
|
|
629
633
|
return {
|
|
630
634
|
path: args.path,
|
|
631
635
|
external: true
|
|
@@ -693,7 +697,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
693
697
|
localBuild: true
|
|
694
698
|
});
|
|
695
699
|
if (extractorResult.succeeded === false) {
|
|
696
|
-
|
|
700
|
+
_chunkZ7QQFXLCjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
697
701
|
throw new Error("API Extractor completed with errors");
|
|
698
702
|
}
|
|
699
703
|
}
|
|
@@ -734,7 +738,7 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
|
|
|
734
738
|
function getTypeDependencyPackageName(npmPackage) {
|
|
735
739
|
if (npmPackage.startsWith("@")) {
|
|
736
740
|
const [scope, name] = npmPackage.split("/");
|
|
737
|
-
return `@types/${_optionalChain([scope, 'optionalAccess',
|
|
741
|
+
return `@types/${_optionalChain([scope, 'optionalAccess', _41 => _41.slice, 'call', _42 => _42(1)])}__${name}`;
|
|
738
742
|
}
|
|
739
743
|
return `@types/${npmPackage}`;
|
|
740
744
|
}
|
|
@@ -881,8 +885,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
|
|
|
881
885
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
882
886
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
883
887
|
});
|
|
884
|
-
|
|
885
|
-
|
|
888
|
+
_chunkZ7QQFXLCjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
889
|
+
_chunkZ7QQFXLCjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
886
890
|
if (filteredMissingDeps.length > 0) {
|
|
887
891
|
throw new Error(`Missing dependencies detected - please install them:
|
|
888
892
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -950,7 +954,7 @@ function pipeSync(fn, ...fns) {
|
|
|
950
954
|
return (...args) => {
|
|
951
955
|
let result = fn(...args);
|
|
952
956
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
953
|
-
result = _optionalChain([fns, 'access',
|
|
957
|
+
result = _optionalChain([fns, 'access', _43 => _43[i], 'optionalCall', _44 => _44(result)]);
|
|
954
958
|
}
|
|
955
959
|
return result;
|
|
956
960
|
};
|
|
@@ -960,7 +964,7 @@ function pipeAsync(fn, ...fns) {
|
|
|
960
964
|
return async (...args) => {
|
|
961
965
|
let result = await fn(...args);
|
|
962
966
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
963
|
-
result = await _optionalChain([fns, 'access',
|
|
967
|
+
result = await _optionalChain([fns, 'access', _45 => _45[i], 'optionalCall', _46 => _46(result)]);
|
|
964
968
|
}
|
|
965
969
|
return result;
|
|
966
970
|
};
|
|
@@ -976,9 +980,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
976
980
|
if (!workspaceRoot) {
|
|
977
981
|
throw new Error("Cannot find Nx workspace root");
|
|
978
982
|
}
|
|
979
|
-
const config = await
|
|
980
|
-
|
|
981
|
-
const stopwatch =
|
|
983
|
+
const config = await _chunkZ7QQFXLCjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
984
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
985
|
+
const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, "Build options resolution");
|
|
982
986
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
983
987
|
exitOnError: true
|
|
984
988
|
});
|
|
@@ -990,7 +994,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
990
994
|
const projectJson = JSON.parse(projectJsonFile);
|
|
991
995
|
const projectName = projectJson.name;
|
|
992
996
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
993
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
997
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _47 => _47.projects, 'optionalAccess', _48 => _48[projectName]])) {
|
|
994
998
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
995
999
|
}
|
|
996
1000
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
@@ -1025,7 +1029,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1025
1029
|
projectGraph,
|
|
1026
1030
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "src"),
|
|
1027
1031
|
minify: userOptions.minify || !userOptions.debug,
|
|
1028
|
-
verbose: userOptions.verbose ||
|
|
1032
|
+
verbose: userOptions.verbose || _chunkZ7QQFXLCjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
1029
1033
|
includeSrc: userOptions.includeSrc === true,
|
|
1030
1034
|
metafile: userOptions.metafile !== false,
|
|
1031
1035
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -1067,7 +1071,12 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1067
1071
|
};
|
|
1068
1072
|
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
|
|
1069
1073
|
if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
|
|
1070
|
-
result.inject =
|
|
1074
|
+
result.inject = options.inject.reduce((ret, inj) => {
|
|
1075
|
+
if (inj && typeof inj === "string" && ret.includes(inj)) {
|
|
1076
|
+
ret.push(inj);
|
|
1077
|
+
}
|
|
1078
|
+
return ret;
|
|
1079
|
+
}, result.inject);
|
|
1071
1080
|
}
|
|
1072
1081
|
delete result.entry;
|
|
1073
1082
|
delete result.outputPath;
|
|
@@ -1076,8 +1085,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1076
1085
|
}, "resolveOptions");
|
|
1077
1086
|
async function generatePackageJson(context2) {
|
|
1078
1087
|
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
1079
|
-
|
|
1080
|
-
const stopwatch =
|
|
1088
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
1089
|
+
const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, "Write package.json file");
|
|
1081
1090
|
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
1082
1091
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1083
1092
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -1150,8 +1159,8 @@ async function generateContext(getOptions) {
|
|
|
1150
1159
|
}
|
|
1151
1160
|
_chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
|
|
1152
1161
|
async function executeEsBuild(context2) {
|
|
1153
|
-
|
|
1154
|
-
const stopwatch =
|
|
1162
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
1163
|
+
const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
1155
1164
|
if (process.env.STORM_WATCH) {
|
|
1156
1165
|
const ctx = await esbuild2.context(context2.options);
|
|
1157
1166
|
watch(ctx, context2.options);
|
|
@@ -1160,6 +1169,10 @@ async function executeEsBuild(context2) {
|
|
|
1160
1169
|
...context2.options
|
|
1161
1170
|
};
|
|
1162
1171
|
options.outdir = _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
|
|
1172
|
+
if (!options.inject || !Array.isArray(options.inject) || options.inject.length === 0 || // eslint-disable-next-line no-constant-binary-expression, @typescript-eslint/no-explicit-any
|
|
1173
|
+
options.inject === {}) {
|
|
1174
|
+
delete options.inject;
|
|
1175
|
+
}
|
|
1163
1176
|
delete options.env;
|
|
1164
1177
|
delete options.name;
|
|
1165
1178
|
delete options.assets;
|
|
@@ -1181,8 +1194,8 @@ async function executeEsBuild(context2) {
|
|
|
1181
1194
|
delete options.config;
|
|
1182
1195
|
delete options.injectShims;
|
|
1183
1196
|
delete options.external;
|
|
1184
|
-
|
|
1185
|
-
${
|
|
1197
|
+
_chunkZ7QQFXLCjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
|
|
1198
|
+
${_chunkZ7QQFXLCjs.formatLogMessage.call(void 0, options)}`, context2.options.config);
|
|
1186
1199
|
const result = await esbuild2.build(options);
|
|
1187
1200
|
await esbuild2.stop();
|
|
1188
1201
|
if (result.metafile) {
|
|
@@ -1194,9 +1207,9 @@ ${_chunkSPRQWSBEjs.formatLogMessage.call(void 0, options)}`, context2.options.co
|
|
|
1194
1207
|
}
|
|
1195
1208
|
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1196
1209
|
async function copyBuildAssets(context2) {
|
|
1197
|
-
if (_optionalChain([context2, 'access',
|
|
1198
|
-
|
|
1199
|
-
const stopwatch =
|
|
1210
|
+
if (_optionalChain([context2, 'access', _49 => _49.result, 'optionalAccess', _50 => _50.errors, 'access', _51 => _51.length]) === 0) {
|
|
1211
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1212
|
+
const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1200
1213
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
1201
1214
|
stopwatch();
|
|
1202
1215
|
}
|
|
@@ -1204,11 +1217,11 @@ async function copyBuildAssets(context2) {
|
|
|
1204
1217
|
}
|
|
1205
1218
|
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
1206
1219
|
async function reportResults(context2) {
|
|
1207
|
-
if (_optionalChain([context2, 'access',
|
|
1220
|
+
if (_optionalChain([context2, 'access', _52 => _52.result, 'optionalAccess', _53 => _53.errors, 'access', _54 => _54.length]) === 0) {
|
|
1208
1221
|
if (context2.result.warnings.length > 0) {
|
|
1209
|
-
|
|
1222
|
+
_chunkZ7QQFXLCjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
1210
1223
|
}
|
|
1211
|
-
|
|
1224
|
+
_chunkZ7QQFXLCjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
1212
1225
|
}
|
|
1213
1226
|
}
|
|
1214
1227
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -1244,8 +1257,8 @@ async function dependencyCheck(options) {
|
|
|
1244
1257
|
_chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
1245
1258
|
async function cleanOutputPath(context2) {
|
|
1246
1259
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
1247
|
-
|
|
1248
|
-
const stopwatch =
|
|
1260
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
1261
|
+
const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
1249
1262
|
await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
|
|
1250
1263
|
stopwatch();
|
|
1251
1264
|
}
|
|
@@ -1253,8 +1266,8 @@ async function cleanOutputPath(context2) {
|
|
|
1253
1266
|
}
|
|
1254
1267
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1255
1268
|
async function build3(options) {
|
|
1256
|
-
|
|
1257
|
-
const stopwatch =
|
|
1269
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1270
|
+
const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
1258
1271
|
try {
|
|
1259
1272
|
const opts = Array.isArray(options) ? options : [
|
|
1260
1273
|
options
|
|
@@ -1264,9 +1277,9 @@ async function build3(options) {
|
|
|
1264
1277
|
}
|
|
1265
1278
|
void transduce.async(opts, dependencyCheck);
|
|
1266
1279
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
1267
|
-
|
|
1280
|
+
_chunkZ7QQFXLCjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1268
1281
|
} catch (error) {
|
|
1269
|
-
|
|
1282
|
+
_chunkZ7QQFXLCjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1270
1283
|
throw error;
|
|
1271
1284
|
} finally {
|
|
1272
1285
|
stopwatch();
|
|
@@ -1294,9 +1307,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1294
1307
|
return context2.rebuild();
|
|
1295
1308
|
});
|
|
1296
1309
|
if (rebuildResult instanceof Error) {
|
|
1297
|
-
|
|
1310
|
+
_chunkZ7QQFXLCjs.writeError.call(void 0, rebuildResult.message);
|
|
1298
1311
|
}
|
|
1299
|
-
|
|
1312
|
+
_chunkZ7QQFXLCjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1300
1313
|
}, 10);
|
|
1301
1314
|
changeWatcher.on("change", fastRebuild);
|
|
1302
1315
|
return void 0;
|
|
@@ -1304,15 +1317,15 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1304
1317
|
|
|
1305
1318
|
// src/executors/esbuild/executor.ts
|
|
1306
1319
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1307
|
-
|
|
1308
|
-
if (!_optionalChain([context2, 'access',
|
|
1320
|
+
_chunkZ7QQFXLCjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1321
|
+
if (!_optionalChain([context2, 'access', _55 => _55.projectsConfigurations, 'optionalAccess', _56 => _56.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _57 => _57.projectsConfigurations, 'access', _58 => _58.projects, 'access', _59 => _59[context2.projectName], 'optionalAccess', _60 => _60.root])) {
|
|
1309
1322
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1310
1323
|
}
|
|
1311
1324
|
await build3({
|
|
1312
1325
|
...options,
|
|
1313
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
1326
|
+
projectRoot: _optionalChain([context2, 'access', _61 => _61.projectsConfigurations, 'access', _62 => _62.projects, 'optionalAccess', _63 => _63[context2.projectName], 'access', _64 => _64.root]),
|
|
1314
1327
|
projectName: context2.projectName,
|
|
1315
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
1328
|
+
sourceRoot: _optionalChain([context2, 'access', _65 => _65.projectsConfigurations, 'access', _66 => _66.projects, 'optionalAccess', _67 => _67[context2.projectName], 'optionalAccess', _68 => _68.sourceRoot]),
|
|
1316
1329
|
format: options.format,
|
|
1317
1330
|
platform: options.format
|
|
1318
1331
|
});
|
|
@@ -1321,7 +1334,7 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
1321
1334
|
};
|
|
1322
1335
|
}
|
|
1323
1336
|
_chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
1324
|
-
var executor_default =
|
|
1337
|
+
var executor_default = _chunkW6XC45WYjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
|
|
1325
1338
|
skipReadingConfig: false,
|
|
1326
1339
|
hooks: {
|
|
1327
1340
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -13,7 +13,7 @@ var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkZ7QQFXLCjs = require('./chunk-Z7QQFXLC.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -244,16 +244,16 @@ var _version = require('nx/src/command-line/release/version');
|
|
|
244
244
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
245
245
|
var _semver3 = require('semver');
|
|
246
246
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
247
|
-
|
|
247
|
+
_chunkZ7QQFXLCjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
248
248
|
|
|
249
249
|
`, config);
|
|
250
|
-
const stopwatch =
|
|
250
|
+
const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
251
251
|
try {
|
|
252
252
|
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
253
|
-
|
|
253
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
254
254
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
255
|
-
config = await
|
|
256
|
-
|
|
255
|
+
config = await _chunkZ7QQFXLCjs.getConfig.call(void 0, workspaceRoot);
|
|
256
|
+
_chunkZ7QQFXLCjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
257
257
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
258
258
|
const versionData = {};
|
|
259
259
|
if (options.specifier) {
|
|
@@ -304,9 +304,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
304
304
|
}
|
|
305
305
|
const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
|
|
306
306
|
const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
|
|
307
|
-
|
|
307
|
+
_chunkZ7QQFXLCjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
308
308
|
}, "log");
|
|
309
|
-
|
|
309
|
+
_chunkZ7QQFXLCjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
310
310
|
let packageName;
|
|
311
311
|
let currentVersionFromDisk;
|
|
312
312
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -580,7 +580,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
await _devkit.formatFiles.call(void 0, tree);
|
|
583
|
-
|
|
583
|
+
_chunkZ7QQFXLCjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
|
|
584
584
|
`, config);
|
|
585
585
|
return {
|
|
586
586
|
data: versionData,
|
|
@@ -614,8 +614,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
614
614
|
}, "callback")
|
|
615
615
|
};
|
|
616
616
|
} catch (error) {
|
|
617
|
-
|
|
618
|
-
|
|
617
|
+
_chunkZ7QQFXLCjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
|
|
618
|
+
_chunkZ7QQFXLCjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
|
|
619
619
|
- Details: ${error.message}
|
|
620
620
|
- Stacktrace: ${error.stack}`, config);
|
|
621
621
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|