@storm-software/workspace-tools 1.239.5 → 1.239.6
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 +14 -0
- package/README.md +1 -1
- package/dist/{chunk-VTNJFMZL.js → chunk-2VV3TV3C.js} +2 -2
- package/dist/{chunk-SOQA673K.mjs → chunk-34RUITCL.mjs} +5 -5
- package/dist/{chunk-SMQLC4ZD.js → chunk-3LJCHADS.js} +5 -5
- package/dist/{chunk-STENKYWN.js → chunk-4AOGBZNI.js} +2 -2
- package/dist/{chunk-CT2M6P5R.js → chunk-4ZKSU75O.js} +11 -11
- package/dist/{chunk-KTQJ3BYS.js → chunk-5HAR4KEC.js} +9 -9
- package/dist/{chunk-7ZQ2E7DU.mjs → chunk-762D6XMQ.mjs} +1 -1
- package/dist/{chunk-PYLFT2B6.mjs → chunk-7HUOKMPU.mjs} +1 -1
- package/dist/{chunk-LQSCFXXH.mjs → chunk-AJ7WQHX5.mjs} +1 -1
- package/dist/{chunk-UR7LTGOY.js → chunk-APBDTIK2.js} +2 -2
- package/dist/{chunk-OCZKMQKV.mjs → chunk-BFKQCOQJ.mjs} +1 -1
- package/dist/{chunk-FDQROX6T.js → chunk-BJAK7EVK.js} +4 -4
- package/dist/{chunk-B2TMWHSQ.js → chunk-CRMDACYF.js} +20 -20
- package/dist/{chunk-TDO6POJN.js → chunk-EGBJI6CN.js} +15 -15
- package/dist/{chunk-NOGV45XZ.mjs → chunk-FOYWFRVO.mjs} +3 -3
- package/dist/{chunk-BQ6QQEKM.js → chunk-GRU36BAP.js} +41 -41
- package/dist/{chunk-IFT7I2FJ.js → chunk-HCEVPME2.js} +9 -9
- package/dist/{chunk-VNRL6EUK.mjs → chunk-HLVPVUIE.mjs} +5 -5
- package/dist/{chunk-XV2NPRXT.mjs → chunk-HO2DSAZ2.mjs} +1 -1
- package/dist/{chunk-3BU4E3N6.mjs → chunk-I5N7XQEK.mjs} +1 -1
- package/dist/{chunk-GIIOK5XW.mjs → chunk-INGLAMPC.mjs} +4 -4
- package/dist/{chunk-IF2P52VQ.mjs → chunk-JE4JY3YS.mjs} +1 -1
- package/dist/{chunk-FTCEJETR.mjs → chunk-JKJK4ONU.mjs} +3 -3
- package/dist/{chunk-SLVOLY6P.mjs → chunk-JXMDPU4I.mjs} +3 -3
- package/dist/{chunk-YP6KREBX.mjs → chunk-M4PPRKPX.mjs} +2 -2
- package/dist/{chunk-JES75APB.mjs → chunk-MFWYLIWY.mjs} +2 -2
- package/dist/{chunk-7DG4BPDH.js → chunk-MQAKNE4X.js} +5 -5
- package/dist/{chunk-FZRFNRJT.js → chunk-NOVYFOO2.js} +31 -31
- package/dist/{chunk-E42HWC4D.js → chunk-NWSV2EYZ.js} +2 -2
- package/dist/{chunk-BWUHOT6F.mjs → chunk-NYX3ICKR.mjs} +103 -50
- package/dist/{chunk-RER3HTR4.js → chunk-PB6J3FU7.js} +2 -2
- package/dist/{chunk-XV57DEOH.mjs → chunk-QLOTS3MH.mjs} +1 -1
- package/dist/{chunk-M3X4P6AT.js → chunk-RN4QXP7F.js} +111 -58
- package/dist/{chunk-WO3SOZPT.mjs → chunk-RRQ7WHLD.mjs} +2 -2
- package/dist/{chunk-3W2Z7D4U.js → chunk-SBHOAJIT.js} +2 -2
- package/dist/{chunk-ODVU2NXI.mjs → chunk-SC3ANGC5.mjs} +2 -2
- package/dist/{chunk-BUKUNOCV.js → chunk-SGSMEZWT.js} +2 -2
- package/dist/{chunk-6SV7BVD4.mjs → chunk-WGNNLNSH.mjs} +1 -1
- package/dist/{chunk-BNVJA74D.js → chunk-Y7RQKDIF.js} +2 -2
- package/dist/{chunk-LSUHHBAM.js → chunk-YVJY3MXR.js} +2 -2
- package/dist/{executor-B4MiexNw.d.ts → executor-BHwhDrL-.d.ts} +1 -1
- package/dist/{executor-C8vSwRW1.d.ts → executor-BW_5lER2.d.ts} +1 -1
- package/dist/{executor-qCehbH9x.d.mts → executor-Bk4ug-RW.d.mts} +1 -1
- package/dist/{executor-BqpvCbj5.d.ts → executor-CIGyZdrv.d.ts} +1 -1
- package/dist/{executor-D8m1bXgk.d.mts → executor-C_QU1lUw.d.mts} +1 -1
- package/dist/{executor-5Wog21g_.d.mts → executor-D2o23AZj.d.mts} +1 -1
- package/dist/{executor-hq_H_ICT.d.mts → executor-DL3jAzFW.d.mts} +1 -1
- package/dist/{executor-D5hcfG7B.d.ts → executor-DOFe9F7c.d.ts} +1 -1
- package/dist/{executor-U929Bp8J.d.ts → executor-hDJ0Fk_g.d.ts} +1 -1
- package/dist/{executor-CqbWU1uP.d.mts → executor-ozBp5rj1.d.mts} +1 -1
- package/dist/executors.d.mts +6 -6
- package/dist/executors.d.ts +6 -6
- package/dist/executors.js +14 -14
- package/dist/executors.mjs +13 -13
- package/dist/{generator-BLYdn00o.d.mts → generator-BNM0qnMp.d.mts} +1 -1
- package/dist/{generator-48_WHnGL.d.mts → generator-BPXY7sqO.d.mts} +1 -1
- package/dist/{generator-Dyq3mgZU.d.mts → generator-BS6uKMIL.d.mts} +2 -2
- package/dist/{generator-DeKyhxAj.d.mts → generator-BsxAYGR_.d.mts} +2 -2
- package/dist/{generator-OLytwpdD.d.ts → generator-CFxhJoNw.d.ts} +2 -2
- package/dist/{generator-T2p5gT0C.d.ts → generator-CiDljAEY.d.ts} +2 -2
- package/dist/{generator-noL-xIjx.d.ts → generator-CiNaIUED.d.ts} +1 -1
- package/dist/{generator-BufhnJev.d.ts → generator-DDW7kns9.d.ts} +2 -2
- package/dist/{generator-BqzpDHpv.d.mts → generator-DatrLGpK.d.mts} +2 -2
- package/dist/{generator-DeNfAL1R.d.ts → generator-QTX2Ix9P.d.ts} +1 -1
- package/dist/{generator-CC8n6BWL.d.mts → generator-c8PBxLhH.d.mts} +2 -2
- package/dist/{generator-CtpgcwxE.d.ts → generator-ymaJQAJP.d.ts} +2 -2
- 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 +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +21 -21
- package/dist/index.mjs +20 -20
- package/dist/src/base/base-executor.d.mts +2 -2
- package/dist/src/base/base-executor.d.ts +2 -2
- 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 +2 -2
- package/dist/src/base/base-generator.d.ts +2 -2
- 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 +2 -2
- package/dist/src/base/index.d.ts +2 -2
- 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 +1 -1
- package/dist/src/executors/clean-package/executor.d.ts +1 -1
- 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 +5 -5
- package/dist/src/executors/esbuild/executor.mjs +4 -4
- 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/tsdown/executor.d.mts +2 -2
- package/dist/src/executors/tsdown/executor.d.ts +2 -2
- package/dist/src/executors/tsdown/executor.js +5 -5
- package/dist/src/executors/tsdown/executor.mjs +4 -4
- 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 +1 -1
- package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
- 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-BmsLBqaq.d.ts → types-Bd83s-qg.d.ts} +1 -1
- package/dist/{types-CQzaS20Q.d.mts → types-CYi2oThM.d.mts} +1 -1
- package/dist/{types-D9vU63tt.d.ts → types-zrlItIRw.d.mts} +3 -3
- package/dist/{types-D9vU63tt.d.mts → types-zrlItIRw.d.ts} +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.239.6 (2025-01-22)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous
|
|
4
|
+
|
|
5
|
+
- **monorepo:** Update the workspace's `storm.json` config to use the new preset repository ([95067c70](https://github.com/storm-software/storm-ops/commit/95067c70))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated prettier to 0.30.3
|
|
10
|
+
- Updated esbuild to 0.21.3
|
|
11
|
+
- Updated unbuild to 0.30.6
|
|
12
|
+
- Updated unbuild to 0.30.6
|
|
13
|
+
- Updated tsdown to 0.22.3
|
|
14
|
+
|
|
1
15
|
## 1.239.5 (2025-01-22)
|
|
2
16
|
|
|
3
17
|
### Bug Fixes
|
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 -->
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkEGBJI6CNjs = require('./chunk-EGBJI6CN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -70,7 +70,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
70
70
|
return null;
|
|
71
71
|
}
|
|
72
72
|
_chunk3GQAWCBQjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
|
|
73
|
-
var generator_default =
|
|
73
|
+
var generator_default = _chunkEGBJI6CNjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
|
|
74
74
|
hooks: {
|
|
75
75
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
76
76
|
options.description ??= "A library used by Storm Software to support browser applications";
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
getEntryPoints,
|
|
9
9
|
getEnv,
|
|
10
10
|
getOutExtension
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-INGLAMPC.mjs";
|
|
12
12
|
import {
|
|
13
13
|
withRunExecutor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JKJK4ONU.mjs";
|
|
15
15
|
import {
|
|
16
|
+
getConfig,
|
|
16
17
|
getStopwatch,
|
|
17
18
|
isVerbose,
|
|
18
|
-
loadStormConfig,
|
|
19
19
|
writeDebug,
|
|
20
20
|
writeError,
|
|
21
21
|
writeFatal,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
writeSuccess,
|
|
24
24
|
writeTrace,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NYX3ICKR.mjs";
|
|
27
27
|
import {
|
|
28
28
|
joinPaths
|
|
29
29
|
} from "./chunk-PVTEDLBL.mjs";
|
|
@@ -713,7 +713,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
713
713
|
if (!workspaceRoot) {
|
|
714
714
|
throw new Error("Cannot find Nx workspace root");
|
|
715
715
|
}
|
|
716
|
-
const config = await
|
|
716
|
+
const config = await getConfig(workspaceRoot.dir);
|
|
717
717
|
writeDebug(" \u2699\uFE0F Resolving build options", config);
|
|
718
718
|
const stopwatch = getStopwatch("Build options resolution");
|
|
719
719
|
const projectGraph = await createProjectGraphAsync({
|
|
@@ -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 _chunkCRMDACYFjs = require('./chunk-CRMDACYF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -18,7 +18,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
18
18
|
if (!_optionalChain([context, 'optionalAccess', _ => _.projectName]) || !_optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
19
19
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
_chunkRN4QXP7Fjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
22
22
|
_sizelimit2.default.call(void 0, [
|
|
23
23
|
_file2.default,
|
|
24
24
|
_esbuild2.default,
|
|
@@ -26,14 +26,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
26
26
|
], {
|
|
27
27
|
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, _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")), "src")))
|
|
28
28
|
}).then((result) => {
|
|
29
|
-
|
|
29
|
+
_chunkRN4QXP7Fjs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
30
30
|
});
|
|
31
31
|
return {
|
|
32
32
|
success: true
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
_chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunkCRMDACYFjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
37
37
|
skipReadingConfig: false,
|
|
38
38
|
hooks: {
|
|
39
39
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCRMDACYFjs = require('./chunk-CRMDACYF.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -19,7 +19,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
19
19
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
20
20
|
}
|
|
21
21
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
22
|
-
var executor_default =
|
|
22
|
+
var executor_default = _chunkCRMDACYFjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
|
|
23
23
|
skipReadingConfig: false,
|
|
24
24
|
hooks: {
|
|
25
25
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -13,7 +13,7 @@ var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -248,16 +248,16 @@ var _version = require('nx/src/command-line/release/version');
|
|
|
248
248
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
249
249
|
var _semver3 = require('semver');
|
|
250
250
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
251
|
-
|
|
251
|
+
_chunkRN4QXP7Fjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
252
252
|
|
|
253
253
|
`, config);
|
|
254
|
-
const stopwatch =
|
|
254
|
+
const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
255
255
|
try {
|
|
256
256
|
const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
|
|
257
|
-
|
|
257
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
258
258
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
259
|
-
config = await
|
|
260
|
-
|
|
259
|
+
config = await _chunkRN4QXP7Fjs.getConfig.call(void 0, workspaceRoot);
|
|
260
|
+
_chunkRN4QXP7Fjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
261
261
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
262
262
|
const versionData = {};
|
|
263
263
|
if (options.specifier) {
|
|
@@ -307,9 +307,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
307
307
|
}
|
|
308
308
|
const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
|
|
309
309
|
const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
|
|
310
|
-
|
|
310
|
+
_chunkRN4QXP7Fjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
311
311
|
}, "log");
|
|
312
|
-
|
|
312
|
+
_chunkRN4QXP7Fjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
313
313
|
let packageName;
|
|
314
314
|
let currentVersionFromDisk;
|
|
315
315
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -583,7 +583,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
await _devkit.formatFiles.call(void 0, tree);
|
|
586
|
-
|
|
586
|
+
_chunkRN4QXP7Fjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
|
|
587
587
|
`, config);
|
|
588
588
|
return {
|
|
589
589
|
data: versionData,
|
|
@@ -617,8 +617,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
617
617
|
}, "callback")
|
|
618
618
|
};
|
|
619
619
|
} catch (error) {
|
|
620
|
-
|
|
621
|
-
|
|
620
|
+
_chunkRN4QXP7Fjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
|
|
621
|
+
_chunkRN4QXP7Fjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
|
|
622
622
|
- Details: ${error.message}
|
|
623
623
|
- Stacktrace: ${error.stack}`, config);
|
|
624
624
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -38,7 +38,7 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
|
38
38
|
var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot) => {
|
|
39
39
|
let rootDir = workspaceRoot;
|
|
40
40
|
if (!rootDir) {
|
|
41
|
-
const config = await
|
|
41
|
+
const config = await _chunkRN4QXP7Fjs.getConfig.call(void 0, );
|
|
42
42
|
rootDir = config.workspaceRoot;
|
|
43
43
|
}
|
|
44
44
|
const nxJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, rootDir, "nx.json");
|
|
@@ -53,7 +53,7 @@ var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (w
|
|
|
53
53
|
var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson = true, includeSrc = false, banner, footer) => {
|
|
54
54
|
const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
|
|
55
55
|
pendingAssets.push({
|
|
56
|
-
input: projectRoot,
|
|
56
|
+
input: _chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot),
|
|
57
57
|
glob: "*.md",
|
|
58
58
|
output: "."
|
|
59
59
|
});
|
|
@@ -86,7 +86,7 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
86
86
|
if (!buildTarget) {
|
|
87
87
|
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
_chunkRN4QXP7Fjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
90
90
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
91
91
|
const result = await _js.copyAssets.call(void 0, {
|
|
92
92
|
assets: pendingAssets,
|
|
@@ -101,13 +101,13 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
101
101
|
projectsConfigurations,
|
|
102
102
|
nxJsonConfiguration: nxJson,
|
|
103
103
|
cwd: config.workspaceRoot,
|
|
104
|
-
isVerbose:
|
|
104
|
+
isVerbose: _chunkRN4QXP7Fjs.isVerbose.call(void 0, config.logLevel)
|
|
105
105
|
});
|
|
106
106
|
if (!result.success) {
|
|
107
107
|
throw new Error("The Build process failed trying to copy assets");
|
|
108
108
|
}
|
|
109
109
|
if (includeSrc === true) {
|
|
110
|
-
|
|
110
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
111
111
|
const files = await _glob.glob.call(void 0, [
|
|
112
112
|
_chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
113
113
|
_chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -145,7 +145,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
if (localPackages.length > 0) {
|
|
148
|
-
|
|
148
|
+
_chunkRN4QXP7Fjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
149
149
|
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
150
150
|
if (!ret[localPackage.name]) {
|
|
151
151
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
@@ -167,7 +167,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
167
167
|
return ret;
|
|
168
168
|
}, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
|
|
169
169
|
} else {
|
|
170
|
-
|
|
170
|
+
_chunkRN4QXP7Fjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
171
171
|
}
|
|
172
172
|
return packageJson;
|
|
173
173
|
}, "addPackageDependencies");
|
|
@@ -263,7 +263,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
263
263
|
results.push(...files.reduce((ret, filePath) => {
|
|
264
264
|
const result = _chunkXCSSYTCUjs.correctPaths.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, projectRoot), ""));
|
|
265
265
|
if (result) {
|
|
266
|
-
|
|
266
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
267
267
|
if (!results.includes(result)) {
|
|
268
268
|
results.push(result);
|
|
269
269
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCRMDACYFjs = require('./chunk-CRMDACYF.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoBuildExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkCRMDACYFjs.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkCRMDACYFjs = require('./chunk-CRMDACYF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
|
|
@@ -15,7 +15,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
15
15
|
var _defu = require('defu');
|
|
16
16
|
var _jiti = require('jiti');
|
|
17
17
|
async function unbuildExecutorFn(options, context, config) {
|
|
18
|
-
|
|
18
|
+
_chunkRN4QXP7Fjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
19
19
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
20
20
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
21
21
|
}
|
|
@@ -63,7 +63,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
66
|
-
var executor_default =
|
|
66
|
+
var executor_default = _chunkCRMDACYFjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
67
67
|
skipReadingConfig: false,
|
|
68
68
|
hooks: {
|
|
69
69
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -12,7 +12,7 @@ var _chunkXS73BPQSjs = require('./chunk-XS73BPQS.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -23,7 +23,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
// src/base/base-executor.ts
|
|
24
24
|
var _defu = require('defu');
|
|
25
25
|
var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config = {};
|
|
29
29
|
try {
|
|
@@ -35,25 +35,25 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
|
|
|
35
35
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
36
36
|
const projectName = context.projectName;
|
|
37
37
|
config.workspaceRoot = workspaceRoot;
|
|
38
|
-
|
|
38
|
+
_chunkRN4QXP7Fjs.writeInfo.call(void 0, `
|
|
39
39
|
\u26A1 Running the ${name} executor for ${projectName}
|
|
40
40
|
`, config);
|
|
41
41
|
if (!executorOptions.skipReadingConfig) {
|
|
42
|
-
|
|
42
|
+
_chunkRN4QXP7Fjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
43
43
|
- workspaceRoot: ${workspaceRoot}
|
|
44
44
|
- projectRoot: ${projectRoot}
|
|
45
45
|
- sourceRoot: ${sourceRoot}
|
|
46
46
|
- projectName: ${projectName}
|
|
47
47
|
`, config);
|
|
48
|
-
config = await
|
|
48
|
+
config = await _chunkRN4QXP7Fjs.getConfig.call(void 0, workspaceRoot);
|
|
49
49
|
}
|
|
50
50
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
51
|
-
|
|
51
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
52
52
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
53
|
-
|
|
53
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
${
|
|
55
|
+
_chunkRN4QXP7Fjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
56
|
+
${_chunkRN4QXP7Fjs.formatLogMessage.call(void 0, options)}
|
|
57
57
|
`, config);
|
|
58
58
|
const tokenized = await _chunkXS73BPQSjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
|
|
59
59
|
workspaceRoot,
|
|
@@ -62,13 +62,13 @@ ${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, options)}
|
|
|
62
62
|
projectName,
|
|
63
63
|
config
|
|
64
64
|
}, config, context.projectsConfigurations.projects[context.projectName]), _chunkXS73BPQSjs.applyWorkspaceProjectTokens);
|
|
65
|
-
|
|
66
|
-
${
|
|
65
|
+
_chunkRN4QXP7Fjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
66
|
+
${_chunkRN4QXP7Fjs.formatLogMessage.call(void 0, tokenized)}
|
|
67
67
|
`, config);
|
|
68
68
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
69
|
-
|
|
69
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
70
70
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
71
|
-
|
|
71
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
72
72
|
}
|
|
73
73
|
const ret = executorFn(tokenized, context, config);
|
|
74
74
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -78,26 +78,26 @@ ${_chunkM3X4P6ATjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
78
78
|
}
|
|
79
79
|
const result = await Promise.resolve(ret);
|
|
80
80
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
|
|
81
|
-
|
|
82
|
-
${
|
|
81
|
+
_chunkRN4QXP7Fjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
82
|
+
${_chunkRN4QXP7Fjs.formatLogMessage.call(void 0, result)}`, config);
|
|
83
83
|
console.error(result);
|
|
84
84
|
throw new Error(`The ${name} executor failed to run`, {
|
|
85
85
|
cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
89
|
-
|
|
89
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
90
90
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
91
|
-
|
|
91
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
_chunkRN4QXP7Fjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
94
94
|
`, config);
|
|
95
95
|
return {
|
|
96
96
|
success: true
|
|
97
97
|
};
|
|
98
98
|
} catch (error) {
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
_chunkRN4QXP7Fjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
100
|
+
_chunkRN4QXP7Fjs.writeError.call(void 0, `An exception was thrown in the executor's process
|
|
101
101
|
- Details: ${error.message}
|
|
102
102
|
- Stacktrace: ${error.stack}`, config);
|
|
103
103
|
return {
|
|
@@ -11,7 +11,7 @@ var _chunkXS73BPQSjs = require('./chunk-XS73BPQS.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkRN4QXP7Fjs = require('./chunk-RN4QXP7F.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.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 = _chunkRN4QXP7Fjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
_chunkRN4QXP7Fjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
31
31
|
|
|
32
32
|
`, config);
|
|
33
33
|
const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
|
|
34
34
|
if (!generatorOptions.skipReadingConfig) {
|
|
35
|
-
|
|
35
|
+
_chunkRN4QXP7Fjs.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 _chunkRN4QXP7Fjs.getConfig.call(void 0, workspaceRoot);
|
|
38
38
|
}
|
|
39
39
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
40
|
-
|
|
40
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
41
41
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
42
|
-
|
|
42
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
_chunkRN4QXP7Fjs.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 _chunkXS73BPQSjs.applyWorkspaceTokens.call(void 0, options, {
|
|
47
47
|
workspaceRoot: tree.root,
|
|
48
48
|
config
|
|
49
49
|
}, _chunkXS73BPQSjs.applyWorkspaceBaseTokens);
|
|
50
50
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
51
|
-
|
|
51
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
52
52
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
53
|
-
|
|
53
|
+
_chunkRN4QXP7Fjs.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
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
67
67
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
68
|
-
|
|
68
|
+
_chunkRN4QXP7Fjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
69
69
|
}
|
|
70
70
|
return () => {
|
|
71
|
-
|
|
71
|
+
_chunkRN4QXP7Fjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
72
72
|
`, config);
|
|
73
73
|
};
|
|
74
74
|
} catch (error) {
|
|
75
75
|
return () => {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
_chunkRN4QXP7Fjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
77
|
+
_chunkRN4QXP7Fjs.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
|
};
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
stringifyCargoToml
|
|
6
6
|
} from "./chunk-VYH45FO6.mjs";
|
|
7
7
|
import {
|
|
8
|
+
getConfig,
|
|
8
9
|
getStopwatch,
|
|
9
|
-
loadStormConfig,
|
|
10
10
|
writeDebug,
|
|
11
11
|
writeError,
|
|
12
12
|
writeFatal,
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeSuccess,
|
|
15
15
|
writeTrace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NYX3ICKR.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-DMUTOQCB.mjs";
|
|
@@ -256,7 +256,7 @@ async function releaseVersionGeneratorFn(tree, options, config) {
|
|
|
256
256
|
const workspaceRoot = findWorkspaceRoot();
|
|
257
257
|
writeDebug(`Loading the Storm Config from environment variables and storm.config.js file...
|
|
258
258
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
259
|
-
config = await
|
|
259
|
+
config = await getConfig(workspaceRoot);
|
|
260
260
|
writeTrace(`Generator schema options \u2699\uFE0F
|
|
261
261
|
${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
262
262
|
const versionData = {};
|