@storm-software/workspace-tools 1.246.3 → 1.247.0
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 +12 -0
- package/README.md +1 -1
- package/config/{nx-default.json → base.json} +46 -48
- package/dist/{chunk-WPYYDD5F.js → chunk-24AOAWKM.js} +2 -2
- package/dist/{chunk-P4ALYDGC.js → chunk-2HIEYKTF.js} +5 -5
- package/dist/{chunk-BBRVJL4A.mjs → chunk-2LIE7SJ3.mjs} +32 -19
- package/dist/{chunk-KPKHTJWT.mjs → chunk-3IY2B44Z.mjs} +4 -4
- package/dist/{chunk-66FRJGIN.js → chunk-4AJFP7HM.js} +20 -20
- package/dist/{chunk-6V5GP3U4.js → chunk-4JOIS7WW.js} +24 -14
- package/dist/{chunk-BYLPQCIB.js → chunk-5CXC7ITO.js} +11 -11
- package/dist/{chunk-TJ6WVBYM.mjs → chunk-5EWLM3N6.mjs} +4 -4
- package/dist/{chunk-XI4BWTXX.mjs → chunk-5GLAGFHA.mjs} +3 -3
- package/dist/{chunk-N7VQR5KC.mjs → chunk-5JXVOE56.mjs} +3 -3
- package/dist/{chunk-AY5HELLN.js → chunk-5LEU7C3E.js} +25 -25
- package/dist/{chunk-GZPCM2GI.mjs → chunk-7MZLWLLT.mjs} +3 -3
- package/dist/{chunk-H5XURNDS.js → chunk-AC5SI4YZ.js} +2 -2
- package/dist/{chunk-2AKLJNKO.mjs → chunk-AHTDYOCZ.mjs} +20 -13
- package/dist/{chunk-BC3QVHAH.mjs → chunk-ATMJKNFF.mjs} +5 -5
- package/dist/{chunk-LZNWOO4B.js → chunk-B5YTVDRU.js} +5 -5
- package/dist/{chunk-4F75KA7J.mjs → chunk-BLSGWUGX.mjs} +3 -3
- package/dist/{chunk-ZQPK5G4U.js → chunk-BRWRLQDC.js} +22 -15
- package/dist/{chunk-BLG6LLHW.mjs → chunk-C5YDISDP.mjs} +26 -16
- package/dist/{chunk-FZI3TKFY.mjs → chunk-D7VXZZFG.mjs} +1 -1
- package/dist/{chunk-G3AMYMML.js → chunk-DVR7HEPK.js} +36 -23
- package/dist/{chunk-U4AQXXXF.mjs → chunk-E52NPVHL.mjs} +4 -4
- package/dist/{chunk-VYH45FO6.mjs → chunk-EIM3O6HY.mjs} +1 -1
- package/dist/{chunk-HK26KBWU.mjs → chunk-EPZT247P.mjs} +4 -4
- package/dist/{chunk-N3WLDHSN.js → chunk-ETVB65M4.js} +2 -2
- package/dist/{chunk-SLCOHXD3.mjs → chunk-F2GYXQ5H.mjs} +5 -4
- package/dist/{chunk-Z6E637KA.js → chunk-GDHENHPI.js} +41 -41
- package/dist/{chunk-AWPP7DRY.js → chunk-GKL4BY2Y.js} +2 -2
- package/dist/{chunk-GQ6ZBQ6I.mjs → chunk-H7GRZIKQ.mjs} +4 -4
- package/dist/{chunk-I6BCQJPP.mjs → chunk-HDWS7GST.mjs} +3 -3
- package/dist/{chunk-LUQIF4A3.mjs → chunk-HUCDWLQ3.mjs} +2 -2
- package/dist/{chunk-FBIVTCSJ.mjs → chunk-JB4KCMSB.mjs} +2 -2
- package/dist/{chunk-O3ZLX7S5.mjs → chunk-JQCRK5FU.mjs} +3 -3
- package/dist/{chunk-NCFX2MWO.mjs → chunk-KZJCDAOU.mjs} +1 -1
- package/dist/{chunk-WCIY3TEF.mjs → chunk-LWUP4RIM.mjs} +2 -2
- package/dist/{chunk-U3TVR7B3.js → chunk-MOPEW5LB.js} +5 -5
- package/dist/{chunk-7QVGAOPQ.mjs → chunk-MQE5KGI7.mjs} +3 -3
- package/dist/{chunk-4YODDZMS.mjs → chunk-NH75ORHH.mjs} +3 -3
- package/dist/{chunk-USUT2GLD.mjs → chunk-OHEABZJW.mjs} +1 -1
- package/dist/{chunk-KV7YB4MU.mjs → chunk-OM7XDCE7.mjs} +3 -3
- package/dist/{chunk-ZKWGOANM.mjs → chunk-OS3ZHOJP.mjs} +5 -5
- package/dist/{chunk-3SPGOKCO.mjs → chunk-OVR2BAKA.mjs} +2 -2
- package/dist/{chunk-3ORCJSUT.mjs → chunk-P2SLAYFV.mjs} +3 -3
- package/dist/{chunk-U7TEDNQF.js → chunk-PKBJIHOW.js} +31 -31
- package/dist/{chunk-Q2DU6KGV.js → chunk-PQQYCAXU.js} +5 -5
- package/dist/{chunk-ZVP6NBMF.js → chunk-QMXS4YBR.js} +2 -2
- package/dist/{chunk-IPMZQTRA.mjs → chunk-R6RTCWUK.mjs} +2 -2
- package/dist/{chunk-XUV4U54K.mjs → chunk-R7DU2APC.mjs} +1 -1
- package/dist/{chunk-ECSCURQQ.js → chunk-RBU35LQW.js} +2 -1
- package/dist/{chunk-RWDBQOGV.js → chunk-SJY2MQ7F.js} +5 -5
- package/dist/{chunk-NJ2QOT34.mjs → chunk-U7LV2H52.mjs} +1 -1
- package/dist/{chunk-34JK7ZOU.js → chunk-UALZJZUK.js} +2 -2
- package/dist/{chunk-LIYZBMAM.mjs → chunk-UH565HF3.mjs} +1 -1
- package/dist/{chunk-ZAE2P6GK.js → chunk-UKNWS4VZ.js} +4 -4
- package/dist/{chunk-R7VJ7ZHV.mjs → chunk-V7IOKRJA.mjs} +2 -2
- package/dist/{chunk-X7XA6QPV.mjs → chunk-VBPOZVKY.mjs} +3 -3
- package/dist/{chunk-EIL3PQQL.js → chunk-VBROJHZZ.js} +2 -2
- package/dist/{chunk-FDPZRNKZ.js → chunk-VBYEJNI3.js} +15 -15
- package/dist/{chunk-AQLXZBXJ.mjs → chunk-VCU6XMJC.mjs} +4 -4
- package/dist/{chunk-66TYTM73.mjs → chunk-W3SWWT4A.mjs} +1 -1
- package/dist/{chunk-ITL2GPJB.js → chunk-WAZC2KG4.js} +2 -2
- package/dist/{chunk-J5SXKBBU.mjs → chunk-X3GPVZMH.mjs} +1 -1
- package/dist/{chunk-QZHIWK5Z.mjs → chunk-XK3FSWMA.mjs} +1 -1
- package/dist/{chunk-6ZQ3QYXH.mjs → chunk-XUYTELRS.mjs} +2 -2
- package/dist/{chunk-Q47LFUGL.mjs → chunk-YHV3GYYF.mjs} +4 -4
- package/dist/{chunk-TBQLIKD4.mjs → chunk-YK676R5F.mjs} +6 -6
- package/dist/{chunk-BNYY2WQJ.js → chunk-ZDN367AN.js} +2 -2
- package/dist/{executor-CnnrgXKr.d.mts → executor-BDL9OXAe.d.mts} +1 -1
- package/dist/{executor-De29T5QB.d.mts → executor-BOz02M0D.d.mts} +1 -1
- package/dist/{executor-DZ-0sX_w.d.ts → executor-BzM1aAMj.d.ts} +1 -1
- package/dist/{executor-B2I8lRie.d.mts → executor-CJ2sUUqC.d.mts} +1 -1
- package/dist/{executor-B3LJ1461.d.mts → executor-D9Lkezla.d.mts} +1 -1
- package/dist/{executor-SU5oGftF.d.ts → executor-DIeaVupa.d.ts} +1 -1
- package/dist/{executor-D04WPR2V.d.ts → executor-DLeeL4eB.d.ts} +1 -1
- package/dist/{executor-B1mTS_M5.d.ts → executor-DdnyhsRE.d.ts} +1 -1
- package/dist/{executor-9k0vy4BU.d.mts → executor-DvKywXQM.d.mts} +1 -1
- package/dist/{executor-Dfot53CG.d.ts → executor-DxeOzkYd.d.ts} +1 -1
- package/dist/executors.d.mts +6 -6
- package/dist/executors.d.ts +6 -6
- package/dist/executors.js +16 -16
- package/dist/executors.mjs +22 -22
- package/dist/{generator-BCkqWM1d.d.ts → generator-8l8dnSzj.d.ts} +1 -1
- package/dist/{generator-DBa9-HbU.d.ts → generator-96lYy3vU.d.ts} +1 -1
- package/dist/{generator-BAbOohf7.d.mts → generator-ANcVdjRd.d.mts} +2 -2
- package/dist/{generator-CrR9QK6B.d.mts → generator-BXQhJBFX.d.mts} +2 -2
- package/dist/{generator-AFivysTp.d.ts → generator-Br48n2Qc.d.ts} +2 -2
- package/dist/{generator-CRiDjsPp.d.mts → generator-CAGPcZQ4.d.mts} +1 -1
- package/dist/{generator-rf62OraH.d.ts → generator-Cg5cXOd-.d.ts} +2 -2
- package/dist/{generator-B_HN13az.d.mts → generator-Ci71Fj-h.d.mts} +2 -2
- package/dist/{generator-DpXgF55u.d.mts → generator-D4l8BFsS.d.mts} +1 -1
- package/dist/{generator-DATsTV1E.d.mts → generator-DDFJK57t.d.mts} +2 -2
- package/dist/{generator-DNdirMec.d.ts → generator-DcKIyM9v.d.ts} +2 -2
- package/dist/{generator-F6EuzmJD.d.ts → generator-SVDta1L0.d.ts} +2 -2
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +12 -12
- package/dist/generators.mjs +16 -16
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +26 -26
- package/dist/index.mjs +40 -40
- 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 +5 -5
- package/dist/src/base/base-executor.mjs +6 -6
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- 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 +5 -5
- package/dist/src/base/base-generator.mjs +6 -6
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.d.mts +2 -2
- package/dist/src/base/index.d.ts +2 -2
- package/dist/src/base/index.js +7 -7
- package/dist/src/base/index.mjs +10 -10
- package/dist/src/base/typescript-build-executor.untyped.mjs +2 -2
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.js +6 -6
- package/dist/src/executors/cargo-build/executor.mjs +8 -8
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.js +6 -6
- package/dist/src/executors/cargo-check/executor.mjs +8 -8
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.js +6 -6
- package/dist/src/executors/cargo-clippy/executor.mjs +8 -8
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.js +6 -6
- package/dist/src/executors/cargo-doc/executor.mjs +8 -8
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.js +6 -6
- package/dist/src/executors/cargo-format/executor.mjs +8 -8
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- 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 +7 -7
- package/dist/src/executors/clean-package/executor.mjs +6 -6
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- 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 +7 -7
- package/dist/src/executors/esbuild/executor.mjs +8 -8
- package/dist/src/executors/esbuild/untyped.mjs +2 -2
- package/dist/src/executors/npm-publish/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- 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 +6 -6
- package/dist/src/executors/size-limit/executor.mjs +7 -7
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/tsdown/executor.d.mts +2 -2
- package/dist/src/executors/tsdown/executor.d.ts +2 -2
- package/dist/src/executors/tsdown/executor.js +7 -7
- package/dist/src/executors/tsdown/executor.mjs +8 -8
- package/dist/src/executors/tsdown/untyped.mjs +2 -2
- 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 +6 -6
- package/dist/src/executors/typia/executor.mjs +7 -7
- package/dist/src/executors/typia/untyped.mjs +1 -1
- 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 +6 -6
- package/dist/src/executors/unbuild/executor.mjs +7 -7
- package/dist/src/executors/unbuild/untyped.mjs +2 -2
- 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 +7 -7
- package/dist/src/generators/browser-library/generator.mjs +9 -9
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- 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 +6 -6
- package/dist/src/generators/config-schema/generator.mjs +7 -7
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +2 -2
- package/dist/src/generators/init/untyped.mjs +1 -1
- 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 +7 -7
- package/dist/src/generators/neutral-library/generator.mjs +9 -9
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- 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 +7 -7
- package/dist/src/generators/node-library/generator.mjs +9 -9
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- 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 +6 -6
- package/dist/src/generators/preset/generator.mjs +7 -7
- package/dist/src/generators/preset/untyped.mjs +1 -1
- 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 +4 -4
- package/dist/src/generators/release-version/generator.mjs +6 -6
- package/dist/src/generators/release-version/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +4 -4
- package/dist/src/plugins/rust/index.mjs +4 -4
- package/dist/src/plugins/typescript/index.mjs +4 -4
- package/dist/src/plugins/typescript/project-config.mjs +4 -4
- package/dist/src/plugins/typescript/tsdown.mjs +2 -2
- package/dist/src/plugins/typescript/tsup.mjs +2 -2
- package/dist/src/plugins/typescript/untyped-schema.mjs +2 -2
- package/dist/src/types.d.mts +2 -2
- package/dist/src/types.d.ts +2 -2
- package/dist/src/types.mjs +1 -1
- 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/apply-workspace-tokens.js +3 -3
- package/dist/src/utils/apply-workspace-tokens.mjs +4 -4
- package/dist/src/utils/cargo.mjs +2 -2
- package/dist/src/utils/create-cli-options.mjs +2 -2
- package/dist/src/utils/get-project-configurations.js +3 -3
- package/dist/src/utils/get-project-configurations.mjs +4 -4
- 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 +14 -14
- package/dist/src/utils/lock-file.mjs +2 -2
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.mjs +3 -3
- package/dist/src/utils/pnpm-deps-update.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/src/utils/project-tags.mjs +2 -2
- package/dist/src/utils/toml.mjs +2 -2
- package/dist/src/utils/typia-transform.mjs +2 -2
- package/dist/src/utils/versions.mjs +1 -1
- package/dist/{types-B5IG4iSJ.d.ts → types-BbEVA-sX.d.mts} +3 -0
- package/dist/{types-B5IG4iSJ.d.mts → types-BbEVA-sX.d.ts} +3 -0
- package/dist/{types-DpaECebR.d.ts → types-DLS_kod0.d.ts} +1 -1
- package/dist/{types-44XkV3HO.d.mts → types-DM_AJ5NA.d.mts} +1 -1
- package/package.json +2 -3
- package/config/nx-cloud.json +0 -459
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.247.0 (2025-02-01)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **config:** Renamed config file from `storm.json` to `storm-workspace.json` ([3ce65c15](https://github.com/storm-software/storm-ops/commit/3ce65c15))
|
|
6
|
+
|
|
7
|
+
## 1.246.4 (2025-01-29)
|
|
8
|
+
|
|
9
|
+
### Miscellaneous
|
|
10
|
+
|
|
11
|
+
- **monorepo:** Regenerate README markdown files ([a1b6717d](https://github.com/storm-software/storm-ops/commit/a1b6717d))
|
|
12
|
+
|
|
1
13
|
## 1.246.3 (2025-01-29)
|
|
2
14
|
|
|
3
15
|
### 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 -->
|
|
@@ -45,19 +45,24 @@
|
|
|
45
45
|
"{workspaceRoot}/.gitignore",
|
|
46
46
|
"{workspaceRoot}/nx.json",
|
|
47
47
|
"{workspaceRoot}/.nxignore",
|
|
48
|
-
"{workspaceRoot}/storm.json",
|
|
49
|
-
"{workspaceRoot}/storm.*.json",
|
|
50
|
-
"{workspaceRoot}/.storm/config.json",
|
|
51
|
-
"{workspaceRoot}/.storm/config.*.json",
|
|
52
|
-
"{workspaceRoot}/storm.yaml",
|
|
53
|
-
"{workspaceRoot}/storm.*.yaml",
|
|
54
|
-
"{workspaceRoot}/.storm/config.yaml",
|
|
55
|
-
"{workspaceRoot}/.storm/config.*.yaml",
|
|
56
|
-
"{workspaceRoot}/storm.toml",
|
|
57
|
-
"{workspaceRoot}/storm.*.toml",
|
|
58
|
-
"{workspaceRoot}/.storm/config.toml",
|
|
59
|
-
"{workspaceRoot}/.storm/config.*.toml",
|
|
60
|
-
"{workspaceRoot}/storm.config.js",
|
|
48
|
+
"{workspaceRoot}/storm-workspace.json",
|
|
49
|
+
"{workspaceRoot}/storm-workspace.*.json",
|
|
50
|
+
"{workspaceRoot}/.storm-workspace/config.json",
|
|
51
|
+
"{workspaceRoot}/.storm-workspace/config.*.json",
|
|
52
|
+
"{workspaceRoot}/storm-workspace.yaml",
|
|
53
|
+
"{workspaceRoot}/storm-workspace.*.yaml",
|
|
54
|
+
"{workspaceRoot}/.storm-workspace/config.yaml",
|
|
55
|
+
"{workspaceRoot}/.storm-workspace/config.*.yaml",
|
|
56
|
+
"{workspaceRoot}/storm-workspace.toml",
|
|
57
|
+
"{workspaceRoot}/storm-workspace.*.toml",
|
|
58
|
+
"{workspaceRoot}/.storm-workspace/config.toml",
|
|
59
|
+
"{workspaceRoot}/.storm-workspace/config.*.toml",
|
|
60
|
+
"{workspaceRoot}/storm-workspace.config.js",
|
|
61
|
+
"{workspaceRoot}/.storm-workspace/config.js",
|
|
62
|
+
"{workspaceRoot}/.storm-workspace/config.*.js",
|
|
63
|
+
"{workspaceRoot}/storm-workspace.config.ts",
|
|
64
|
+
"{workspaceRoot}/.storm-workspace/config.ts",
|
|
65
|
+
"{workspaceRoot}/.storm-workspace/config.*.ts",
|
|
61
66
|
"{workspaceRoot}/.env",
|
|
62
67
|
"{workspaceRoot}/.env.local"
|
|
63
68
|
],
|
|
@@ -302,15 +307,7 @@
|
|
|
302
307
|
]
|
|
303
308
|
},
|
|
304
309
|
"targetDefaults": {
|
|
305
|
-
"lint-docs": {
|
|
306
|
-
"cache": true,
|
|
307
|
-
"outputs": ["{projectRoot}/**/*"],
|
|
308
|
-
"inputs": ["linting", "documentation", "default", "^production"],
|
|
309
|
-
"executor": "nx:run-commands",
|
|
310
|
-
"dependsOn": ["build", "^lint-docs"]
|
|
311
|
-
},
|
|
312
310
|
"lint-ls": {
|
|
313
|
-
"cache": true,
|
|
314
311
|
"outputs": ["{projectRoot}/**/*"],
|
|
315
312
|
"inputs": ["linting", "default", "^production"],
|
|
316
313
|
"dependsOn": ["^lint-ls"],
|
|
@@ -321,7 +318,6 @@
|
|
|
321
318
|
}
|
|
322
319
|
},
|
|
323
320
|
"lint-sherif": {
|
|
324
|
-
"cache": true,
|
|
325
321
|
"outputs": ["{projectRoot}/package.json"],
|
|
326
322
|
"inputs": ["{workspaceRoot}/package.json", "{projectRoot}/package.json"],
|
|
327
323
|
"executor": "nx:run-commands",
|
|
@@ -330,7 +326,6 @@
|
|
|
330
326
|
}
|
|
331
327
|
},
|
|
332
328
|
"lint-knip": {
|
|
333
|
-
"cache": true,
|
|
334
329
|
"inputs": ["linting", "default", "^production"],
|
|
335
330
|
"executor": "nx:run-commands",
|
|
336
331
|
"options": {
|
|
@@ -338,18 +333,21 @@
|
|
|
338
333
|
}
|
|
339
334
|
},
|
|
340
335
|
"lint": {
|
|
341
|
-
"cache": true,
|
|
342
336
|
"outputs": ["{projectRoot}"],
|
|
343
337
|
"inputs": ["linting", "default", "^production"],
|
|
344
|
-
"dependsOn": [
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
338
|
+
"dependsOn": [
|
|
339
|
+
"lint-ls",
|
|
340
|
+
"lint-sherif",
|
|
341
|
+
"lint-knip",
|
|
342
|
+
"lint-docs",
|
|
343
|
+
"^lint"
|
|
344
|
+
],
|
|
345
|
+
"executor": "nx:run-commands",
|
|
346
|
+
"options": {
|
|
347
|
+
"command": "echo Linted the project files in \"{projectRoot}\" "
|
|
348
|
+
}
|
|
350
349
|
},
|
|
351
350
|
"format-toml": {
|
|
352
|
-
"cache": true,
|
|
353
351
|
"inputs": ["linting", "{projectRoot}/**/*.toml"],
|
|
354
352
|
"outputs": ["{projectRoot}/**/*.toml"],
|
|
355
353
|
"dependsOn": ["^format-toml"],
|
|
@@ -360,7 +358,6 @@
|
|
|
360
358
|
}
|
|
361
359
|
},
|
|
362
360
|
"format-readme": {
|
|
363
|
-
"cache": true,
|
|
364
361
|
"inputs": [
|
|
365
362
|
"linting",
|
|
366
363
|
"documentation",
|
|
@@ -377,7 +374,6 @@
|
|
|
377
374
|
}
|
|
378
375
|
},
|
|
379
376
|
"format-prettier": {
|
|
380
|
-
"cache": true,
|
|
381
377
|
"inputs": ["linting", "default", "^production"],
|
|
382
378
|
"dependsOn": ["^format-prettier"],
|
|
383
379
|
"executor": "nx:run-commands",
|
|
@@ -387,41 +383,47 @@
|
|
|
387
383
|
}
|
|
388
384
|
},
|
|
389
385
|
"format": {
|
|
390
|
-
"cache": true,
|
|
391
386
|
"inputs": ["linting", "default", "^production"],
|
|
392
387
|
"outputs": ["{projectRoot}"],
|
|
388
|
+
"dependsOn": [
|
|
389
|
+
"format-toml",
|
|
390
|
+
"format-readme",
|
|
391
|
+
"format-prettier",
|
|
392
|
+
"^format"
|
|
393
|
+
],
|
|
393
394
|
"executor": "nx:run-commands",
|
|
394
395
|
"options": {
|
|
395
|
-
"command": "echo
|
|
396
|
-
"color": true
|
|
396
|
+
"command": "echo Formatted the project files in \"{projectRoot}\" "
|
|
397
397
|
}
|
|
398
398
|
},
|
|
399
399
|
"clean": {
|
|
400
|
-
"cache": true,
|
|
401
400
|
"inputs": ["default", "^production"],
|
|
401
|
+
"outputs": "NX_DEFAULT_BUILD_OUTPUTS",
|
|
402
|
+
"dependsOn": ["^clean"],
|
|
402
403
|
"executor": "nx:run-commands",
|
|
403
|
-
"
|
|
404
|
+
"options": {
|
|
405
|
+
"commands": [
|
|
406
|
+
"pnpm exec rimraf --glob {projectRoot}/dist",
|
|
407
|
+
"pnpm exec rimraf dist/{projectRoot}"
|
|
408
|
+
]
|
|
409
|
+
}
|
|
404
410
|
},
|
|
405
411
|
"build-untyped": {
|
|
406
|
-
"cache": true,
|
|
407
412
|
"dependsOn": ["^build"]
|
|
408
413
|
},
|
|
409
414
|
"build-base": {
|
|
410
|
-
"
|
|
411
|
-
"dependsOn": ["clean", "build-untyped", "^build"]
|
|
415
|
+
"dependsOn": ["build-untyped", "^build"]
|
|
412
416
|
},
|
|
413
417
|
"build-local": {
|
|
414
|
-
"cache": true,
|
|
415
418
|
"inputs": ["default", "^production"],
|
|
416
419
|
"dependsOn": ["build-base", "build-untyped", "^build"]
|
|
417
420
|
},
|
|
418
421
|
"build": {
|
|
419
|
-
"cache": true,
|
|
420
422
|
"inputs": ["default", "^production"],
|
|
423
|
+
"outputs": "NX_DEFAULT_BUILD_OUTPUTS",
|
|
421
424
|
"dependsOn": ["build-base", "build-untyped", "^build"]
|
|
422
425
|
},
|
|
423
426
|
"rebuild": {
|
|
424
|
-
"cache": false,
|
|
425
427
|
"inputs": ["default", "^production"],
|
|
426
428
|
"executor": "nx:run-commands",
|
|
427
429
|
"dependsOn": ["clean", "^build"],
|
|
@@ -432,23 +434,19 @@
|
|
|
432
434
|
}
|
|
433
435
|
},
|
|
434
436
|
"docs": {
|
|
435
|
-
"cache": true,
|
|
436
437
|
"outputs": ["{options.outputPath}"],
|
|
437
438
|
"inputs": ["linting", "documentation", "default", "^production"],
|
|
438
439
|
"dependsOn": ["build", "format-readme", "lint-docs", "^docs"]
|
|
439
440
|
},
|
|
440
441
|
"test": {
|
|
441
|
-
"cache": true,
|
|
442
442
|
"inputs": ["testing", "default", "^production"],
|
|
443
443
|
"dependsOn": ["build", "^test"]
|
|
444
444
|
},
|
|
445
445
|
"e2e": {
|
|
446
|
-
"cache": true,
|
|
447
446
|
"inputs": ["testing", "default", "^production"],
|
|
448
447
|
"dependsOn": ["test", "^e2e"]
|
|
449
448
|
},
|
|
450
449
|
"nx-release-publish": {
|
|
451
|
-
"cache": true,
|
|
452
450
|
"inputs": ["default", "^production"],
|
|
453
451
|
"dependsOn": ["build", "^nx-release-publish"]
|
|
454
452
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5LEU7C3Ejs = require('./chunk-5LEU7C3E.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 = _chunk5LEU7C3Ejs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
|
|
24
24
|
skipReadingConfig: false,
|
|
25
25
|
hooks: {
|
|
26
26
|
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 _chunk5LEU7C3Ejs = require('./chunk-5LEU7C3E.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBRWRLQDCjs = require('./chunk-BRWRLQDC.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
|
+
_chunkBRWRLQDCjs.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
|
+
_chunkBRWRLQDCjs.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 = _chunk5LEU7C3Ejs.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) => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeDebug,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AHTDYOCZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findWorkspaceRoot
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C5YDISDP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
correctPaths,
|
|
10
10
|
joinPaths
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
15
15
|
|
|
16
16
|
// ../build-tools/src/config.ts
|
|
17
17
|
var DEFAULT_COMPILED_BANNER = `
|
|
@@ -82,11 +82,12 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
82
82
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
83
83
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
84
84
|
import { Glob } from "glob";
|
|
85
|
-
import { existsSync } from "node:fs";
|
|
85
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
86
86
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
87
|
-
import { readCachedProjectGraph } from "nx/src/project-graph/project-graph";
|
|
87
|
+
import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
|
|
88
88
|
var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projectRoot, projectName, packageJson) => {
|
|
89
|
-
const
|
|
89
|
+
const projectGraph = readCachedProjectGraph();
|
|
90
|
+
const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
90
91
|
const localPackages = [];
|
|
91
92
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
92
93
|
const projectNode = project.node;
|
|
@@ -103,26 +104,38 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
|
|
|
103
104
|
}
|
|
104
105
|
if (localPackages.length > 0) {
|
|
105
106
|
writeTrace(`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
const projectJsonFile = await readFile2(joinPaths(projectRoot, "project.json"), "utf8");
|
|
108
|
+
const projectJson = JSON.parse(projectJsonFile);
|
|
109
|
+
const projectName2 = projectJson.name;
|
|
110
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
111
|
+
if (!projectConfigurations?.projects?.[projectName2]) {
|
|
112
|
+
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
113
|
+
}
|
|
114
|
+
const implicitDependencies = projectConfigurations.projects?.[projectName2].implicitDependencies?.reduce((ret, dep) => {
|
|
115
|
+
if (projectConfigurations.projects?.[dep]) {
|
|
116
|
+
const depPackageJsonPath = joinPaths(workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
|
|
117
|
+
if (existsSync(depPackageJsonPath)) {
|
|
118
|
+
const depPackageJsonContent = readFileSync(depPackageJsonPath, "utf8");
|
|
119
|
+
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
120
|
+
if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
|
|
121
|
+
ret.push(depPackageJson.name);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
109
124
|
}
|
|
110
125
|
return ret;
|
|
111
|
-
},
|
|
112
|
-
packageJson.
|
|
113
|
-
if (!ret[localPackage.name]) {
|
|
114
|
-
ret[localPackage.name] = {
|
|
115
|
-
optional: false
|
|
116
|
-
};
|
|
126
|
+
}, []);
|
|
127
|
+
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
128
|
+
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
|
|
129
|
+
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
117
130
|
}
|
|
118
131
|
return ret;
|
|
119
|
-
}, packageJson.
|
|
132
|
+
}, packageJson.dependencies ?? {});
|
|
120
133
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
121
|
-
if (!ret[localPackage.name]) {
|
|
134
|
+
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
|
|
122
135
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
123
136
|
}
|
|
124
137
|
return ret;
|
|
125
|
-
}, packageJson.
|
|
138
|
+
}, packageJson.devDependencies ?? {});
|
|
126
139
|
} else {
|
|
127
140
|
writeTrace("\u{1F4E6} No local packages dependencies to add to package.json");
|
|
128
141
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F2GYXQ5H.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-H7GRZIKQ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname,
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
15
15
|
|
|
16
16
|
// src/generators/browser-library/generator.ts
|
|
17
17
|
import { formatFiles, generateFiles, names, offsetFromRoot } from "@nx/devkit";
|
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -11,10 +11,10 @@ var _chunk34JK7ZOUjs = require('./chunk-34JK7ZOU.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkBRWRLQDCjs = require('./chunk-BRWRLQDC.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -23,34 +23,34 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
24
24
|
skipReadingConfig: false
|
|
25
25
|
}) => async (tree, _options) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkBRWRLQDCjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config;
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
_chunkBRWRLQDCjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
31
31
|
|
|
32
32
|
`, config);
|
|
33
|
-
const workspaceRoot =
|
|
33
|
+
const workspaceRoot = _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, );
|
|
34
34
|
if (!generatorOptions.skipReadingConfig) {
|
|
35
|
-
|
|
35
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
37
|
-
config = await
|
|
37
|
+
config = await _chunkBRWRLQDCjs.getConfig.call(void 0, workspaceRoot);
|
|
38
38
|
}
|
|
39
39
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
40
|
-
|
|
40
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
41
41
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
42
|
-
|
|
42
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
_chunkBRWRLQDCjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
45
45
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
46
|
-
const tokenized = await
|
|
46
|
+
const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, {
|
|
47
47
|
workspaceRoot: tree.root,
|
|
48
48
|
config
|
|
49
|
-
},
|
|
49
|
+
}, _chunkUALZJZUKjs.applyWorkspaceBaseTokens);
|
|
50
50
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
51
|
-
|
|
51
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
52
52
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
53
|
-
|
|
53
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
54
54
|
}
|
|
55
55
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
56
56
|
if (result) {
|
|
@@ -63,18 +63,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
66
|
-
|
|
66
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
67
67
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
68
|
-
|
|
68
|
+
_chunkBRWRLQDCjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
69
69
|
}
|
|
70
70
|
return () => {
|
|
71
|
-
|
|
71
|
+
_chunkBRWRLQDCjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
72
72
|
`, config);
|
|
73
73
|
};
|
|
74
74
|
} catch (error) {
|
|
75
75
|
return () => {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
_chunkBRWRLQDCjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
77
|
+
_chunkBRWRLQDCjs.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
78
78
|
- Details: ${error.message}
|
|
79
79
|
- Stacktrace: ${error.stack}`, config);
|
|
80
80
|
};
|
|
@@ -10,14 +10,17 @@ var _fs = require('fs');
|
|
|
10
10
|
var _path = require('path');
|
|
11
11
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
12
12
|
var depth = 0;
|
|
13
|
-
function findFolderUp(startPath, endFileNames) {
|
|
13
|
+
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
14
14
|
const _startPath = _nullishCoalesce(startPath, () => ( process.cwd()));
|
|
15
|
+
if (endDirectoryNames.some((endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName)))) {
|
|
16
|
+
return _startPath;
|
|
17
|
+
}
|
|
15
18
|
if (endFileNames.some((endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName)))) {
|
|
16
19
|
return _startPath;
|
|
17
20
|
}
|
|
18
21
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
19
22
|
const parent = _path.join.call(void 0, _startPath, "..");
|
|
20
|
-
return findFolderUp(parent, endFileNames);
|
|
23
|
+
return findFolderUp(parent, endFileNames, endDirectoryNames);
|
|
21
24
|
}
|
|
22
25
|
return void 0;
|
|
23
26
|
}
|
|
@@ -25,17 +28,17 @@ _chunk3GQAWCBQjs.__name.call(void 0, findFolderUp, "findFolderUp");
|
|
|
25
28
|
|
|
26
29
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
27
30
|
var rootFiles = [
|
|
28
|
-
"storm.json",
|
|
29
|
-
"storm.json",
|
|
30
|
-
"storm.yaml",
|
|
31
|
-
"storm.yml",
|
|
32
|
-
"storm.js",
|
|
33
|
-
"storm.ts",
|
|
34
|
-
".storm.json",
|
|
35
|
-
".storm.yaml",
|
|
36
|
-
".storm.yml",
|
|
37
|
-
".storm.js",
|
|
38
|
-
".storm.ts",
|
|
31
|
+
"storm-workspace.json",
|
|
32
|
+
"storm-workspace.json",
|
|
33
|
+
"storm-workspace.yaml",
|
|
34
|
+
"storm-workspace.yml",
|
|
35
|
+
"storm-workspace.js",
|
|
36
|
+
"storm-workspace.ts",
|
|
37
|
+
".storm-workspace.json",
|
|
38
|
+
".storm-workspace.yaml",
|
|
39
|
+
".storm-workspace.yml",
|
|
40
|
+
".storm-workspace.js",
|
|
41
|
+
".storm-workspace.ts",
|
|
39
42
|
"lerna.json",
|
|
40
43
|
"nx.json",
|
|
41
44
|
"turbo.json",
|
|
@@ -59,11 +62,18 @@ var rootFiles = [
|
|
|
59
62
|
"pnpm-lock.yml",
|
|
60
63
|
"bun.lockb"
|
|
61
64
|
];
|
|
65
|
+
var rootDirectories = [
|
|
66
|
+
".storm-workspace",
|
|
67
|
+
".nx",
|
|
68
|
+
".github",
|
|
69
|
+
".vscode",
|
|
70
|
+
".verdaccio"
|
|
71
|
+
];
|
|
62
72
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
63
73
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
64
74
|
return _chunkJTAXCQX6js.correctPaths.call(void 0, _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
|
|
65
75
|
}
|
|
66
|
-
return _chunkJTAXCQX6js.correctPaths.call(void 0, findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles));
|
|
76
|
+
return _chunkJTAXCQX6js.correctPaths.call(void 0, findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles, rootDirectories));
|
|
67
77
|
}
|
|
68
78
|
_chunk3GQAWCBQjs.__name.call(void 0, findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
69
79
|
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
@@ -1,15 +1,15 @@
|
|
|
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 _chunk4AJFP7HMjs = require('./chunk-4AJFP7HM.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkBRWRLQDCjs = require('./chunk-BRWRLQDC.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -18,25 +18,25 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
20
20
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
21
|
+
_chunkBRWRLQDCjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
|
|
22
|
+
_chunkBRWRLQDCjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
|
|
23
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkBRWRLQDCjs.StormConfigSchema, {
|
|
24
24
|
name: "StormWorkspaceConfiguration"
|
|
25
25
|
});
|
|
26
|
-
|
|
27
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => (
|
|
28
|
-
|
|
26
|
+
_chunkBRWRLQDCjs.writeTrace.call(void 0, jsonSchema, config);
|
|
27
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk4JOIS7WWjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./");
|
|
28
|
+
_chunkBRWRLQDCjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
29
29
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
30
30
|
spaces: 2
|
|
31
31
|
});
|
|
32
32
|
await _devkit.formatFiles.call(void 0, tree);
|
|
33
|
-
|
|
33
|
+
_chunkBRWRLQDCjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
34
34
|
return {
|
|
35
35
|
success: true
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
_chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
39
|
-
var generator_default =
|
|
39
|
+
var generator_default = _chunk4AJFP7HMjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
|
|
40
40
|
hooks: {
|
|
41
41
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
42
42
|
options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VCU6XMJC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AHTDYOCZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
joinPaths
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
13
13
|
|
|
14
14
|
// src/executors/unbuild/executor.ts
|
|
15
15
|
import { defu } from "defu";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VCU6XMJC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AHTDYOCZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
10
10
|
|
|
11
11
|
// src/executors/typia/executor.ts
|
|
12
12
|
import { removeSync } from "fs-extra";
|