@storm-software/workspace-tools 1.277.7 → 1.277.8
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-ROUPDDKO.js → chunk-2PUPHPOJ.js} +2 -2
- package/dist/{chunk-J5A3Y3G5.js → chunk-3UVNYXYI.js} +5 -5
- package/dist/{chunk-EFH34LC5.mjs → chunk-47CXMAEH.mjs} +1 -1
- package/dist/{chunk-5WY7NHKV.mjs → chunk-4HHGLAPQ.mjs} +1 -1
- package/dist/{chunk-OH3V3U2Y.mjs → chunk-5GTHSO2R.mjs} +2 -2
- package/dist/{chunk-4NWZ4KD2.js → chunk-6Q2Y66TS.js} +3 -3
- package/dist/{chunk-ZGOX7MFJ.mjs → chunk-7GFI5NEV.mjs} +3 -3
- package/dist/{chunk-OCYB7SCB.js → chunk-7HVQI7WW.js} +4 -4
- package/dist/{chunk-XAJCDEYJ.js → chunk-7YMXPT6I.js} +2 -2
- package/dist/{chunk-74JNZHSJ.js → chunk-AIVSNOK4.js} +2 -2
- package/dist/{chunk-5MRXAUW6.js → chunk-AZKUROKO.js} +2 -2
- package/dist/{chunk-L6OPSM7E.mjs → chunk-BSS2A4AL.mjs} +1 -1
- package/dist/{chunk-KANZLWVO.js → chunk-D3XFXIFX.js} +16 -16
- package/dist/{chunk-ITC3V764.js → chunk-DFJRCZFN.js} +31 -31
- package/dist/{chunk-HZJXVCFK.js → chunk-DSJCQI5S.js} +21 -21
- package/dist/{chunk-DSRBTIPK.mjs → chunk-EPFDTN7R.mjs} +1 -1
- package/dist/{chunk-6VDYBMO4.js → chunk-ERFJDNXJ.js} +2 -2
- package/dist/{chunk-WH3MH2I6.js → chunk-GBTS7H65.js} +5 -5
- package/dist/{chunk-365RZOGB.mjs → chunk-GKC5XPSV.mjs} +2 -2
- package/dist/{chunk-F4SQU5Y2.js → chunk-HISN3Z5I.js} +2 -2
- package/dist/{chunk-PS3432IT.mjs → chunk-IDAYVU2C.mjs} +1 -1
- package/dist/{chunk-LKRSPDSS.mjs → chunk-JTI4PXEQ.mjs} +1 -1
- package/dist/{chunk-ZD4D4MY4.mjs → chunk-KHCEET27.mjs} +1 -1
- package/dist/{chunk-KJ2ULYCE.js → chunk-KJIU36CM.js} +2 -2
- package/dist/{chunk-ILR6AEPP.mjs → chunk-L7QFWSJD.mjs} +2 -2
- package/dist/{chunk-HG6OPRGR.mjs → chunk-LJAZ5CQD.mjs} +2 -2
- package/dist/{chunk-Q5A2LDFQ.mjs → chunk-M4PXZVBW.mjs} +1 -1
- package/dist/{chunk-FEUT3FDU.mjs → chunk-NBVO7LQ2.mjs} +1 -1
- package/dist/{chunk-36R7TF76.js → chunk-NLXICBLZ.js} +2 -2
- package/dist/{chunk-O7MERT47.mjs → chunk-NVXDTWNV.mjs} +2 -2
- package/dist/{chunk-QWLC2FWC.js → chunk-NZYVBMLP.js} +2 -2
- package/dist/{chunk-SAZWUDK5.js → chunk-OTQAMNZT.js} +20 -20
- package/dist/{chunk-Q3DXBN5Z.js → chunk-OYT6QM36.js} +19 -19
- package/dist/{chunk-RNRIQ4GZ.js → chunk-PI6NLMF6.js} +2 -2
- package/dist/{chunk-HL26TB4X.js → chunk-PKGXXU7F.js} +2 -2
- package/dist/{chunk-CUCHWMHH.js → chunk-QHVPVDNI.js} +2 -2
- package/dist/{chunk-RNMLNZSH.mjs → chunk-QKPZ75FD.mjs} +3 -3
- package/dist/{chunk-YF2MVXJK.mjs → chunk-RTDH7GPK.mjs} +1 -1
- package/dist/{chunk-7BTN6YLA.js → chunk-S7K4PA4H.js} +2 -2
- package/dist/{chunk-HQ56LF4F.mjs → chunk-TD6EY72I.mjs} +3 -3
- package/dist/{chunk-OXWLLHKL.mjs → chunk-TRQO3IPM.mjs} +1 -1
- package/dist/{chunk-GILVY57C.mjs → chunk-U2Z4J553.mjs} +2 -2
- package/dist/{chunk-R6MUFVIX.mjs → chunk-UB7FHYP6.mjs} +1 -1
- package/dist/{chunk-5EPZGGBU.mjs → chunk-VCUOEWPH.mjs} +1 -1
- package/dist/{chunk-MF7TU7MV.mjs → chunk-XSQHJSOQ.mjs} +1 -1
- package/dist/{chunk-PGYZNSVE.js → chunk-XXPTIATG.js} +9 -9
- package/dist/executors.js +17 -17
- package/dist/executors.mjs +16 -16
- package/dist/generators.js +11 -11
- package/dist/generators.mjs +12 -12
- package/dist/index.js +24 -24
- package/dist/index.mjs +25 -25
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +3 -3
- package/dist/src/base/index.js +5 -5
- package/dist/src/base/index.mjs +4 -4
- package/dist/src/executors/cargo-build/executor.js +5 -5
- package/dist/src/executors/cargo-build/executor.mjs +4 -4
- package/dist/src/executors/cargo-check/executor.js +5 -5
- package/dist/src/executors/cargo-check/executor.mjs +4 -4
- package/dist/src/executors/cargo-clippy/executor.js +5 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +4 -4
- package/dist/src/executors/cargo-doc/executor.js +5 -5
- package/dist/src/executors/cargo-doc/executor.mjs +4 -4
- package/dist/src/executors/cargo-format/executor.js +5 -5
- package/dist/src/executors/cargo-format/executor.mjs +4 -4
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/esbuild/executor.js +5 -5
- package/dist/src/executors/esbuild/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/executor.js +5 -5
- package/dist/src/executors/npm-publish/executor.mjs +4 -4
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/unbuild/executor.js +5 -5
- package/dist/src/executors/unbuild/executor.mjs +4 -4
- package/dist/src/generators/browser-library/generator.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +4 -4
- package/dist/src/generators/config-schema/generator.js +5 -5
- package/dist/src/generators/config-schema/generator.mjs +4 -4
- package/dist/src/generators/neutral-library/generator.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +4 -4
- package/dist/src/generators/node-library/generator.js +5 -5
- package/dist/src/generators/node-library/generator.mjs +4 -4
- package/dist/src/generators/preset/generator.js +5 -5
- package/dist/src/generators/preset/generator.mjs +4 -4
- package/dist/src/generators/release-version/generator.js +5 -5
- package/dist/src/generators/release-version/generator.mjs +4 -4
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/package-helpers.js +4 -4
- package/dist/src/utils/package-helpers.mjs +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.277.7](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.277.7) (2025-06-27)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace package links
|
|
10
|
+
([0ce709503](https://github.com/storm-software/storm-ops/commit/0ce709503))
|
|
11
|
+
- **monorepo:** Regenerate README markdown files
|
|
12
|
+
([651b8c2a6](https://github.com/storm-software/storm-ops/commit/651b8c2a6))
|
|
13
|
+
|
|
14
|
+
### Updated Dependencies
|
|
15
|
+
|
|
16
|
+
- Updated esbuild to 0.45.20
|
|
17
|
+
- Updated unbuild to 0.49.31
|
|
18
|
+
|
|
5
19
|
## [1.277.6](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.277.6) (2025-06-27)
|
|
6
20
|
|
|
7
21
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQHVPVDNIjs = require('./chunk-QHVPVDNI.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ var getPackageInfo = (project) => {
|
|
|
31
31
|
) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
|
|
32
32
|
return {
|
|
33
33
|
type: "Cargo.toml",
|
|
34
|
-
content:
|
|
34
|
+
content: _chunkQHVPVDNIjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
|
|
35
35
|
};
|
|
36
36
|
} else if (_chunkAX3RSZT7js.isEqualProjectTag.call(void 0,
|
|
37
37
|
project,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDSJCQI5Sjs = require('./chunk-DSJCQI5S.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6Q2Y66TSjs = require('./chunk-6Q2Y66TS.js');
|
|
7
7
|
|
|
8
8
|
// src/executors/typia/executor.ts
|
|
9
9
|
var _fsextra = require('fs-extra');
|
|
10
10
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
11
11
|
async function typiaExecutorFn(options, _, config) {
|
|
12
12
|
if (options.clean !== false) {
|
|
13
|
-
|
|
13
|
+
_chunk6Q2Y66TSjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
14
14
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
15
15
|
}
|
|
16
16
|
await Promise.all(
|
|
17
17
|
options.entry.map((entry) => {
|
|
18
|
-
|
|
18
|
+
_chunk6Q2Y66TSjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
19
19
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
20
20
|
input: entry,
|
|
21
21
|
output: options.outputPath,
|
|
@@ -27,7 +27,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
27
27
|
success: true
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
var executor_default =
|
|
30
|
+
var executor_default = _chunkDSJCQI5Sjs.withRunExecutor.call(void 0,
|
|
31
31
|
"Typia runtime validation generator",
|
|
32
32
|
typiaExecutorFn,
|
|
33
33
|
{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L7QFWSJD.mjs";
|
|
4
4
|
import {
|
|
5
5
|
stormWorkspaceConfigSchema,
|
|
6
6
|
writeInfo,
|
|
7
7
|
writeSuccess,
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QKPZ75FD.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot
|
|
12
12
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -575,7 +575,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, ()
|
|
|
575
575
|
return (message) => {
|
|
576
576
|
console.debug(
|
|
577
577
|
`
|
|
578
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
578
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#3e9eff")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
579
579
|
`
|
|
580
580
|
);
|
|
581
581
|
};
|
|
@@ -584,7 +584,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, ()
|
|
|
584
584
|
return (message) => {
|
|
585
585
|
console.debug(
|
|
586
586
|
`
|
|
587
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
587
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#0070E0")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
588
588
|
`
|
|
589
589
|
);
|
|
590
590
|
};
|
|
@@ -592,7 +592,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, ()
|
|
|
592
592
|
return (message) => {
|
|
593
593
|
console.log(
|
|
594
594
|
`
|
|
595
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
595
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#0356a8")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
596
596
|
`
|
|
597
597
|
);
|
|
598
598
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NVXDTWNV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getWorkspaceConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KHCEET27.mjs";
|
|
7
7
|
import {
|
|
8
8
|
formatLogMessage,
|
|
9
9
|
getStopwatch,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
writeSuccess,
|
|
15
15
|
writeTrace,
|
|
16
16
|
writeWarning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QKPZ75FD.mjs";
|
|
18
18
|
import {
|
|
19
19
|
findWorkspaceRoot
|
|
20
20
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -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 _chunkDSJCQI5Sjs = require('./chunk-DSJCQI5S.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6Q2Y66TSjs = require('./chunk-6Q2Y66TS.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -12,7 +12,7 @@ var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
|
12
12
|
var _defu = require('defu');
|
|
13
13
|
var _jiti = require('jiti');
|
|
14
14
|
async function unbuildExecutorFn(options, context, config) {
|
|
15
|
-
|
|
15
|
+
_chunk6Q2Y66TSjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
16
16
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
17
17
|
throw new Error(
|
|
18
18
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -80,7 +80,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
80
80
|
success: true
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
var executor_default =
|
|
83
|
+
var executor_default = _chunkDSJCQI5Sjs.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkGYLUTELWjs = require('./chunk-GYLUTELW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkD3XFXIFXjs = require('./chunk-D3XFXIFX.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -54,7 +54,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
54
54
|
await _devkit.formatFiles.call(void 0, tree);
|
|
55
55
|
return null;
|
|
56
56
|
}
|
|
57
|
-
var generator_default =
|
|
57
|
+
var generator_default = _chunkD3XFXIFXjs.withRunGenerator.call(void 0,
|
|
58
58
|
"TypeScript Library Creator (Neutral Platform)",
|
|
59
59
|
neutralLibraryGeneratorFn,
|
|
60
60
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDSJCQI5Sjs = require('./chunk-DSJCQI5S.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-check/executor.ts
|
|
10
10
|
async function cargoCheckExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "check", options, context);
|
|
12
12
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkDSJCQI5Sjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDSJCQI5Sjs = require('./chunk-DSJCQI5S.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-clippy/executor.ts
|
|
10
10
|
async function cargoClippyExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "clippy", options, context);
|
|
12
12
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkDSJCQI5Sjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Clippy",
|
|
16
16
|
cargoClippyExecutor,
|
|
17
17
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkOYT6QM36js = require('./chunk-OYT6QM36.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ var _chunkQ3DXBN5Zjs = require('./chunk-Q3DXBN5Z.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk6Q2Y66TSjs = require('./chunk-6Q2Y66TS.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -22,30 +22,30 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
|
22
22
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
23
23
|
skipReadingConfig: false
|
|
24
24
|
}) => async (tree, _options) => {
|
|
25
|
-
const stopwatch =
|
|
25
|
+
const stopwatch = _chunk6Q2Y66TSjs.getStopwatch.call(void 0, name);
|
|
26
26
|
let options = _options;
|
|
27
27
|
let config;
|
|
28
28
|
try {
|
|
29
|
-
|
|
29
|
+
_chunk6Q2Y66TSjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
30
30
|
|
|
31
31
|
`, config);
|
|
32
32
|
const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
|
|
33
33
|
if (!generatorOptions.skipReadingConfig) {
|
|
34
|
-
|
|
34
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0,
|
|
35
35
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`,
|
|
37
37
|
config
|
|
38
38
|
);
|
|
39
|
-
config = await
|
|
39
|
+
config = await _chunkOYT6QM36js.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
}
|
|
41
41
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
42
|
-
|
|
42
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
43
43
|
options = await Promise.resolve(
|
|
44
44
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
_chunk6Q2Y66TSjs.writeTrace.call(void 0,
|
|
49
49
|
`Generator schema options \u2699\uFE0F
|
|
50
50
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
51
51
|
config
|
|
@@ -56,11 +56,11 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
56
56
|
_chunkJ2Z4WP3Ejs.applyWorkspaceBaseTokens
|
|
57
57
|
);
|
|
58
58
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
59
|
-
|
|
59
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
60
60
|
await Promise.resolve(
|
|
61
61
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
62
62
|
);
|
|
63
|
-
|
|
63
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
64
64
|
}
|
|
65
65
|
const result = await Promise.resolve(
|
|
66
66
|
generatorFn(tree, tokenized, config)
|
|
@@ -75,21 +75,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
78
|
-
|
|
78
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
79
79
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
80
|
-
|
|
80
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
81
81
|
}
|
|
82
82
|
return () => {
|
|
83
|
-
|
|
83
|
+
_chunk6Q2Y66TSjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
84
84
|
`, config);
|
|
85
85
|
};
|
|
86
86
|
} catch (error) {
|
|
87
87
|
return () => {
|
|
88
|
-
|
|
88
|
+
_chunk6Q2Y66TSjs.writeFatal.call(void 0,
|
|
89
89
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
90
90
|
config
|
|
91
91
|
);
|
|
92
|
-
|
|
92
|
+
_chunk6Q2Y66TSjs.writeError.call(void 0,
|
|
93
93
|
`An exception was thrown in the generator's process
|
|
94
94
|
- Details: ${error.message}
|
|
95
95
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkDSJCQI5Sjs = require('./chunk-DSJCQI5S.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOYT6QM36js = require('./chunk-OYT6QM36.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ var _chunkQ3DXBN5Zjs = require('./chunk-Q3DXBN5Z.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk6Q2Y66TSjs = require('./chunk-6Q2Y66TS.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -82,7 +82,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
82
82
|
output: "src/"
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
_chunk6Q2Y66TSjs.writeTrace.call(void 0,
|
|
86
86
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
87
87
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk53DNHF7Bjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
88
88
|
config
|
|
@@ -95,7 +95,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
95
95
|
});
|
|
96
96
|
await assetHandler.processAllAssetsOnce();
|
|
97
97
|
if (includeSrc === true) {
|
|
98
|
-
|
|
98
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0,
|
|
99
99
|
`\u{1F4DD} Adding banner and writing source files: ${_chunk53DNHF7Bjs.joinPaths.call(void 0,
|
|
100
100
|
outputPath,
|
|
101
101
|
"src"
|
|
@@ -179,7 +179,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
if (localPackages.length > 0) {
|
|
182
|
-
|
|
182
|
+
_chunk6Q2Y66TSjs.writeTrace.call(void 0,
|
|
183
183
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
184
184
|
);
|
|
185
185
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -227,7 +227,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
227
227
|
return ret;
|
|
228
228
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
229
229
|
} else {
|
|
230
|
-
|
|
230
|
+
_chunk6Q2Y66TSjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
231
231
|
}
|
|
232
232
|
return packageJson;
|
|
233
233
|
};
|
|
@@ -304,11 +304,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
304
304
|
// ../esbuild/src/assets.ts
|
|
305
305
|
async function copyBuildAssets(context) {
|
|
306
306
|
if (!_optionalChain([context, 'access', _24 => _24.result, 'optionalAccess', _25 => _25.errors, 'access', _26 => _26.length]) && _optionalChain([context, 'access', _27 => _27.options, 'access', _28 => _28.assets, 'optionalAccess', _29 => _29.length])) {
|
|
307
|
-
|
|
307
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0,
|
|
308
308
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
309
309
|
context.workspaceConfig
|
|
310
310
|
);
|
|
311
|
-
const stopwatch =
|
|
311
|
+
const stopwatch = _chunk6Q2Y66TSjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
312
312
|
await copyAssets(
|
|
313
313
|
context.workspaceConfig,
|
|
314
314
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
@@ -389,11 +389,11 @@ async function resolveContext(userOptions) {
|
|
|
389
389
|
if (!workspaceRoot) {
|
|
390
390
|
throw new Error("Cannot find Nx workspace root");
|
|
391
391
|
}
|
|
392
|
-
const workspaceConfig = await
|
|
392
|
+
const workspaceConfig = await _chunkOYT6QM36js.getWorkspaceConfig.call(void 0, true, {
|
|
393
393
|
workspaceRoot: workspaceRoot.dir
|
|
394
394
|
});
|
|
395
|
-
|
|
396
|
-
const stopwatch =
|
|
395
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
396
|
+
const stopwatch = _chunk6Q2Y66TSjs.getStopwatch.call(void 0, "Build options resolution");
|
|
397
397
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
398
398
|
exitOnError: true
|
|
399
399
|
});
|
|
@@ -463,10 +463,10 @@ async function resolveContext(userOptions) {
|
|
|
463
463
|
};
|
|
464
464
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
465
465
|
if (context.options.verbose) {
|
|
466
|
-
|
|
466
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0,
|
|
467
467
|
` \u2699\uFE0F Build options resolved:
|
|
468
468
|
|
|
469
|
-
${
|
|
469
|
+
${_chunk6Q2Y66TSjs.formatLogMessage.call(void 0, context.options)}`,
|
|
470
470
|
workspaceConfig
|
|
471
471
|
);
|
|
472
472
|
}
|
|
@@ -479,8 +479,8 @@ ${_chunk4NWZ4KD2js.formatLogMessage.call(void 0, context.options)}`,
|
|
|
479
479
|
|
|
480
480
|
async function generatePackageJson(context) {
|
|
481
481
|
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk53DNHF7Bjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
482
|
-
|
|
483
|
-
const stopwatch =
|
|
482
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
483
|
+
const stopwatch = _chunk6Q2Y66TSjs.getStopwatch.call(void 0, "Write package.json file");
|
|
484
484
|
const packageJsonPath = _chunk53DNHF7Bjs.joinPaths.call(void 0,
|
|
485
485
|
context.options.projectRoot,
|
|
486
486
|
"project.json"
|
|
@@ -670,10 +670,10 @@ var depsCheckPlugin = (bundle) => ({
|
|
|
670
670
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
671
671
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
672
672
|
});
|
|
673
|
-
|
|
673
|
+
_chunk6Q2Y66TSjs.writeWarning.call(void 0,
|
|
674
674
|
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
675
675
|
);
|
|
676
|
-
|
|
676
|
+
_chunk6Q2Y66TSjs.writeError.call(void 0,
|
|
677
677
|
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
678
678
|
);
|
|
679
679
|
if (filteredMissingDeps.length > 0) {
|
|
@@ -688,11 +688,11 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
688
688
|
// ../esbuild/src/tsup.ts
|
|
689
689
|
var _tsup = require('tsup');
|
|
690
690
|
async function executeTsup(context) {
|
|
691
|
-
|
|
691
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0,
|
|
692
692
|
` \u{1F680} Running ${context.options.name} build`,
|
|
693
693
|
context.workspaceConfig
|
|
694
694
|
);
|
|
695
|
-
const stopwatch =
|
|
695
|
+
const stopwatch = _chunk6Q2Y66TSjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
696
696
|
await _tsup.build.call(void 0, {
|
|
697
697
|
...context.options,
|
|
698
698
|
outDir: context.options.distDir ? _chunk53DNHF7Bjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
@@ -706,17 +706,17 @@ async function executeTsup(context) {
|
|
|
706
706
|
async function reportResults(context) {
|
|
707
707
|
if (_optionalChain([context, 'access', _32 => _32.result, 'optionalAccess', _33 => _33.errors, 'access', _34 => _34.length]) === 0) {
|
|
708
708
|
if (context.result.warnings.length > 0) {
|
|
709
|
-
|
|
709
|
+
_chunk6Q2Y66TSjs.writeWarning.call(void 0,
|
|
710
710
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
711
711
|
context.workspaceConfig
|
|
712
712
|
);
|
|
713
713
|
}
|
|
714
|
-
|
|
714
|
+
_chunk6Q2Y66TSjs.writeSuccess.call(void 0,
|
|
715
715
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
716
716
|
context.workspaceConfig
|
|
717
717
|
);
|
|
718
718
|
} else if (_optionalChain([context, 'access', _35 => _35.result, 'optionalAccess', _36 => _36.errors]) && _optionalChain([context, 'access', _37 => _37.result, 'optionalAccess', _38 => _38.errors, 'access', _39 => _39.length]) > 0) {
|
|
719
|
-
|
|
719
|
+
_chunk6Q2Y66TSjs.writeError.call(void 0,
|
|
720
720
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
721
721
|
context.workspaceConfig
|
|
722
722
|
);
|
|
@@ -753,19 +753,19 @@ async function dependencyCheck(options) {
|
|
|
753
753
|
}
|
|
754
754
|
async function cleanOutputPath(context) {
|
|
755
755
|
if (context.clean !== false && context.outputPath) {
|
|
756
|
-
|
|
756
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0,
|
|
757
757
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
758
758
|
context.workspaceConfig
|
|
759
759
|
);
|
|
760
|
-
const stopwatch =
|
|
760
|
+
const stopwatch = _chunk6Q2Y66TSjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
761
761
|
await cleanDirectories(context.outputPath);
|
|
762
762
|
stopwatch();
|
|
763
763
|
}
|
|
764
764
|
return context;
|
|
765
765
|
}
|
|
766
766
|
async function build2(options) {
|
|
767
|
-
|
|
768
|
-
const stopwatch =
|
|
767
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
768
|
+
const stopwatch = _chunk6Q2Y66TSjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
769
769
|
try {
|
|
770
770
|
const opts = Array.isArray(options) ? options : [options];
|
|
771
771
|
if (opts.length === 0) {
|
|
@@ -780,9 +780,9 @@ async function build2(options) {
|
|
|
780
780
|
executeTsup(context)
|
|
781
781
|
]);
|
|
782
782
|
await reportResults(context);
|
|
783
|
-
|
|
783
|
+
_chunk6Q2Y66TSjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
784
784
|
} catch (error) {
|
|
785
|
-
|
|
785
|
+
_chunk6Q2Y66TSjs.writeFatal.call(void 0,
|
|
786
786
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
787
787
|
);
|
|
788
788
|
throw error;
|
|
@@ -793,7 +793,7 @@ async function build2(options) {
|
|
|
793
793
|
|
|
794
794
|
// src/executors/esbuild/executor.ts
|
|
795
795
|
async function esbuildExecutorFn(options, context, config) {
|
|
796
|
-
|
|
796
|
+
_chunk6Q2Y66TSjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
797
797
|
if (!_optionalChain([context, 'access', _40 => _40.projectsConfigurations, 'optionalAccess', _41 => _41.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _42 => _42.projectsConfigurations, 'access', _43 => _43.projects, 'access', _44 => _44[context.projectName], 'optionalAccess', _45 => _45.root])) {
|
|
798
798
|
throw new Error(
|
|
799
799
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -811,7 +811,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
811
811
|
success: true
|
|
812
812
|
};
|
|
813
813
|
}
|
|
814
|
-
var executor_default =
|
|
814
|
+
var executor_default = _chunkDSJCQI5Sjs.withRunExecutor.call(void 0,
|
|
815
815
|
"Storm ESBuild build",
|
|
816
816
|
esbuildExecutorFn,
|
|
817
817
|
{
|