@storm-software/workspace-tools 1.277.22 → 1.277.24
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 +31 -0
- package/README.md +1 -1
- package/config/base.json +3 -0
- package/dist/{chunk-DEFXNQVU.js → chunk-25VWKDTU.js} +2 -2
- package/dist/{chunk-6FOLVRTW.js → chunk-2BORL7LX.js} +2 -2
- package/dist/{chunk-NBBCXFOJ.mjs → chunk-2TGFVUIR.mjs} +2 -2
- package/dist/{chunk-JP7P7IWH.js → chunk-3MSNXXXO.js} +2 -2
- package/dist/{chunk-U7D7Q4IT.mjs → chunk-3YKD4Y7G.mjs} +1 -1
- package/dist/{chunk-KLRJKFDB.mjs → chunk-4JA63BTZ.mjs} +1 -1
- package/dist/{chunk-NUIU6UH7.js → chunk-4OBCRV37.js} +9 -9
- package/dist/{chunk-2MRYHFCM.js → chunk-5LD3ABVM.js} +2 -2
- package/dist/{chunk-CD6IOBJJ.js → chunk-CSCLNKMV.js} +2 -2
- package/dist/{chunk-Z2V3ZPFR.js → chunk-CSXGWGUK.js} +32 -32
- package/dist/{chunk-IM4OGVNE.js → chunk-D73OGSDF.js} +20 -20
- package/dist/{chunk-XROORLPB.mjs → chunk-DASH2FOM.mjs} +2 -2
- package/dist/{chunk-VMABMTZ7.mjs → chunk-EDHSPOFD.mjs} +1 -1
- package/dist/{chunk-3VPPPSZJ.mjs → chunk-EOAKAELE.mjs} +1 -1
- package/dist/{chunk-V6X3DTFD.mjs → chunk-G4MTTQFI.mjs} +1 -1
- package/dist/{chunk-LFVP3B6H.mjs → chunk-G4U3DGCJ.mjs} +2 -2
- package/dist/{chunk-KIZZ6VCO.mjs → chunk-H5JCXWPB.mjs} +2 -2
- package/dist/{chunk-EN6KGGKB.js → chunk-HBNNRGCJ.js} +2 -2
- package/dist/{chunk-FRKMFXFI.mjs → chunk-HSJMJFKE.mjs} +1 -1
- package/dist/{chunk-FCO3PM7I.mjs → chunk-IDQ4JCDX.mjs} +3 -3
- package/dist/{chunk-RFMOPPYB.js → chunk-IWD5UVSO.js} +2 -2
- package/dist/{chunk-DJICFY6F.mjs → chunk-JK77T25H.mjs} +2 -2
- package/dist/{chunk-TDIQZPRW.js → chunk-JOG7WCHD.js} +2 -2
- package/dist/{chunk-VUUPX2SY.js → chunk-JTCJS4RS.js} +1 -2
- package/dist/{chunk-OF2LAEFN.mjs → chunk-JUSIKDWJ.mjs} +1 -1
- package/dist/{chunk-PYLXW352.js → chunk-KUYVHZWZ.js} +2 -2
- package/dist/{chunk-5W2L6BUJ.js → chunk-KXUWH7QY.js} +2 -2
- package/dist/{chunk-PULA6GEQ.mjs → chunk-KYIRUMWH.mjs} +2 -2
- package/dist/{chunk-TWGH554B.js → chunk-KYU34QH5.js} +5 -5
- package/dist/{chunk-EFSIKZPZ.js → chunk-LQV3CCWT.js} +4 -4
- package/dist/{chunk-MBKM3SN7.js → chunk-M4TB3TOS.js} +16 -16
- package/dist/{chunk-DAJPQEJO.js → chunk-MSHTPMHQ.js} +2 -2
- package/dist/{chunk-6UBUJUQH.js → chunk-O4RSZYAD.js} +20 -20
- package/dist/{chunk-4WZFXP2O.mjs → chunk-OZRUZ6AM.mjs} +3 -3
- package/dist/{chunk-AF4BDJPL.mjs → chunk-P5EIB5HG.mjs} +1 -1
- package/dist/{chunk-BCYOPXLA.mjs → chunk-PKDVMEUW.mjs} +1 -2
- package/dist/{chunk-O4DLIN2W.mjs → chunk-POILBEZH.mjs} +1 -1
- package/dist/{chunk-ZBVPKR6Y.js → chunk-QPPWAQNV.js} +2 -2
- package/dist/{chunk-YGVRQEXU.js → chunk-QZA6F5EA.js} +21 -21
- package/dist/{chunk-DNNAP4CE.js → chunk-RA2N6JZH.js} +2 -2
- package/dist/{chunk-PNWYNSXD.mjs → chunk-RUGDFSKK.mjs} +1 -1
- package/dist/{chunk-SQ2TS6XE.mjs → chunk-UWK5LEHA.mjs} +1 -1
- package/dist/{chunk-7ZMRNLIG.mjs → chunk-V7ERI6BM.mjs} +1 -1
- package/dist/{chunk-PR3UANNQ.js → chunk-XPKUS7AG.js} +5 -5
- package/dist/{chunk-EEYIBE4L.mjs → chunk-YAEW3DQA.mjs} +1 -1
- package/dist/{chunk-ZPHNYJ7Q.mjs → chunk-ZQHOT6H6.mjs} +1 -1
- package/dist/{executor-B3sTsyLH.d.mts → executor-B8wLnXnx.d.mts} +1 -1
- package/dist/{executor-D4KbWYVQ.d.mts → executor-BSkPYkkP.d.mts} +1 -1
- package/dist/{executor-3sktbmqF.d.ts → executor-BpITPYcR.d.ts} +1 -1
- package/dist/{executor-CN_ugRaf.d.mts → executor-CFBDS3tc.d.mts} +1 -1
- package/dist/{executor-VMS0L5L8.d.ts → executor-CRnQhNlT.d.ts} +1 -1
- package/dist/{executor-Ch9mLoP0.d.mts → executor-DPIWxm-x.d.mts} +1 -1
- package/dist/{executor-DymP9k50.d.ts → executor-L8Jmwybf.d.ts} +1 -1
- package/dist/{executor-1igQlh9l.d.ts → executor-oIXMAz-g.d.ts} +1 -1
- package/dist/executors.d.mts +5 -5
- package/dist/executors.d.ts +5 -5
- package/dist/executors.js +17 -17
- package/dist/executors.mjs +18 -18
- package/dist/{generator-YQnJUqvw.d.mts → generator-BIMz19YK.d.mts} +2 -2
- package/dist/{generator-Cfx5DY8l.d.ts → generator-C0oESGRU.d.ts} +1 -1
- package/dist/{generator-CmpLS-2N.d.mts → generator-CAV7jT3f.d.mts} +1 -1
- package/dist/{generator-uLurmips.d.mts → generator-CJABg49g.d.mts} +2 -2
- package/dist/{generator-CK3WzBhA.d.mts → generator-Cb58mGnB.d.mts} +2 -2
- package/dist/{generator-C1elI8nT.d.ts → generator-Cf30wgA4.d.ts} +2 -2
- package/dist/{generator-fOdHOpeP.d.ts → generator-Cj8BzNWS.d.ts} +2 -2
- package/dist/{generator-DabZeYX6.d.mts → generator-DTjXg4Lz.d.mts} +2 -2
- package/dist/{generator-u2qO2fQ8.d.mts → generator-Oe3vHbZC.d.mts} +1 -1
- package/dist/{generator-C5I76JrN.d.ts → generator-Sm7r9ETR.d.ts} +2 -2
- package/dist/{generator-BIQdsJXF.d.ts → generator-mIOdDYVo.d.ts} +2 -2
- package/dist/{generator-gPXc0ptC.d.ts → generator-rgiO0GJQ.d.ts} +1 -1
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +11 -11
- package/dist/generators.mjs +12 -12
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +24 -24
- package/dist/index.mjs +27 -27
- 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 +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- 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 +4 -4
- package/dist/src/base/base-generator.mjs +3 -3
- package/dist/src/base/index.d.mts +2 -2
- package/dist/src/base/index.d.ts +2 -2
- 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-build/schema.d.ts +86 -0
- 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-check/schema.d.ts +89 -0
- package/dist/src/executors/cargo-check/schema.json +88 -0
- 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-clippy/schema.d.ts +97 -0
- package/dist/src/executors/cargo-clippy/schema.json +94 -0
- 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-doc/schema.d.ts +125 -0
- package/dist/src/executors/cargo-doc/schema.json +164 -0
- 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-format/schema.d.ts +89 -0
- package/dist/src/executors/cargo-format/schema.json +88 -0
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/cargo-publish/schema.d.ts +115 -0
- package/dist/src/executors/cargo-publish/schema.json +107 -0
- 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 +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/clean-package/schema.d.ts +60 -0
- package/dist/src/executors/clean-package/schema.json +57 -0
- 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/esbuild/schema.d.ts +137 -0
- package/dist/src/executors/esbuild/schema.json +165 -0
- package/dist/src/executors/npm-publish/executor.js +5 -5
- package/dist/src/executors/npm-publish/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/schema.d.ts +68 -0
- package/dist/src/executors/npm-publish/schema.json +61 -0
- 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 +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/size-limit/schema.d.ts +25 -0
- package/dist/src/executors/size-limit/schema.json +29 -0
- 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 +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/typia/schema.d.ts +48 -0
- package/dist/src/executors/typia/schema.json +57 -0
- 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 +5 -5
- package/dist/src/executors/unbuild/executor.mjs +4 -4
- package/dist/src/executors/unbuild/schema.d.ts +258 -0
- package/dist/src/executors/unbuild/schema.json +301 -0
- 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 +5 -5
- package/dist/src/generators/browser-library/generator.mjs +4 -4
- package/dist/src/generators/browser-library/schema.d.ts +122 -0
- package/dist/src/generators/browser-library/schema.json +117 -0
- 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 +5 -5
- package/dist/src/generators/config-schema/generator.mjs +4 -4
- package/dist/src/generators/config-schema/schema.d.ts +23 -0
- package/dist/src/generators/config-schema/schema.json +24 -0
- package/dist/src/generators/init/schema.d.ts +14 -0
- package/dist/src/generators/init/schema.json +15 -0
- 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 +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +4 -4
- package/dist/src/generators/neutral-library/schema.d.ts +122 -0
- package/dist/src/generators/neutral-library/schema.json +116 -0
- 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 +5 -5
- package/dist/src/generators/node-library/generator.mjs +4 -4
- package/dist/src/generators/node-library/schema.d.ts +122 -0
- package/dist/src/generators/node-library/schema.json +117 -0
- 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 +5 -5
- package/dist/src/generators/preset/generator.mjs +4 -4
- package/dist/src/generators/preset/schema.d.ts +101 -0
- package/dist/src/generators/preset/schema.json +96 -0
- 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 +5 -5
- package/dist/src/generators/release-version/generator.mjs +4 -4
- package/dist/src/generators/release-version/schema.d.ts +180 -0
- package/dist/src/generators/release-version/schema.json +158 -0
- 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/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/dist/src/utils/project-tags.d.mts +2 -2
- package/dist/src/utils/project-tags.d.ts +2 -2
- package/dist/{types-CWx-r5iU.d.mts → types-DvynnIqE.d.mts} +1 -5
- package/dist/{types-CWx-r5iU.d.ts → types-DvynnIqE.d.ts} +1 -5
- package/dist/{types-Bsun9g7f.d.ts → types-SUxfrM7H.d.ts} +1 -1
- package/dist/{types-Dw924FOc.d.mts → types-jXJWvL7s.d.mts} +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.277.23](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.277.23) (2025-07-11)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([e316c2ed8](https://github.com/storm-software/storm-ops/commit/e316c2ed8))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated prettier to 0.51.49
|
|
15
|
+
- Updated esbuild to 0.45.36
|
|
16
|
+
- Updated unbuild to 0.49.47
|
|
17
|
+
|
|
18
|
+
## [1.277.22](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.277.22) (2025-07-11)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
- **monorepo:** Ensure the correct `zod` version is used in all packages
|
|
23
|
+
([029702308](https://github.com/storm-software/storm-ops/commit/029702308))
|
|
24
|
+
|
|
25
|
+
### Miscellaneous
|
|
26
|
+
|
|
27
|
+
- **monorepo:** Regenerate README markdown files
|
|
28
|
+
([c13e76556](https://github.com/storm-software/storm-ops/commit/c13e76556))
|
|
29
|
+
|
|
30
|
+
### Updated Dependencies
|
|
31
|
+
|
|
32
|
+
- Updated prettier to 0.51.48
|
|
33
|
+
- Updated esbuild to 0.45.35
|
|
34
|
+
- Updated unbuild to 0.49.46
|
|
35
|
+
|
|
5
36
|
## [1.277.21](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.277.21) (2025-07-10)
|
|
6
37
|
|
|
7
38
|
### 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 -->
|
package/config/base.json
CHANGED
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"!{projectRoot}/biome.toml",
|
|
64
64
|
"!{projectRoot}/biome.json",
|
|
65
65
|
"!{projectRoot}/lefthook.yaml",
|
|
66
|
+
"!{projectRoot}/lefthook.json",
|
|
66
67
|
"!{projectRoot}/.markdownlint.json",
|
|
67
68
|
"!{projectRoot}/.markdownlint-cli2.cjs",
|
|
68
69
|
"!{projectRoot}/.prettierrc",
|
|
@@ -126,6 +127,7 @@
|
|
|
126
127
|
"{workspaceRoot}/biome.toml",
|
|
127
128
|
"{workspaceRoot}/biome.json",
|
|
128
129
|
"{workspaceRoot}/lefthook.yaml",
|
|
130
|
+
"{workspaceRoot}/lefthook.json",
|
|
129
131
|
"{workspaceRoot}/.markdownlint.json",
|
|
130
132
|
"{workspaceRoot}/.markdownlint-cli2.cjs",
|
|
131
133
|
"{workspaceRoot}/.prettierrc",
|
|
@@ -151,6 +153,7 @@
|
|
|
151
153
|
"{projectRoot}/biome.toml",
|
|
152
154
|
"{projectRoot}/biome.json",
|
|
153
155
|
"{projectRoot}/lefthook.yaml",
|
|
156
|
+
"{projectRoot}/lefthook.json",
|
|
154
157
|
"{projectRoot}/.markdownlint.json",
|
|
155
158
|
"{projectRoot}/.markdownlint-cli2.cjs",
|
|
156
159
|
"{projectRoot}/.prettierrc",
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQZA6F5EAjs = require('./chunk-QZA6F5EA.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 = _chunkQZA6F5EAjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Clippy",
|
|
16
16
|
cargoClippyExecutor,
|
|
17
17
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkGYLUTELWjs = require('./chunk-GYLUTELW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkM4TB3TOSjs = require('./chunk-M4TB3TOS.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -82,7 +82,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
82
82
|
await _devkit.formatFiles.call(void 0, tree);
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
|
-
var generator_default =
|
|
85
|
+
var generator_default = _chunkM4TB3TOSjs.withRunGenerator.call(void 0,
|
|
86
86
|
"TypeScript Library Creator (Browser Platform)",
|
|
87
87
|
browserLibraryGeneratorFn,
|
|
88
88
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H5JCXWPB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PKDVMEUW.mjs";
|
|
7
7
|
|
|
8
8
|
// src/executors/size-limit/executor.ts
|
|
9
9
|
import { joinPathFragments } from "@nx/devkit";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkJTCJS4RSjs = require('./chunk-JTCJS4RS.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/toml.ts
|
|
6
6
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
7
7
|
function parseCargoTomlWithTree(tree, projectRoot, projectName) {
|
|
8
8
|
const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
9
9
|
if (!cargoTomlString) {
|
|
10
|
-
|
|
10
|
+
_chunkJTCJS4RSjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
|
|
11
11
|
throw new Error();
|
|
12
12
|
}
|
|
13
13
|
return parseCargoToml(cargoTomlString);
|
|
@@ -1,12 +1,12 @@
|
|
|
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 _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 _chunkM4TB3TOSjs = require('./chunk-M4TB3TOS.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkJTCJS4RSjs = require('./chunk-JTCJS4RS.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -15,21 +15,21 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
|
15
15
|
var _devkit = require('@nx/devkit');
|
|
16
16
|
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
17
17
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
18
|
-
|
|
18
|
+
_chunkJTCJS4RSjs.writeInfo.call(void 0,
|
|
19
19
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
20
20
|
config
|
|
21
21
|
);
|
|
22
|
-
|
|
22
|
+
_chunkJTCJS4RSjs.writeTrace.call(void 0,
|
|
23
23
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
24
24
|
config
|
|
25
25
|
);
|
|
26
|
-
const jsonSchema = z.toJSONSchema(
|
|
26
|
+
const jsonSchema = z.toJSONSchema(_chunkJTCJS4RSjs.stormWorkspaceConfigSchema, {
|
|
27
27
|
target: "draft-7"
|
|
28
28
|
});
|
|
29
29
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
30
30
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
31
31
|
jsonSchema.description ??= "This JSON Schema defines the structure of the Storm Workspace configuration file (`storm-workspace.json`). It is used to validate the configuration file and ensure that it adheres to the expected format.";
|
|
32
|
-
|
|
32
|
+
_chunkJTCJS4RSjs.writeTrace.call(void 0, jsonSchema, config);
|
|
33
33
|
if (!options.outputFile) {
|
|
34
34
|
throw new Error(
|
|
35
35
|
"The `outputFile` option is required. Please specify the output file path."
|
|
@@ -39,13 +39,13 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
39
39
|
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, ))),
|
|
40
40
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
41
41
|
);
|
|
42
|
-
|
|
42
|
+
_chunkJTCJS4RSjs.writeTrace.call(void 0,
|
|
43
43
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
44
44
|
config
|
|
45
45
|
);
|
|
46
46
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
47
47
|
await _devkit.formatFiles.call(void 0, tree);
|
|
48
|
-
|
|
48
|
+
_chunkJTCJS4RSjs.writeSuccess.call(void 0,
|
|
49
49
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
50
50
|
config
|
|
51
51
|
);
|
|
@@ -53,7 +53,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
53
53
|
success: true
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
var generator_default =
|
|
56
|
+
var generator_default = _chunkM4TB3TOSjs.withRunGenerator.call(void 0,
|
|
57
57
|
"Configuration Schema Creator",
|
|
58
58
|
configSchemaGeneratorFn,
|
|
59
59
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQZA6F5EAjs = require('./chunk-QZA6F5EA.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-format/executor.ts
|
|
10
10
|
async function cargoFormatExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "fmt", options, context);
|
|
12
12
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkQZA6F5EAjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Format",
|
|
16
16
|
cargoFormatExecutor,
|
|
17
17
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQZA6F5EAjs = require('./chunk-QZA6F5EA.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-doc/executor.ts
|
|
10
10
|
async function cargoDocExecutor(options, context) {
|
|
@@ -14,7 +14,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
14
14
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "doc", options, context);
|
|
15
15
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
|
-
var executor_default =
|
|
17
|
+
var executor_default = _chunkQZA6F5EAjs.withRunExecutor.call(void 0,
|
|
18
18
|
"Cargo - Doc",
|
|
19
19
|
cargoDocExecutor,
|
|
20
20
|
{
|
|
@@ -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 _chunkQZA6F5EAjs = require('./chunk-QZA6F5EA.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkO4RSZYADjs = require('./chunk-O4RSZYAD.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ var _chunk6UBUJUQHjs = require('./chunk-6UBUJUQH.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkJTCJS4RSjs = require('./chunk-JTCJS4RS.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
|
+
_chunkJTCJS4RSjs.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
|
|
@@ -94,9 +94,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
94
94
|
assets: pendingAssets
|
|
95
95
|
});
|
|
96
96
|
await assetHandler.processAllAssetsOnce();
|
|
97
|
-
|
|
97
|
+
_chunkJTCJS4RSjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
98
98
|
if (includeSrc === true) {
|
|
99
|
-
|
|
99
|
+
_chunkJTCJS4RSjs.writeDebug.call(void 0,
|
|
100
100
|
`\u{1F4DD} Adding banner and writing source files: ${_chunk53DNHF7Bjs.joinPaths.call(void 0,
|
|
101
101
|
outputPath,
|
|
102
102
|
"src"
|
|
@@ -180,7 +180,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
if (localPackages.length > 0) {
|
|
183
|
-
|
|
183
|
+
_chunkJTCJS4RSjs.writeTrace.call(void 0,
|
|
184
184
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
185
185
|
);
|
|
186
186
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -228,7 +228,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
228
228
|
return ret;
|
|
229
229
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
230
230
|
} else {
|
|
231
|
-
|
|
231
|
+
_chunkJTCJS4RSjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
232
232
|
}
|
|
233
233
|
return packageJson;
|
|
234
234
|
};
|
|
@@ -305,11 +305,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
|
305
305
|
// ../esbuild/src/assets.ts
|
|
306
306
|
async function copyBuildAssets(context) {
|
|
307
307
|
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])) {
|
|
308
|
-
|
|
308
|
+
_chunkJTCJS4RSjs.writeDebug.call(void 0,
|
|
309
309
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
310
310
|
context.workspaceConfig
|
|
311
311
|
);
|
|
312
|
-
const stopwatch =
|
|
312
|
+
const stopwatch = _chunkJTCJS4RSjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
313
313
|
await copyAssets(
|
|
314
314
|
context.workspaceConfig,
|
|
315
315
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
@@ -390,11 +390,11 @@ async function resolveContext(userOptions) {
|
|
|
390
390
|
if (!workspaceRoot) {
|
|
391
391
|
throw new Error("Cannot find Nx workspace root");
|
|
392
392
|
}
|
|
393
|
-
const workspaceConfig = await
|
|
393
|
+
const workspaceConfig = await _chunkO4RSZYADjs.getWorkspaceConfig.call(void 0, true, {
|
|
394
394
|
workspaceRoot: workspaceRoot.dir
|
|
395
395
|
});
|
|
396
|
-
|
|
397
|
-
const stopwatch =
|
|
396
|
+
_chunkJTCJS4RSjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
397
|
+
const stopwatch = _chunkJTCJS4RSjs.getStopwatch.call(void 0, "Build options resolution");
|
|
398
398
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
399
399
|
exitOnError: true
|
|
400
400
|
});
|
|
@@ -464,10 +464,10 @@ async function resolveContext(userOptions) {
|
|
|
464
464
|
};
|
|
465
465
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
466
466
|
if (context.options.verbose) {
|
|
467
|
-
|
|
467
|
+
_chunkJTCJS4RSjs.writeDebug.call(void 0,
|
|
468
468
|
` \u2699\uFE0F Build options resolved:
|
|
469
469
|
|
|
470
|
-
${
|
|
470
|
+
${_chunkJTCJS4RSjs.formatLogMessage.call(void 0, context.options)}`,
|
|
471
471
|
workspaceConfig
|
|
472
472
|
);
|
|
473
473
|
}
|
|
@@ -480,8 +480,8 @@ ${_chunkVUUPX2SYjs.formatLogMessage.call(void 0, context.options)}`,
|
|
|
480
480
|
|
|
481
481
|
async function generatePackageJson(context) {
|
|
482
482
|
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk53DNHF7Bjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
483
|
-
|
|
484
|
-
const stopwatch =
|
|
483
|
+
_chunkJTCJS4RSjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
484
|
+
const stopwatch = _chunkJTCJS4RSjs.getStopwatch.call(void 0, "Write package.json file");
|
|
485
485
|
const packageJsonPath = _chunk53DNHF7Bjs.joinPaths.call(void 0,
|
|
486
486
|
context.options.projectRoot,
|
|
487
487
|
"project.json"
|
|
@@ -671,10 +671,10 @@ var depsCheckPlugin = (bundle) => ({
|
|
|
671
671
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
672
672
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
673
673
|
});
|
|
674
|
-
|
|
674
|
+
_chunkJTCJS4RSjs.writeWarning.call(void 0,
|
|
675
675
|
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
676
676
|
);
|
|
677
|
-
|
|
677
|
+
_chunkJTCJS4RSjs.writeError.call(void 0,
|
|
678
678
|
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
679
679
|
);
|
|
680
680
|
if (filteredMissingDeps.length > 0) {
|
|
@@ -689,11 +689,11 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
689
689
|
// ../esbuild/src/tsup.ts
|
|
690
690
|
var _tsup = require('tsup');
|
|
691
691
|
async function executeTsup(context) {
|
|
692
|
-
|
|
692
|
+
_chunkJTCJS4RSjs.writeDebug.call(void 0,
|
|
693
693
|
` \u{1F680} Running ${context.options.name} build`,
|
|
694
694
|
context.workspaceConfig
|
|
695
695
|
);
|
|
696
|
-
const stopwatch =
|
|
696
|
+
const stopwatch = _chunkJTCJS4RSjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
697
697
|
await _tsup.build.call(void 0, {
|
|
698
698
|
...context.options,
|
|
699
699
|
outDir: context.options.distDir ? _chunk53DNHF7Bjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
@@ -707,17 +707,17 @@ async function executeTsup(context) {
|
|
|
707
707
|
async function reportResults(context) {
|
|
708
708
|
if (_optionalChain([context, 'access', _32 => _32.result, 'optionalAccess', _33 => _33.errors, 'access', _34 => _34.length]) === 0) {
|
|
709
709
|
if (context.result.warnings.length > 0) {
|
|
710
|
-
|
|
710
|
+
_chunkJTCJS4RSjs.writeWarning.call(void 0,
|
|
711
711
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
712
712
|
context.workspaceConfig
|
|
713
713
|
);
|
|
714
714
|
}
|
|
715
|
-
|
|
715
|
+
_chunkJTCJS4RSjs.writeSuccess.call(void 0,
|
|
716
716
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
717
717
|
context.workspaceConfig
|
|
718
718
|
);
|
|
719
719
|
} 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) {
|
|
720
|
-
|
|
720
|
+
_chunkJTCJS4RSjs.writeError.call(void 0,
|
|
721
721
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
722
722
|
context.workspaceConfig
|
|
723
723
|
);
|
|
@@ -754,19 +754,19 @@ async function dependencyCheck(options) {
|
|
|
754
754
|
}
|
|
755
755
|
async function cleanOutputPath(context) {
|
|
756
756
|
if (context.clean !== false && context.outputPath) {
|
|
757
|
-
|
|
757
|
+
_chunkJTCJS4RSjs.writeDebug.call(void 0,
|
|
758
758
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
759
759
|
context.workspaceConfig
|
|
760
760
|
);
|
|
761
|
-
const stopwatch =
|
|
761
|
+
const stopwatch = _chunkJTCJS4RSjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
762
762
|
await cleanDirectories(context.outputPath);
|
|
763
763
|
stopwatch();
|
|
764
764
|
}
|
|
765
765
|
return context;
|
|
766
766
|
}
|
|
767
767
|
async function build2(options) {
|
|
768
|
-
|
|
769
|
-
const stopwatch =
|
|
768
|
+
_chunkJTCJS4RSjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
769
|
+
const stopwatch = _chunkJTCJS4RSjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
770
770
|
try {
|
|
771
771
|
const opts = Array.isArray(options) ? options : [options];
|
|
772
772
|
if (opts.length === 0) {
|
|
@@ -781,9 +781,9 @@ async function build2(options) {
|
|
|
781
781
|
executeTsup(context)
|
|
782
782
|
]);
|
|
783
783
|
await reportResults(context);
|
|
784
|
-
|
|
784
|
+
_chunkJTCJS4RSjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
785
785
|
} catch (error) {
|
|
786
|
-
|
|
786
|
+
_chunkJTCJS4RSjs.writeFatal.call(void 0,
|
|
787
787
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
788
788
|
);
|
|
789
789
|
throw error;
|
|
@@ -794,7 +794,7 @@ async function build2(options) {
|
|
|
794
794
|
|
|
795
795
|
// src/executors/esbuild/executor.ts
|
|
796
796
|
async function esbuildExecutorFn(options, context, config) {
|
|
797
|
-
|
|
797
|
+
_chunkJTCJS4RSjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
798
798
|
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])) {
|
|
799
799
|
throw new Error(
|
|
800
800
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -812,7 +812,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
812
812
|
success: true
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
|
-
var executor_default =
|
|
815
|
+
var executor_default = _chunkQZA6F5EAjs.withRunExecutor.call(void 0,
|
|
816
816
|
"Storm ESBuild build",
|
|
817
817
|
esbuildExecutorFn,
|
|
818
818
|
{
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3MSNXXXOjs = require('./chunk-3MSNXXXO.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkO4RSZYADjs = require('./chunk-O4RSZYAD.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ var _chunk6UBUJUQHjs = require('./chunk-6UBUJUQH.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkJTCJS4RSjs = require('./chunk-JTCJS4RS.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -255,19 +255,19 @@ var _versionlegacy = require('nx/src/command-line/release/version-legacy');
|
|
|
255
255
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
256
256
|
var _semver3 = require('semver');
|
|
257
257
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
258
|
-
|
|
258
|
+
_chunkJTCJS4RSjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
259
259
|
|
|
260
260
|
`, config);
|
|
261
|
-
const stopwatch =
|
|
261
|
+
const stopwatch = _chunkJTCJS4RSjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
262
262
|
try {
|
|
263
263
|
const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
|
|
264
|
-
|
|
264
|
+
_chunkJTCJS4RSjs.writeDebug.call(void 0,
|
|
265
265
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
266
266
|
- workspaceRoot: ${workspaceRoot}`,
|
|
267
267
|
config
|
|
268
268
|
);
|
|
269
|
-
config = await
|
|
270
|
-
|
|
269
|
+
config = await _chunkO4RSZYADjs.getConfig.call(void 0, workspaceRoot);
|
|
270
|
+
_chunkJTCJS4RSjs.writeTrace.call(void 0,
|
|
271
271
|
`Generator schema options \u2699\uFE0F
|
|
272
272
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).filter(
|
|
273
273
|
(key) => ![
|
|
@@ -348,9 +348,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
348
348
|
tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
|
|
349
349
|
);
|
|
350
350
|
const log = (msg) => {
|
|
351
|
-
|
|
351
|
+
_chunkJTCJS4RSjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
352
352
|
};
|
|
353
|
-
|
|
353
|
+
_chunkJTCJS4RSjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
354
354
|
let packageName;
|
|
355
355
|
let currentVersionFromDisk;
|
|
356
356
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -361,7 +361,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
361
361
|
packageName = projectPackageJson.name;
|
|
362
362
|
currentVersionFromDisk = projectPackageJson.version;
|
|
363
363
|
} else if (tree.exists(cargoTomlPath)) {
|
|
364
|
-
const cargoToml =
|
|
364
|
+
const cargoToml = _chunk3MSNXXXOjs.parseCargoToml.call(void 0,
|
|
365
365
|
_optionalChain([tree, 'access', _10 => _10.read, 'call', _11 => _11(cargoTomlPath), 'optionalAccess', _12 => _12.toString, 'call', _13 => _13("utf-8")])
|
|
366
366
|
);
|
|
367
367
|
log(
|
|
@@ -632,12 +632,12 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
632
632
|
version: newVersion
|
|
633
633
|
});
|
|
634
634
|
} else if (tree.exists(cargoTomlPath)) {
|
|
635
|
-
const cargoToml =
|
|
635
|
+
const cargoToml = _chunk3MSNXXXOjs.parseCargoToml.call(void 0,
|
|
636
636
|
_optionalChain([tree, 'access', _23 => _23.read, 'call', _24 => _24(cargoTomlPath), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26("utf-8")])
|
|
637
637
|
);
|
|
638
638
|
cargoToml.package ??= {};
|
|
639
639
|
cargoToml.package.version = newVersion;
|
|
640
|
-
tree.write(cargoTomlPath,
|
|
640
|
+
tree.write(cargoTomlPath, _chunk3MSNXXXOjs.stringifyCargoToml.call(void 0, cargoToml));
|
|
641
641
|
}
|
|
642
642
|
log(
|
|
643
643
|
`\u270D\uFE0F New version ${newVersion} written to ${workspaceRelativePackagePath}`
|
|
@@ -685,7 +685,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
685
685
|
return json;
|
|
686
686
|
});
|
|
687
687
|
} else if (tree.exists(dependentCargoTomlPath)) {
|
|
688
|
-
const dependentPkg =
|
|
688
|
+
const dependentPkg = _chunk3MSNXXXOjs.parseCargoTomlWithTree.call(void 0,
|
|
689
689
|
tree,
|
|
690
690
|
dependentPackageRoot,
|
|
691
691
|
dependentProject.source
|
|
@@ -727,18 +727,18 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
727
727
|
dependentPackageRoot,
|
|
728
728
|
"Cargo.toml"
|
|
729
729
|
);
|
|
730
|
-
|
|
730
|
+
_chunk3MSNXXXOjs.modifyCargoTable.call(void 0,
|
|
731
731
|
dependentPkg,
|
|
732
732
|
dependentProject.dependencyCollection,
|
|
733
733
|
dependentProject.target,
|
|
734
734
|
updatedDependencyData
|
|
735
735
|
);
|
|
736
|
-
tree.write(cargoTomlToUpdate,
|
|
736
|
+
tree.write(cargoTomlToUpdate, _chunk3MSNXXXOjs.stringifyCargoToml.call(void 0, dependentPkg));
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
await _devkit.formatFiles.call(void 0, tree);
|
|
741
|
-
|
|
741
|
+
_chunkJTCJS4RSjs.writeSuccess.call(void 0,
|
|
742
742
|
`Completed running the Storm Release Version generator!
|
|
743
743
|
`,
|
|
744
744
|
config
|
|
@@ -777,11 +777,11 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
779
|
} catch (error) {
|
|
780
|
-
|
|
780
|
+
_chunkJTCJS4RSjs.writeFatal.call(void 0,
|
|
781
781
|
"A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate",
|
|
782
782
|
config
|
|
783
783
|
);
|
|
784
|
-
|
|
784
|
+
_chunkJTCJS4RSjs.writeError.call(void 0,
|
|
785
785
|
`An exception was thrown in the Storm Release Version generator's process
|
|
786
786
|
- Details: ${error.message}
|
|
787
787
|
- Stacktrace: ${error.stack}`,
|
|
@@ -880,7 +880,7 @@ function resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjec
|
|
|
880
880
|
`The project "${dep.target}" does not have a packageRoot available.`
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
|
-
const cargoToml =
|
|
883
|
+
const cargoToml = _chunk3MSNXXXOjs.parseCargoTomlWithTree.call(void 0,
|
|
884
884
|
tree,
|
|
885
885
|
resolvePackageRoot(projectNode),
|
|
886
886
|
projectNode.name
|