@storm-software/workspace-tools 1.264.22 → 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 +8 -0
- 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-KFDASQGA.js → chunk-5HKVKVGO.js} +60 -56
- 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-L56XXV3B.mjs → chunk-KZEIFYBW.mjs} +10 -6
- 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-BHZDUmGV.d.ts → executor-Bl_R7eWL.d.mts} +2 -2
- package/dist/{executor-BeYtFLmD.d.mts → executor-CQREXH1r.d.mts} +2 -2
- package/dist/{executor-CqRyjFhC.d.mts → 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 +11 -11
- 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 +18 -18
- 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.mts → types-DK9-a60Q.d.mts} +21 -5
- package/dist/{types-DdLUCAjP.d.ts → 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,14 @@
|
|
|
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
|
+
|
|
5
13
|
## [1.264.22](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.264.22) (2025-03-18)
|
|
6
14
|
|
|
7
15
|
### Miscellaneous
|
|
@@ -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,
|
|
@@ -1081,8 +1085,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1081
1085
|
}, "resolveOptions");
|
|
1082
1086
|
async function generatePackageJson(context2) {
|
|
1083
1087
|
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
1084
|
-
|
|
1085
|
-
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");
|
|
1086
1090
|
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
1087
1091
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1088
1092
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -1155,8 +1159,8 @@ async function generateContext(getOptions) {
|
|
|
1155
1159
|
}
|
|
1156
1160
|
_chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
|
|
1157
1161
|
async function executeEsBuild(context2) {
|
|
1158
|
-
|
|
1159
|
-
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`);
|
|
1160
1164
|
if (process.env.STORM_WATCH) {
|
|
1161
1165
|
const ctx = await esbuild2.context(context2.options);
|
|
1162
1166
|
watch(ctx, context2.options);
|
|
@@ -1190,8 +1194,8 @@ async function executeEsBuild(context2) {
|
|
|
1190
1194
|
delete options.config;
|
|
1191
1195
|
delete options.injectShims;
|
|
1192
1196
|
delete options.external;
|
|
1193
|
-
|
|
1194
|
-
${
|
|
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);
|
|
1195
1199
|
const result = await esbuild2.build(options);
|
|
1196
1200
|
await esbuild2.stop();
|
|
1197
1201
|
if (result.metafile) {
|
|
@@ -1203,9 +1207,9 @@ ${_chunkSPRQWSBEjs.formatLogMessage.call(void 0, options)}`, context2.options.co
|
|
|
1203
1207
|
}
|
|
1204
1208
|
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1205
1209
|
async function copyBuildAssets(context2) {
|
|
1206
|
-
if (_optionalChain([context2, 'access',
|
|
1207
|
-
|
|
1208
|
-
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`);
|
|
1209
1213
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
1210
1214
|
stopwatch();
|
|
1211
1215
|
}
|
|
@@ -1213,11 +1217,11 @@ async function copyBuildAssets(context2) {
|
|
|
1213
1217
|
}
|
|
1214
1218
|
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
1215
1219
|
async function reportResults(context2) {
|
|
1216
|
-
if (_optionalChain([context2, 'access',
|
|
1220
|
+
if (_optionalChain([context2, 'access', _52 => _52.result, 'optionalAccess', _53 => _53.errors, 'access', _54 => _54.length]) === 0) {
|
|
1217
1221
|
if (context2.result.warnings.length > 0) {
|
|
1218
|
-
|
|
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);
|
|
1219
1223
|
}
|
|
1220
|
-
|
|
1224
|
+
_chunkZ7QQFXLCjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
1221
1225
|
}
|
|
1222
1226
|
}
|
|
1223
1227
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -1253,8 +1257,8 @@ async function dependencyCheck(options) {
|
|
|
1253
1257
|
_chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
1254
1258
|
async function cleanOutputPath(context2) {
|
|
1255
1259
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
1256
|
-
|
|
1257
|
-
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`);
|
|
1258
1262
|
await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
|
|
1259
1263
|
stopwatch();
|
|
1260
1264
|
}
|
|
@@ -1262,8 +1266,8 @@ async function cleanOutputPath(context2) {
|
|
|
1262
1266
|
}
|
|
1263
1267
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1264
1268
|
async function build3(options) {
|
|
1265
|
-
|
|
1266
|
-
const stopwatch =
|
|
1269
|
+
_chunkZ7QQFXLCjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1270
|
+
const stopwatch = _chunkZ7QQFXLCjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
1267
1271
|
try {
|
|
1268
1272
|
const opts = Array.isArray(options) ? options : [
|
|
1269
1273
|
options
|
|
@@ -1273,9 +1277,9 @@ async function build3(options) {
|
|
|
1273
1277
|
}
|
|
1274
1278
|
void transduce.async(opts, dependencyCheck);
|
|
1275
1279
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
1276
|
-
|
|
1280
|
+
_chunkZ7QQFXLCjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1277
1281
|
} catch (error) {
|
|
1278
|
-
|
|
1282
|
+
_chunkZ7QQFXLCjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1279
1283
|
throw error;
|
|
1280
1284
|
} finally {
|
|
1281
1285
|
stopwatch();
|
|
@@ -1303,9 +1307,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1303
1307
|
return context2.rebuild();
|
|
1304
1308
|
});
|
|
1305
1309
|
if (rebuildResult instanceof Error) {
|
|
1306
|
-
|
|
1310
|
+
_chunkZ7QQFXLCjs.writeError.call(void 0, rebuildResult.message);
|
|
1307
1311
|
}
|
|
1308
|
-
|
|
1312
|
+
_chunkZ7QQFXLCjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1309
1313
|
}, 10);
|
|
1310
1314
|
changeWatcher.on("change", fastRebuild);
|
|
1311
1315
|
return void 0;
|
|
@@ -1313,15 +1317,15 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1313
1317
|
|
|
1314
1318
|
// src/executors/esbuild/executor.ts
|
|
1315
1319
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1316
|
-
|
|
1317
|
-
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])) {
|
|
1318
1322
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1319
1323
|
}
|
|
1320
1324
|
await build3({
|
|
1321
1325
|
...options,
|
|
1322
|
-
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]),
|
|
1323
1327
|
projectName: context2.projectName,
|
|
1324
|
-
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]),
|
|
1325
1329
|
format: options.format,
|
|
1326
1330
|
platform: options.format
|
|
1327
1331
|
});
|
|
@@ -1330,7 +1334,7 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
1330
1334
|
};
|
|
1331
1335
|
}
|
|
1332
1336
|
_chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
1333
|
-
var executor_default =
|
|
1337
|
+
var executor_default = _chunkW6XC45WYjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
|
|
1334
1338
|
skipReadingConfig: false,
|
|
1335
1339
|
hooks: {
|
|
1336
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
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2JSGLAYYjs = require('./chunk-2JSGLAYY.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -229,7 +229,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
229
229
|
return null;
|
|
230
230
|
}
|
|
231
231
|
_chunk3GQAWCBQjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
|
|
232
|
-
var generator_default =
|
|
232
|
+
var generator_default = _chunk2JSGLAYYjs.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
|
|
233
233
|
|
|
234
234
|
|
|
235
235
|
|
|
@@ -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');
|
|
@@ -20,7 +20,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
20
20
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
21
21
|
}
|
|
22
22
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
23
|
-
var executor_default =
|
|
23
|
+
var executor_default = _chunkW6XC45WYjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
|
|
24
24
|
skipReadingConfig: false,
|
|
25
25
|
hooks: {
|
|
26
26
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|