@storm-software/workspace-tools 1.264.17 → 1.264.18
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 +451 -226
- package/README.md +7 -7
- package/dist/{chunk-6WLEYOQF.js → chunk-3MWOC5X7.js} +2 -2
- package/dist/{chunk-LRNQGMXF.mjs → chunk-4UTIWEDA.mjs} +1 -1
- package/dist/{chunk-PGIKB4LI.mjs → chunk-5M3R4RLA.mjs} +1 -1
- package/dist/{chunk-B44EGIA5.mjs → chunk-5QWEZQFR.mjs} +1 -1
- package/dist/{chunk-PRBNESA3.js → chunk-5SK55RA7.js} +11 -11
- package/dist/{chunk-KGZ2OZNW.mjs → chunk-7A34G3TI.mjs} +1 -1
- package/dist/{chunk-YET5WGHJ.js → chunk-ASBO74YM.js} +5 -5
- package/dist/{chunk-EBP7GL4L.mjs → chunk-AUU7AFJV.mjs} +53 -4
- package/dist/{chunk-2PGDSXZU.mjs → chunk-AWUOBB3R.mjs} +1 -1
- package/dist/{chunk-PQ27QZOF.mjs → chunk-CEK44GFG.mjs} +1 -1
- package/dist/{chunk-3A63PAQ2.js → chunk-DJJEQUOE.js} +2 -2
- package/dist/{chunk-67DAOFEW.js → chunk-DYKPDBZQ.js} +2 -2
- package/dist/{chunk-6V33DY44.js → chunk-EEMX5TF7.js} +5 -5
- package/dist/{chunk-KURISY5P.mjs → chunk-FQSPQRIB.mjs} +1 -1
- package/dist/{chunk-F5AJY62N.mjs → chunk-HXCWS5GR.mjs} +1 -1
- package/dist/{chunk-BTRCUZD7.js → chunk-I44JBB55.js} +2 -2
- package/dist/{chunk-ZOJJNUIU.js → chunk-IFB5HNMT.js} +2 -2
- package/dist/{chunk-NXTMYDCW.js → chunk-IRPD2M2I.js} +2 -2
- package/dist/{chunk-5QD6IIAF.mjs → chunk-IRSGGDCX.mjs} +2 -2
- package/dist/{chunk-3BGF7S7Y.js → chunk-IVNDY2FE.js} +20 -20
- package/dist/{chunk-MCODRLX6.mjs → chunk-K5XDKCHY.mjs} +2 -2
- package/dist/{chunk-NSBUY2J2.js → chunk-KFT2TAHE.js} +2 -2
- package/dist/{chunk-NIW5HNFD.mjs → chunk-MHZ6V7XS.mjs} +1 -1
- package/dist/{chunk-RYGPTY75.mjs → chunk-NW4PIBL2.mjs} +1 -1
- package/dist/{chunk-OK2RRJWB.mjs → chunk-OBMMNTJQ.mjs} +2 -2
- package/dist/{chunk-Y6GFDAJL.js → chunk-P5WJDR64.js} +2 -2
- package/dist/{chunk-6JF3H2QJ.mjs → chunk-PUW5GKBJ.mjs} +1 -1
- package/dist/{chunk-PQLZX2GO.mjs → chunk-Q6PB2D4O.mjs} +2 -2
- package/dist/{chunk-VYAFH7RM.js → chunk-SPRQWSBE.js} +53 -4
- package/dist/{chunk-LPQBGYFC.js → chunk-SWKSEHJV.js} +15 -15
- package/dist/{chunk-F5NIZKZT.js → chunk-TFNKD3A2.js} +4 -4
- package/dist/{chunk-6D23MHU6.mjs → chunk-TYTLMYMZ.mjs} +1 -1
- package/dist/{chunk-5CXGHQW2.js → chunk-VGWC25SX.js} +2 -2
- package/dist/{chunk-KLUSECE7.mjs → chunk-WCGJHQTH.mjs} +2 -2
- package/dist/{chunk-R7MJYMRC.js → chunk-YCDNXKRB.js} +9 -9
- package/dist/{chunk-6LF4YU2P.js → chunk-YX566HFQ.js} +35 -35
- package/dist/{executor-CHRmY7wn.d.ts → executor-BHZDUmGV.d.ts} +1 -1
- package/dist/{executor-R_44c8dN.d.ts → executor-BSdK3i-c.d.ts} +1 -1
- package/dist/{executor-DotcoNb5.d.ts → executor-Ba3sXm2v.d.ts} +1 -1
- package/dist/{executor-kLAG_Uh0.d.mts → executor-BeYtFLmD.d.mts} +1 -1
- package/dist/{executor-C4zk52YE.d.ts → executor-C5FcAd29.d.ts} +1 -1
- package/dist/{executor-CfTJx0E3.d.mts → executor-CqRyjFhC.d.mts} +1 -1
- package/dist/{executor-KnByZ3Vj.d.mts → executor-D8PlrGW7.d.mts} +1 -1
- package/dist/{executor-BbBStgiZ.d.mts → executor-aaNF3iYy.d.mts} +1 -1
- 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-DWF0x5-p.d.mts → generator-BN20pTlZ.d.mts} +2 -2
- package/dist/{generator-Cbq0Bpwx.d.mts → generator-C77-chd9.d.mts} +2 -2
- package/dist/{generator-Ufzc88Fb.d.ts → generator-C8vM6WVl.d.ts} +1 -1
- package/dist/{generator-DkLHbk1Q.d.mts → generator-CDFD9683.d.mts} +2 -2
- package/dist/{generator-CbgW0ZB8.d.ts → generator-CDWEbKl9.d.ts} +2 -2
- package/dist/{generator-DWLUcY-m.d.mts → generator-CO80PAYg.d.mts} +2 -2
- package/dist/{generator-7Qr_nsE2.d.mts → generator-CPOA4iOa.d.mts} +1 -1
- package/dist/{generator-DIdGmT2e.d.mts → generator-CwtaXN68.d.mts} +1 -1
- package/dist/{generator-BEUPPjjZ.d.ts → generator-D1KDMMWv.d.ts} +2 -2
- package/dist/{generator-DhBo_-BD.d.ts → generator-DHaTv11N.d.ts} +1 -1
- package/dist/{generator-bQ0iNtEG.d.ts → generator-PWtPKnX3.d.ts} +2 -2
- package/dist/{generator-W-hgMr9s.d.ts → generator-ieAZPSV9.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 +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 +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 +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 +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-Cj24nD9S.d.ts → types-BhjX7nv_.d.ts} +1 -1
- package/dist/{types-CKlmYL_p.d.mts → types-DAkcs-RD.d.mts} +1 -1
- package/dist/{types-ZPi96OtS.d.mts → types-DdLUCAjP.d.mts} +41 -0
- package/dist/{types-ZPi96OtS.d.ts → types-DdLUCAjP.d.ts} +41 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<!-- markdownlint-disable -->
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
<div align="center"><img src="https://
|
|
6
|
+
<div align="center"><img src="https://public.storm-cdn.com/storm-banner.gif" width="100%" alt="Storm Software" /></div>
|
|
7
7
|
<br />
|
|
8
8
|
|
|
9
9
|
<div align="center">
|
|
@@ -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 -->
|
|
@@ -33,7 +33,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
33
33
|
<!-- prettier-ignore-end -->
|
|
34
34
|
|
|
35
35
|
<div align="center">
|
|
36
|
-
<b>Be sure to ⭐ this
|
|
36
|
+
<b>Be sure to ⭐ this <a href="https://github.com/storm-software/storm-ops" target="_blank">repository on GitHub</a> so you can keep up to date on any daily progress!</b>
|
|
37
37
|
</div>
|
|
38
38
|
|
|
39
39
|
<br />
|
|
@@ -525,7 +525,7 @@ specification. Contributions of any kind welcome!
|
|
|
525
525
|
<br />
|
|
526
526
|
|
|
527
527
|
<div align="center">
|
|
528
|
-
<img src="https://
|
|
528
|
+
<img src="https://public.storm-cdn.com/brand-banner.png" width="100%" alt="Storm Software" />
|
|
529
529
|
</div>
|
|
530
530
|
<br />
|
|
531
531
|
|
|
@@ -534,7 +534,7 @@ specification. Contributions of any kind welcome!
|
|
|
534
534
|
</div>
|
|
535
535
|
|
|
536
536
|
<div align="center">
|
|
537
|
-
<b>Fingerprint:</b>
|
|
537
|
+
<b>Fingerprint:</b> F47F 1853 BCAD DE9B 42C8 6316 9FDE EC95 47FE D106
|
|
538
538
|
</div>
|
|
539
539
|
<br />
|
|
540
540
|
|
|
@@ -557,9 +557,9 @@ channel!
|
|
|
557
557
|
|
|
558
558
|
<br />
|
|
559
559
|
|
|
560
|
-
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://
|
|
560
|
+
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/icon-fill.png" alt="Storm Software" width="200px"/></a></div>
|
|
561
561
|
<br />
|
|
562
|
-
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://
|
|
562
|
+
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/visit-us-text.svg" alt="Visit us at stormsoftware.com" height="90px"/></a></div>
|
|
563
563
|
|
|
564
564
|
<br />
|
|
565
565
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIVNDY2FEjs = require('./chunk-IVNDY2FE.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 = _chunkIVNDY2FEjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
|
|
24
24
|
skipReadingConfig: false,
|
|
25
25
|
hooks: {
|
|
26
26
|
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 _chunkSPRQWSBEjs = require('./chunk-SPRQWSBE.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -245,16 +245,16 @@ var _version = require('nx/src/command-line/release/version');
|
|
|
245
245
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
246
246
|
var _semver3 = require('semver');
|
|
247
247
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
248
|
-
|
|
248
|
+
_chunkSPRQWSBEjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
249
249
|
|
|
250
250
|
`, config);
|
|
251
|
-
const stopwatch =
|
|
251
|
+
const stopwatch = _chunkSPRQWSBEjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
252
252
|
try {
|
|
253
253
|
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
254
|
-
|
|
254
|
+
_chunkSPRQWSBEjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
255
255
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
256
|
-
config = await
|
|
257
|
-
|
|
256
|
+
config = await _chunkSPRQWSBEjs.getConfig.call(void 0, workspaceRoot);
|
|
257
|
+
_chunkSPRQWSBEjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
258
258
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
259
259
|
const versionData = {};
|
|
260
260
|
if (options.specifier) {
|
|
@@ -305,9 +305,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
305
305
|
}
|
|
306
306
|
const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
|
|
307
307
|
const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
|
|
308
|
-
|
|
308
|
+
_chunkSPRQWSBEjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
309
309
|
}, "log");
|
|
310
|
-
|
|
310
|
+
_chunkSPRQWSBEjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
311
311
|
let packageName;
|
|
312
312
|
let currentVersionFromDisk;
|
|
313
313
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -581,7 +581,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
await _devkit.formatFiles.call(void 0, tree);
|
|
584
|
-
|
|
584
|
+
_chunkSPRQWSBEjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
|
|
585
585
|
`, config);
|
|
586
586
|
return {
|
|
587
587
|
data: versionData,
|
|
@@ -615,8 +615,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
615
615
|
}, "callback")
|
|
616
616
|
};
|
|
617
617
|
} catch (error) {
|
|
618
|
-
|
|
619
|
-
|
|
618
|
+
_chunkSPRQWSBEjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
|
|
619
|
+
_chunkSPRQWSBEjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
|
|
620
620
|
- Details: ${error.message}
|
|
621
621
|
- Stacktrace: ${error.stack}`, config);
|
|
622
622
|
throw new Error(`An exception was thrown in the Storm Release Version generator's process
|
|
@@ -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 _chunkIVNDY2FEjs = require('./chunk-IVNDY2FE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSPRQWSBEjs = require('./chunk-SPRQWSBE.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
|
+
_chunkSPRQWSBEjs.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
|
+
_chunkSPRQWSBEjs.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 = _chunkIVNDY2FEjs.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) => {
|
|
@@ -15,15 +15,22 @@ import z from "zod";
|
|
|
15
15
|
// ../config/src/constants.ts
|
|
16
16
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
17
17
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
18
|
+
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
18
19
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
19
20
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
20
|
-
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/
|
|
21
|
+
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
22
|
+
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
23
|
+
var STORM_DEFAULT_ACCOUNT_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
24
|
+
var STORM_DEFAULT_ACCOUNT_TELEGRAM = "https://t.me/storm_software";
|
|
25
|
+
var STORM_DEFAULT_ACCOUNT_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
|
|
26
|
+
var STORM_DEFAULT_ACCOUNT_MEDIUM = "https://medium.com/storm-software";
|
|
27
|
+
var STORM_DEFAULT_ACCOUNT_GITHUB = "https://github.com/storm-software";
|
|
21
28
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
22
|
-
|
|
29
|
+
Storm Software is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
23
30
|
|
|
24
|
-
Join us on [Discord](
|
|
31
|
+
Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
25
32
|
|
|
26
|
-
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](
|
|
33
|
+
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_ACCOUNT_SLACK}) channel!
|
|
27
34
|
`;
|
|
28
35
|
|
|
29
36
|
// ../config/src/schema.ts
|
|
@@ -119,6 +126,14 @@ var WorkspaceReleaseConfigSchema = z.object({
|
|
|
119
126
|
header: z.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
|
|
120
127
|
footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
|
|
121
128
|
}).describe("The workspace's release config used during the release process");
|
|
129
|
+
var WorkspaceAccountConfigSchema = z.object({
|
|
130
|
+
twitter: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
131
|
+
discord: z.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
132
|
+
telegram: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
133
|
+
slack: z.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
|
|
134
|
+
medium: z.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
135
|
+
github: z.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
136
|
+
}).describe("The workspace's account config used to store various social media links");
|
|
122
137
|
var WorkspaceDirectoryConfigSchema = z.object({
|
|
123
138
|
cache: z.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
124
139
|
data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
@@ -138,11 +153,13 @@ var StormConfigSchema = z.object({
|
|
|
138
153
|
homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
139
154
|
docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
140
155
|
licensing: z.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
156
|
+
contact: z.string().trim().url().default(STORM_DEFAULT_CONTACT).describe("The base contact site for the workspace"),
|
|
141
157
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
142
158
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
143
159
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
144
160
|
bot: WorkspaceBotConfigSchema,
|
|
145
161
|
release: WorkspaceReleaseConfigSchema,
|
|
162
|
+
account: WorkspaceAccountConfigSchema,
|
|
146
163
|
mode: z.enum([
|
|
147
164
|
"development",
|
|
148
165
|
"staging",
|
|
@@ -607,12 +624,21 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
607
624
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
608
625
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
609
626
|
},
|
|
627
|
+
account: {
|
|
628
|
+
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
629
|
+
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
630
|
+
telegram: process.env[`${prefix}ACCOUNT_TELEGRAM`] || void 0,
|
|
631
|
+
slack: process.env[`${prefix}ACCOUNT_SLACK`] || void 0,
|
|
632
|
+
medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
|
|
633
|
+
github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
|
|
634
|
+
},
|
|
610
635
|
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
611
636
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
612
637
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
613
638
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
614
639
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
615
640
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
641
|
+
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
616
642
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
617
643
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
618
644
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
@@ -776,6 +802,26 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
776
802
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
777
803
|
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
778
804
|
}
|
|
805
|
+
if (config.account) {
|
|
806
|
+
if (config.account.twitter) {
|
|
807
|
+
process.env[`${prefix}ACCOUNT_TWITTER`] = config.account.twitter;
|
|
808
|
+
}
|
|
809
|
+
if (config.account.discord) {
|
|
810
|
+
process.env[`${prefix}ACCOUNT_DISCORD`] = config.account.discord;
|
|
811
|
+
}
|
|
812
|
+
if (config.account.telegram) {
|
|
813
|
+
process.env[`${prefix}ACCOUNT_TELEGRAM`] = config.account.telegram;
|
|
814
|
+
}
|
|
815
|
+
if (config.account.slack) {
|
|
816
|
+
process.env[`${prefix}ACCOUNT_SLACK`] = config.account.slack;
|
|
817
|
+
}
|
|
818
|
+
if (config.account.medium) {
|
|
819
|
+
process.env[`${prefix}ACCOUNT_MEDIUM`] = config.account.medium;
|
|
820
|
+
}
|
|
821
|
+
if (config.account.github) {
|
|
822
|
+
process.env[`${prefix}ACCOUNT_GITHUB`] = config.account.github;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
779
825
|
if (config.organization) {
|
|
780
826
|
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
781
827
|
}
|
|
@@ -794,6 +840,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
794
840
|
if (config.licensing) {
|
|
795
841
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
796
842
|
}
|
|
843
|
+
if (config.contact) {
|
|
844
|
+
process.env[`${prefix}CONTACT`] = config.contact;
|
|
845
|
+
}
|
|
797
846
|
if (config.timezone) {
|
|
798
847
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
799
848
|
process.env.TZ = config.timezone;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIVNDY2FEjs = require('./chunk-IVNDY2FE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoFormatExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkIVNDY2FEjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
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 _chunkIVNDY2FEjs = require('./chunk-IVNDY2FE.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 = _chunkIVNDY2FEjs.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});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkIVNDY2FEjs = require('./chunk-IVNDY2FE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSPRQWSBEjs = require('./chunk-SPRQWSBE.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -13,11 +13,11 @@ var _fsextra = require('fs-extra');
|
|
|
13
13
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
14
14
|
async function typiaExecutorFn(options, _, config) {
|
|
15
15
|
if (options.clean !== false) {
|
|
16
|
-
|
|
16
|
+
_chunkSPRQWSBEjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
17
17
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
18
18
|
}
|
|
19
19
|
await Promise.all(options.entry.map((entry) => {
|
|
20
|
-
|
|
20
|
+
_chunkSPRQWSBEjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
21
21
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
22
22
|
input: entry,
|
|
23
23
|
output: options.outputPath,
|
|
@@ -29,7 +29,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
_chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
32
|
-
var executor_default =
|
|
32
|
+
var executor_default = _chunkIVNDY2FEjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
|
|
33
33
|
skipReadingConfig: false,
|
|
34
34
|
hooks: {
|
|
35
35
|
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 _chunkIVNDY2FEjs = require('./chunk-IVNDY2FE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkIVNDY2FEjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSWKSEHJVjs = require('./chunk-SWKSEHJV.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 = _chunkSWKSEHJVjs.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
|
|
233
233
|
|
|
234
234
|
|
|
235
235
|
|
|
@@ -7,7 +7,7 @@ var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
|
|
|
7
7
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkSWKSEHJVjs = require('./chunk-SWKSEHJV.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -52,7 +52,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
54
|
_chunk3GQAWCBQjs.__name.call(void 0, nodeLibraryGeneratorFn, "nodeLibraryGeneratorFn");
|
|
55
|
-
var generator_default =
|
|
55
|
+
var generator_default = _chunkSWKSEHJVjs.withRunGenerator.call(void 0, "TypeScript Library Creator (NodeJs Platform)", nodeLibraryGeneratorFn, {
|
|
56
56
|
hooks: {
|
|
57
57
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
58
58
|
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
@@ -12,7 +12,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkSPRQWSBEjs = require('./chunk-SPRQWSBE.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.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 = _chunkSPRQWSBEjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config = {};
|
|
29
29
|
try {
|
|
@@ -35,23 +35,23 @@ 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
|
+
_chunkSPRQWSBEjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
39
39
|
if (!executorOptions.skipReadingConfig) {
|
|
40
|
-
|
|
40
|
+
_chunkSPRQWSBEjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
41
41
|
- workspaceRoot: ${workspaceRoot}
|
|
42
42
|
- projectRoot: ${projectRoot}
|
|
43
43
|
- sourceRoot: ${sourceRoot}
|
|
44
44
|
- projectName: ${projectName}
|
|
45
45
|
`, config);
|
|
46
|
-
config = await
|
|
46
|
+
config = await _chunkSPRQWSBEjs.getConfig.call(void 0, workspaceRoot);
|
|
47
47
|
}
|
|
48
48
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
49
|
-
|
|
49
|
+
_chunkSPRQWSBEjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
50
50
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
51
|
-
|
|
51
|
+
_chunkSPRQWSBEjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
${
|
|
53
|
+
_chunkSPRQWSBEjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
54
|
+
${_chunkSPRQWSBEjs.formatLogMessage.call(void 0, options)}
|
|
55
55
|
`, config);
|
|
56
56
|
const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
|
|
57
57
|
workspaceRoot,
|
|
@@ -60,13 +60,13 @@ ${_chunkVYAFH7RMjs.formatLogMessage.call(void 0, options)}
|
|
|
60
60
|
projectName,
|
|
61
61
|
config
|
|
62
62
|
}, config, context.projectsConfigurations.projects[context.projectName]), _chunkUALZJZUKjs.applyWorkspaceProjectTokens);
|
|
63
|
-
|
|
64
|
-
${
|
|
63
|
+
_chunkSPRQWSBEjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
64
|
+
${_chunkSPRQWSBEjs.formatLogMessage.call(void 0, tokenized)}
|
|
65
65
|
`, config);
|
|
66
66
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
67
|
-
|
|
67
|
+
_chunkSPRQWSBEjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
68
68
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
69
|
-
|
|
69
|
+
_chunkSPRQWSBEjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
70
70
|
}
|
|
71
71
|
const ret = executorFn(tokenized, context, config);
|
|
72
72
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -76,26 +76,26 @@ ${_chunkVYAFH7RMjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
76
76
|
}
|
|
77
77
|
const result = await Promise.resolve(ret);
|
|
78
78
|
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")) {
|
|
79
|
-
|
|
80
|
-
${
|
|
79
|
+
_chunkSPRQWSBEjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
80
|
+
${_chunkSPRQWSBEjs.formatLogMessage.call(void 0, result)}`, config);
|
|
81
81
|
console.error(result);
|
|
82
82
|
throw new Error(`The ${name} executor failed to run`, {
|
|
83
83
|
cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
87
|
-
|
|
87
|
+
_chunkSPRQWSBEjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
88
88
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
89
|
-
|
|
89
|
+
_chunkSPRQWSBEjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
_chunkSPRQWSBEjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
92
92
|
`, config);
|
|
93
93
|
return {
|
|
94
94
|
success: true
|
|
95
95
|
};
|
|
96
96
|
} catch (error) {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
_chunkSPRQWSBEjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
98
|
+
_chunkSPRQWSBEjs.writeError.call(void 0, `An exception was thrown in the executor's process
|
|
99
99
|
- Details: ${error.message}
|
|
100
100
|
- Stacktrace: ${error.stack}`, config);
|
|
101
101
|
return {
|