@storm-software/workspace-tools 1.228.1 → 1.229.1
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 +16 -0
- package/dist/chunk-2EGD2QSN.js +183 -0
- package/dist/chunk-2JA7WAH7.mjs +93 -0
- package/dist/chunk-34LSWMWV.mjs +20 -0
- package/dist/chunk-35B5C22H.mjs +50 -0
- package/dist/chunk-36FMHXUD.js +988 -0
- package/dist/chunk-3GQAWCBQ.js +13 -0
- package/dist/chunk-3GVBGSCQ.js +86 -0
- package/dist/chunk-3IZ3O4OK.js +30 -0
- package/dist/chunk-3J53KHVV.js +1 -0
- package/dist/chunk-3ORCJSUT.mjs +37 -0
- package/dist/chunk-45GU4HW2.js +267 -0
- package/dist/chunk-4NOLUAQN.js +43 -0
- package/dist/chunk-5CPYNJT2.js +61 -0
- package/dist/chunk-5MKQX2FE.js +82 -0
- package/dist/chunk-6267MSX4.mjs +118 -0
- package/dist/chunk-66TYTM73.mjs +102 -0
- package/dist/chunk-6B6IVIMQ.js +31 -0
- package/dist/chunk-6QO3KMZA.js +93 -0
- package/dist/chunk-6TSAUSG4.mjs +18 -0
- package/dist/chunk-6YZ3OUJB.mjs +0 -0
- package/dist/chunk-6ZQ3QYXH.mjs +93 -0
- package/dist/chunk-7AXFMX2T.js +37 -0
- package/dist/chunk-7CJRMBX3.js +20 -0
- package/dist/chunk-7MZQTO7J.js +726 -0
- package/dist/chunk-7YRW5HNX.js +102 -0
- package/dist/chunk-B3KIYNGT.mjs +88 -0
- package/dist/chunk-B7LWGAUI.js +50 -0
- package/dist/chunk-BO44O7D2.mjs +43 -0
- package/dist/chunk-BWFTYFWM.js +59 -0
- package/dist/chunk-CT7IVPJY.js +384 -0
- package/dist/chunk-CZJW5H5T.mjs +183 -0
- package/dist/chunk-DGC5L3Z7.mjs +22 -0
- package/dist/chunk-DHGZTMND.js +26 -0
- package/dist/chunk-DIODSFGH.js +1045 -0
- package/dist/chunk-DLO5NZQI.mjs +1046 -0
- package/dist/chunk-DLQLZTCZ.mjs +69 -0
- package/dist/chunk-DMUTOQCB.mjs +82 -0
- package/dist/chunk-EK75QNMS.mjs +40 -0
- package/dist/chunk-ESRRKJO5.mjs +51 -0
- package/dist/chunk-F5WI7VDM.js +42 -0
- package/dist/chunk-F7QTSVDJ.mjs +130 -0
- package/dist/chunk-FBLF4KJF.js +306 -0
- package/dist/chunk-FFBZYD6R.mjs +59 -0
- package/dist/chunk-FP4PPOO6.js +32 -0
- package/dist/chunk-GGGO542M.js +93 -0
- package/dist/chunk-GV44QHV3.mjs +32 -0
- package/dist/chunk-GZPCM2GI.mjs +413 -0
- package/dist/chunk-HAT7PSQD.mjs +509 -0
- package/dist/chunk-HI4G4OOG.js +40 -0
- package/dist/chunk-I734UVDT.js +22 -0
- package/dist/chunk-I7OZOKTH.js +65 -0
- package/dist/chunk-INAG73GE.js +69 -0
- package/dist/chunk-INERRJ6Q.js +1 -0
- package/dist/chunk-J5SXKBBU.mjs +30 -0
- package/dist/chunk-JEV3GSS7.js +51 -0
- package/dist/chunk-JGP4YWZY.js +1 -0
- package/dist/chunk-JGTW4AJ7.mjs +32 -0
- package/dist/chunk-KBJ7IEXI.js +1 -0
- package/dist/chunk-KLEKFCL2.js +58 -0
- package/dist/chunk-LIYZBMAM.mjs +13 -0
- package/dist/chunk-MF4RRA4Q.mjs +726 -0
- package/dist/chunk-MSENNRAY.js +118 -0
- package/dist/chunk-NCVJPQSP.js +88 -0
- package/dist/chunk-NDDXQD7R.mjs +61 -0
- package/dist/chunk-OA7KWN7D.mjs +66 -0
- package/dist/chunk-OESA3G7F.mjs +31 -0
- package/dist/chunk-OJ3R7YBK.js +302 -0
- package/dist/chunk-P5P43FOZ.mjs +0 -0
- package/dist/chunk-PMDV5GKD.js +240 -0
- package/dist/chunk-PS2NPPRM.mjs +267 -0
- package/dist/chunk-PS55UN6T.mjs +59 -0
- package/dist/chunk-PVTEDLBL.mjs +26 -0
- package/dist/chunk-PY52QA2R.js +130 -0
- package/dist/chunk-QMJ7P54Z.mjs +241 -0
- package/dist/chunk-QZHIWK5Z.mjs +190 -0
- package/dist/chunk-RKOOM5R5.js +509 -0
- package/dist/chunk-RLIZVCIN.mjs +0 -0
- package/dist/chunk-RPECQQG4.mjs +288 -0
- package/dist/chunk-SFT3A33D.mjs +32 -0
- package/dist/chunk-T7IVGU7T.mjs +302 -0
- package/dist/chunk-TILR7372.js +48 -0
- package/dist/chunk-TYAPQ46X.js +353 -0
- package/dist/chunk-UDAQKEJS.mjs +384 -0
- package/dist/chunk-ULBTYC2B.js +190 -0
- package/dist/chunk-USUT2GLD.mjs +26 -0
- package/dist/chunk-V7YZ3666.mjs +0 -0
- package/dist/chunk-VYH45FO6.mjs +55 -0
- package/dist/chunk-W4QV74K2.mjs +87 -0
- package/dist/chunk-WJ5TU6JU.mjs +988 -0
- package/dist/chunk-WTHELTBU.mjs +48 -0
- package/dist/chunk-XCSSYTCU.js +26 -0
- package/dist/chunk-XID4OBY2.mjs +353 -0
- package/dist/chunk-XITP2BX2.js +13 -0
- package/dist/chunk-XONECYS4.js +413 -0
- package/dist/chunk-XSCTGWRG.mjs +42 -0
- package/dist/chunk-XSRDTQ5C.mjs +306 -0
- package/dist/chunk-XUV4U54K.mjs +21 -0
- package/dist/chunk-ZCZVVZBX.js +32 -0
- package/dist/chunk-ZFIZ5Q46.js +288 -0
- package/dist/chunk-ZMFVKBRM.js +55 -0
- package/dist/chunk-ZPWY4RXH.js +18 -0
- package/dist/chunk-ZXT33DDB.js +32 -0
- package/dist/executor-5Wog21g_.d.mts +34 -0
- package/dist/executor-B8D-FX1j.d.mts +132 -0
- package/dist/executor-B8D-FX1j.d.ts +132 -0
- package/dist/executor-B8unq_QL.d.mts +150 -0
- package/dist/executor-BD3oxCXJ.d.mts +96 -0
- package/dist/executor-BD3oxCXJ.d.ts +96 -0
- package/dist/executor-BKdjKo-J.d.mts +93 -0
- package/dist/executor-BKdjKo-J.d.ts +93 -0
- package/dist/executor-BSXWmnE3.d.mts +263 -0
- package/dist/executor-Bt8koUTv.d.mts +104 -0
- package/dist/executor-Bt8koUTv.d.ts +104 -0
- package/dist/executor-BuS0IH1B.d.mts +96 -0
- package/dist/executor-BuS0IH1B.d.ts +96 -0
- package/dist/executor-C5AtaKvj.d.mts +148 -0
- package/dist/executor-CpcXNDfG.d.mts +122 -0
- package/dist/executor-CpcXNDfG.d.ts +122 -0
- package/dist/executor-D5hcfG7B.d.ts +57 -0
- package/dist/executor-D8m1bXgk.d.mts +57 -0
- package/dist/executor-DTcKLfcw.d.mts +67 -0
- package/dist/executor-DTcKLfcw.d.ts +67 -0
- package/dist/executor-DlTSIchw.d.ts +148 -0
- package/dist/executor-U929Bp8J.d.ts +34 -0
- package/dist/executor-sYaxQf5n.d.ts +150 -0
- package/dist/executor-wWkM11v5.d.ts +263 -0
- package/dist/executors.d.mts +16 -0
- package/dist/executors.d.ts +16 -0
- package/dist/executors.js +62 -0
- package/dist/executors.mjs +62 -0
- package/dist/generator-48_WHnGL.d.mts +184 -0
- package/dist/generator-BLYdn00o.d.mts +108 -0
- package/dist/generator-BqzpDHpv.d.mts +322 -0
- package/dist/generator-BufhnJev.d.ts +322 -0
- package/dist/generator-CC8n6BWL.d.mts +38 -0
- package/dist/generator-CtpgcwxE.d.ts +38 -0
- package/dist/generator-DeKyhxAj.d.mts +322 -0
- package/dist/generator-DeNfAL1R.d.ts +184 -0
- package/dist/generator-Dyq3mgZU.d.mts +322 -0
- package/dist/generator-OLytwpdD.d.ts +322 -0
- package/dist/generator-T2p5gT0C.d.ts +322 -0
- package/dist/generator-noL-xIjx.d.ts +108 -0
- package/dist/generators.d.mts +13 -0
- package/dist/generators.d.ts +13 -0
- package/dist/generators.js +41 -0
- package/dist/generators.mjs +41 -0
- package/dist/index.d.mts +51 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +280 -0
- package/dist/index.mjs +280 -0
- package/dist/init-6Nmtv8d5.d.mts +19 -0
- package/dist/init-6Nmtv8d5.d.ts +19 -0
- package/dist/schema.d-CRz8jtUC.d.mts +60 -0
- package/dist/schema.d-CRz8jtUC.d.ts +60 -0
- package/dist/src/base/base-executor.d.mts +9 -0
- package/dist/src/base/base-executor.d.ts +9 -0
- package/dist/src/base/base-executor.js +12 -0
- package/dist/src/base/base-executor.mjs +12 -0
- package/dist/src/base/base-executor.schema.md +16 -0
- package/dist/src/base/base-executor.untyped.d.mts +5 -0
- package/dist/src/base/base-executor.untyped.d.ts +5 -0
- package/dist/src/base/base-executor.untyped.js +7 -0
- package/dist/src/base/base-executor.untyped.mjs +7 -0
- package/dist/src/base/base-generator.d.mts +9 -0
- package/dist/src/base/base-generator.d.ts +9 -0
- package/dist/src/base/base-generator.js +11 -0
- package/dist/src/base/base-generator.mjs +11 -0
- package/dist/src/base/base-generator.schema.md +15 -0
- package/dist/src/base/base-generator.untyped.d.mts +5 -0
- package/dist/src/base/base-generator.untyped.d.ts +5 -0
- package/dist/src/base/base-generator.untyped.js +7 -0
- package/dist/src/base/base-generator.untyped.mjs +7 -0
- package/dist/src/base/cargo-base-executor.schema.md +90 -0
- package/dist/src/base/cargo-base-executor.untyped.d.mts +5 -0
- package/dist/src/base/cargo-base-executor.untyped.d.ts +5 -0
- package/dist/src/base/cargo-base-executor.untyped.js +8 -0
- package/dist/src/base/cargo-base-executor.untyped.mjs +8 -0
- package/dist/src/base/index.d.mts +337 -0
- package/dist/src/base/index.d.ts +337 -0
- package/dist/src/base/index.js +49 -0
- package/dist/src/base/index.mjs +49 -0
- package/dist/src/base/typescript-build-executor.schema.md +130 -0
- package/dist/src/base/typescript-build-executor.untyped.d.mts +5 -0
- package/dist/src/base/typescript-build-executor.untyped.d.ts +5 -0
- package/dist/src/base/typescript-build-executor.untyped.js +8 -0
- package/dist/src/base/typescript-build-executor.untyped.mjs +8 -0
- package/dist/src/base/typescript-library-generator.schema.md +297 -0
- package/dist/src/base/typescript-library-generator.untyped.d.mts +5 -0
- package/dist/src/base/typescript-library-generator.untyped.d.ts +5 -0
- package/dist/src/base/typescript-library-generator.untyped.js +8 -0
- package/dist/src/base/typescript-library-generator.untyped.mjs +8 -0
- package/dist/src/executors/cargo-build/executor.d.mts +2 -0
- package/dist/src/executors/cargo-build/executor.d.ts +2 -0
- package/dist/src/executors/cargo-build/executor.js +16 -0
- package/dist/src/executors/cargo-build/executor.mjs +16 -0
- package/dist/src/executors/cargo-build/schema.d.ts +86 -0
- package/dist/src/executors/cargo-build/schema.json +85 -0
- package/dist/src/executors/cargo-build/schema.md +89 -0
- package/dist/src/executors/cargo-build/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-build/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-build/untyped.js +26 -0
- package/dist/src/executors/cargo-build/untyped.mjs +26 -0
- package/dist/src/executors/cargo-check/executor.d.mts +2 -0
- package/dist/src/executors/cargo-check/executor.d.ts +2 -0
- package/dist/src/executors/cargo-check/executor.js +16 -0
- package/dist/src/executors/cargo-check/executor.mjs +16 -0
- 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-check/schema.md +90 -0
- package/dist/src/executors/cargo-check/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-check/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-check/untyped.js +19 -0
- package/dist/src/executors/cargo-check/untyped.mjs +19 -0
- package/dist/src/executors/cargo-clippy/executor.d.mts +2 -0
- package/dist/src/executors/cargo-clippy/executor.d.ts +2 -0
- package/dist/src/executors/cargo-clippy/executor.js +16 -0
- package/dist/src/executors/cargo-clippy/executor.mjs +16 -0
- 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-clippy/schema.md +99 -0
- package/dist/src/executors/cargo-clippy/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-clippy/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-clippy/untyped.js +26 -0
- package/dist/src/executors/cargo-clippy/untyped.mjs +26 -0
- package/dist/src/executors/cargo-doc/executor.d.mts +2 -0
- package/dist/src/executors/cargo-doc/executor.d.ts +2 -0
- package/dist/src/executors/cargo-doc/executor.js +16 -0
- package/dist/src/executors/cargo-doc/executor.mjs +16 -0
- 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-doc/schema.md +130 -0
- package/dist/src/executors/cargo-doc/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-doc/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-doc/untyped.js +51 -0
- package/dist/src/executors/cargo-doc/untyped.mjs +51 -0
- package/dist/src/executors/cargo-format/executor.d.mts +2 -0
- package/dist/src/executors/cargo-format/executor.d.ts +2 -0
- package/dist/src/executors/cargo-format/executor.js +16 -0
- package/dist/src/executors/cargo-format/executor.mjs +16 -0
- 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-format/schema.md +90 -0
- package/dist/src/executors/cargo-format/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-format/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-format/untyped.js +19 -0
- package/dist/src/executors/cargo-format/untyped.mjs +19 -0
- package/dist/src/executors/cargo-publish/executor.d.mts +2 -0
- package/dist/src/executors/cargo-publish/executor.d.ts +2 -0
- package/dist/src/executors/cargo-publish/executor.js +10 -0
- package/dist/src/executors/cargo-publish/executor.mjs +10 -0
- 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/cargo-publish/schema.md +117 -0
- package/dist/src/executors/cargo-publish/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-publish/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-publish/untyped.js +41 -0
- package/dist/src/executors/cargo-publish/untyped.mjs +41 -0
- package/dist/src/executors/clean-package/executor.d.mts +12 -0
- package/dist/src/executors/clean-package/executor.d.ts +12 -0
- package/dist/src/executors/clean-package/executor.js +303 -0
- package/dist/src/executors/clean-package/executor.mjs +303 -0
- 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/clean-package/schema.md +65 -0
- package/dist/src/executors/clean-package/untyped.d.mts +5 -0
- package/dist/src/executors/clean-package/untyped.d.ts +5 -0
- package/dist/src/executors/clean-package/untyped.js +68 -0
- package/dist/src/executors/clean-package/untyped.mjs +68 -0
- package/dist/src/executors/esbuild/executor.d.mts +4 -0
- package/dist/src/executors/esbuild/executor.d.ts +4 -0
- package/dist/src/executors/esbuild/executor.js +16 -0
- package/dist/src/executors/esbuild/executor.mjs +16 -0
- package/dist/src/executors/esbuild/schema.d.ts +141 -0
- package/dist/src/executors/esbuild/schema.json +173 -0
- package/dist/src/executors/esbuild/schema.md +130 -0
- package/dist/src/executors/esbuild/untyped.d.mts +5 -0
- package/dist/src/executors/esbuild/untyped.d.ts +5 -0
- package/dist/src/executors/esbuild/untyped.js +32 -0
- package/dist/src/executors/esbuild/untyped.mjs +32 -0
- package/dist/src/executors/npm-publish/executor.d.mts +2 -0
- package/dist/src/executors/npm-publish/executor.d.ts +2 -0
- package/dist/src/executors/npm-publish/executor.js +11 -0
- package/dist/src/executors/npm-publish/executor.mjs +11 -0
- package/dist/src/executors/npm-publish/schema.d.ts +60 -0
- package/dist/src/executors/npm-publish/schema.json +55 -0
- package/dist/src/executors/npm-publish/schema.md +64 -0
- package/dist/src/executors/npm-publish/untyped.d.mts +5 -0
- package/dist/src/executors/npm-publish/untyped.d.ts +5 -0
- package/dist/src/executors/npm-publish/untyped.js +61 -0
- package/dist/src/executors/npm-publish/untyped.mjs +61 -0
- package/dist/src/executors/size-limit/executor.d.mts +4 -0
- package/dist/src/executors/size-limit/executor.d.ts +4 -0
- package/dist/src/executors/size-limit/executor.js +15 -0
- package/dist/src/executors/size-limit/executor.mjs +15 -0
- 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/size-limit/schema.md +25 -0
- package/dist/src/executors/size-limit/untyped.d.mts +5 -0
- package/dist/src/executors/size-limit/untyped.d.ts +5 -0
- package/dist/src/executors/size-limit/untyped.js +29 -0
- package/dist/src/executors/size-limit/untyped.mjs +29 -0
- package/dist/src/executors/tsdown/executor.d.mts +4 -0
- package/dist/src/executors/tsdown/executor.d.ts +4 -0
- package/dist/src/executors/tsdown/executor.js +16 -0
- package/dist/src/executors/tsdown/executor.mjs +16 -0
- package/dist/src/executors/tsdown/schema.d.ts +139 -0
- package/dist/src/executors/tsdown/schema.json +182 -0
- package/dist/src/executors/tsdown/schema.md +130 -0
- package/dist/src/executors/tsdown/untyped.d.mts +5 -0
- package/dist/src/executors/tsdown/untyped.d.ts +5 -0
- package/dist/src/executors/tsdown/untyped.js +19 -0
- package/dist/src/executors/tsdown/untyped.mjs +19 -0
- package/dist/src/executors/typia/executor.d.mts +4 -0
- package/dist/src/executors/typia/executor.d.ts +4 -0
- package/dist/src/executors/typia/executor.js +15 -0
- package/dist/src/executors/typia/executor.mjs +15 -0
- package/dist/src/executors/typia/schema.d.ts +48 -0
- package/dist/src/executors/typia/schema.json +57 -0
- package/dist/src/executors/typia/schema.md +46 -0
- package/dist/src/executors/typia/untyped.d.mts +5 -0
- package/dist/src/executors/typia/untyped.d.ts +5 -0
- package/dist/src/executors/typia/untyped.js +63 -0
- package/dist/src/executors/typia/untyped.mjs +63 -0
- package/dist/src/executors/unbuild/executor.d.mts +4 -0
- package/dist/src/executors/unbuild/executor.d.ts +4 -0
- package/dist/src/executors/unbuild/executor.js +16 -0
- package/dist/src/executors/unbuild/executor.mjs +16 -0
- package/dist/src/executors/unbuild/schema.d.ts +254 -0
- package/dist/src/executors/unbuild/schema.json +305 -0
- package/dist/src/executors/unbuild/schema.md +220 -0
- package/dist/src/executors/unbuild/untyped.d.mts +5 -0
- package/dist/src/executors/unbuild/untyped.d.ts +5 -0
- package/dist/src/executors/unbuild/untyped.js +138 -0
- package/dist/src/executors/unbuild/untyped.mjs +138 -0
- package/dist/src/generators/browser-library/files/README.md +58 -0
- package/dist/src/generators/browser-library/files/jest.config.ts +3 -0
- package/dist/src/generators/browser-library/files/tsconfig.spec.json +13 -0
- package/dist/src/generators/browser-library/generator.d.mts +6 -0
- package/dist/src/generators/browser-library/generator.d.ts +6 -0
- package/dist/src/generators/browser-library/generator.js +17 -0
- package/dist/src/generators/browser-library/generator.mjs +17 -0
- package/dist/src/generators/browser-library/schema.d.ts +314 -0
- package/dist/src/generators/browser-library/schema.json +262 -0
- package/dist/src/generators/browser-library/schema.md +297 -0
- package/dist/src/generators/browser-library/untyped.d.mts +5 -0
- package/dist/src/generators/browser-library/untyped.d.ts +5 -0
- package/dist/src/generators/browser-library/untyped.js +43 -0
- package/dist/src/generators/browser-library/untyped.mjs +43 -0
- package/dist/src/generators/config-schema/generator.d.mts +6 -0
- package/dist/src/generators/config-schema/generator.d.ts +6 -0
- package/dist/src/generators/config-schema/generator.js +14 -0
- package/dist/src/generators/config-schema/generator.mjs +14 -0
- 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/config-schema/schema.md +25 -0
- package/dist/src/generators/config-schema/untyped.d.mts +5 -0
- package/dist/src/generators/config-schema/untyped.d.ts +5 -0
- package/dist/src/generators/config-schema/untyped.js +26 -0
- package/dist/src/generators/config-schema/untyped.mjs +26 -0
- package/dist/src/generators/init/init.d.mts +2 -0
- package/dist/src/generators/init/init.d.ts +2 -0
- package/dist/src/generators/init/init.js +9 -0
- package/dist/src/generators/init/init.mjs +9 -0
- package/dist/src/generators/init/schema.d.ts +14 -0
- package/dist/src/generators/init/schema.json +15 -0
- package/dist/src/generators/init/schema.md +15 -0
- package/dist/src/generators/init/untyped.d.mts +5 -0
- package/dist/src/generators/init/untyped.d.ts +5 -0
- package/dist/src/generators/init/untyped.js +21 -0
- package/dist/src/generators/init/untyped.mjs +21 -0
- package/dist/src/generators/neutral-library/files/README.md +58 -0
- package/dist/src/generators/neutral-library/files/jest.config.ts +3 -0
- package/dist/src/generators/neutral-library/files/tsconfig.spec.json +13 -0
- package/dist/src/generators/neutral-library/generator.d.mts +6 -0
- package/dist/src/generators/neutral-library/generator.d.ts +6 -0
- package/dist/src/generators/neutral-library/generator.js +17 -0
- package/dist/src/generators/neutral-library/generator.mjs +17 -0
- package/dist/src/generators/neutral-library/schema.d.ts +314 -0
- package/dist/src/generators/neutral-library/schema.json +261 -0
- package/dist/src/generators/neutral-library/schema.md +297 -0
- package/dist/src/generators/neutral-library/untyped.d.mts +5 -0
- package/dist/src/generators/neutral-library/untyped.d.ts +5 -0
- package/dist/src/generators/neutral-library/untyped.js +42 -0
- package/dist/src/generators/neutral-library/untyped.mjs +42 -0
- package/dist/src/generators/node-library/files/README.md +58 -0
- package/dist/src/generators/node-library/files/jest.config.ts +3 -0
- package/dist/src/generators/node-library/files/tsconfig.spec.json +13 -0
- package/dist/src/generators/node-library/generator.d.mts +6 -0
- package/dist/src/generators/node-library/generator.d.ts +6 -0
- package/dist/src/generators/node-library/generator.js +17 -0
- package/dist/src/generators/node-library/generator.mjs +17 -0
- package/dist/src/generators/node-library/schema.d.ts +314 -0
- package/dist/src/generators/node-library/schema.json +262 -0
- package/dist/src/generators/node-library/schema.md +297 -0
- package/dist/src/generators/node-library/untyped.d.mts +5 -0
- package/dist/src/generators/node-library/untyped.d.ts +5 -0
- package/dist/src/generators/node-library/untyped.js +43 -0
- package/dist/src/generators/node-library/untyped.mjs +43 -0
- package/dist/src/generators/preset/files/LICENSE +201 -0
- package/dist/src/generators/preset/files/README.md.template +282 -0
- package/dist/src/generators/preset/files/docs/readme-templates/README.footer.md.template +123 -0
- package/dist/src/generators/preset/files/docs/readme-templates/README.header.md.template +22 -0
- package/dist/src/generators/preset/files/eslint.config.js.template +24 -0
- package/dist/src/generators/preset/files/knip.json +20 -0
- package/dist/src/generators/preset/files/lefthook.json +106 -0
- package/dist/src/generators/preset/files/nx.json +7 -0
- package/dist/src/generators/preset/files/pnpm-workspace.yaml +6 -0
- package/dist/src/generators/preset/files/socket.yaml +20 -0
- package/dist/src/generators/preset/files/storm.json.template +12 -0
- package/dist/src/generators/preset/files/tsconfig.base.json.template +11 -0
- package/dist/src/generators/preset/generator.d.mts +6 -0
- package/dist/src/generators/preset/generator.d.ts +6 -0
- package/dist/src/generators/preset/generator.js +15 -0
- package/dist/src/generators/preset/generator.mjs +15 -0
- package/dist/src/generators/preset/schema.d.ts +101 -0
- package/dist/src/generators/preset/schema.json +96 -0
- package/dist/src/generators/preset/schema.md +110 -0
- package/dist/src/generators/preset/untyped.d.mts +5 -0
- package/dist/src/generators/preset/untyped.d.ts +5 -0
- package/dist/src/generators/preset/untyped.js +103 -0
- package/dist/src/generators/preset/untyped.mjs +103 -0
- package/dist/src/generators/release-version/generator.d.mts +5 -0
- package/dist/src/generators/release-version/generator.d.ts +5 -0
- package/dist/src/generators/release-version/generator.js +13 -0
- package/dist/src/generators/release-version/generator.mjs +13 -0
- package/dist/src/generators/release-version/schema.d.ts +178 -0
- package/dist/src/generators/release-version/schema.json +154 -0
- package/dist/src/generators/release-version/schema.md +158 -0
- package/dist/src/generators/release-version/untyped.d.mts +5 -0
- package/dist/src/generators/release-version/untyped.d.ts +5 -0
- package/dist/src/generators/release-version/untyped.js +170 -0
- package/dist/src/generators/release-version/untyped.mjs +170 -0
- package/dist/src/plugins/rust/cargo-toml.d.mts +23 -0
- package/dist/src/plugins/rust/cargo-toml.d.ts +23 -0
- package/dist/src/plugins/rust/cargo-toml.js +19 -0
- package/dist/src/plugins/rust/cargo-toml.mjs +19 -0
- package/dist/src/plugins/rust/index.d.mts +2 -0
- package/dist/src/plugins/rust/index.d.ts +2 -0
- package/dist/src/plugins/rust/index.js +19 -0
- package/dist/src/plugins/rust/index.mjs +19 -0
- package/dist/src/plugins/typescript/index.d.mts +2 -0
- package/dist/src/plugins/typescript/index.d.ts +2 -0
- package/dist/src/plugins/typescript/index.js +10 -0
- package/dist/src/plugins/typescript/index.mjs +10 -0
- package/dist/src/plugins/typescript/project-config.d.mts +9 -0
- package/dist/src/plugins/typescript/project-config.d.ts +9 -0
- package/dist/src/plugins/typescript/project-config.js +10 -0
- package/dist/src/plugins/typescript/project-config.mjs +10 -0
- package/dist/src/plugins/typescript/tsdown.d.mts +8 -0
- package/dist/src/plugins/typescript/tsdown.d.ts +8 -0
- package/dist/src/plugins/typescript/tsdown.js +142 -0
- package/dist/src/plugins/typescript/tsdown.mjs +142 -0
- package/dist/src/plugins/typescript/tsup.d.mts +8 -0
- package/dist/src/plugins/typescript/tsup.d.ts +8 -0
- package/dist/src/plugins/typescript/tsup.js +142 -0
- package/dist/src/plugins/typescript/tsup.mjs +142 -0
- package/dist/src/types.d.mts +1 -1
- package/dist/src/types.d.ts +1 -1
- package/dist/src/utils/apply-workspace-tokens.d.mts +17 -0
- package/dist/src/utils/apply-workspace-tokens.d.ts +17 -0
- package/dist/src/utils/apply-workspace-tokens.js +9 -0
- package/dist/src/utils/apply-workspace-tokens.mjs +9 -0
- package/dist/src/utils/cargo.d.mts +119 -0
- package/dist/src/utils/cargo.d.ts +119 -0
- package/dist/src/utils/cargo.js +23 -0
- package/dist/src/utils/cargo.mjs +23 -0
- package/dist/src/utils/create-cli-options.d.mts +3 -0
- package/dist/src/utils/create-cli-options.d.ts +3 -0
- package/dist/src/utils/create-cli-options.js +7 -0
- package/dist/src/utils/create-cli-options.mjs +7 -0
- package/dist/src/utils/get-project-configurations.d.mts +16 -0
- package/dist/src/utils/get-project-configurations.d.ts +16 -0
- package/dist/src/utils/get-project-configurations.js +11 -0
- package/dist/src/utils/get-project-configurations.mjs +11 -0
- package/dist/src/utils/index.d.mts +20 -0
- package/dist/src/utils/index.d.ts +20 -0
- package/dist/src/utils/index.js +146 -0
- package/dist/src/utils/index.mjs +146 -0
- package/dist/src/utils/lock-file.d.mts +26 -0
- package/dist/src/utils/lock-file.d.ts +26 -0
- package/dist/src/utils/lock-file.js +27 -0
- package/dist/src/utils/lock-file.mjs +27 -0
- package/dist/src/utils/package-helpers.d.mts +16 -0
- package/dist/src/utils/package-helpers.d.ts +16 -0
- package/dist/src/utils/package-helpers.js +11 -0
- package/dist/src/utils/package-helpers.mjs +11 -0
- package/dist/src/utils/pnpm-deps-update.d.mts +9 -0
- package/dist/src/utils/pnpm-deps-update.d.ts +9 -0
- package/dist/src/utils/pnpm-deps-update.js +8 -0
- package/dist/src/utils/pnpm-deps-update.mjs +8 -0
- package/dist/src/utils/project-tags.d.mts +54 -0
- package/dist/src/utils/project-tags.d.ts +54 -0
- package/dist/src/utils/project-tags.js +21 -0
- package/dist/src/utils/project-tags.mjs +21 -0
- package/dist/src/utils/toml.d.mts +136 -0
- package/dist/src/utils/toml.d.ts +136 -0
- package/dist/src/utils/toml.js +15 -0
- package/dist/src/utils/toml.mjs +15 -0
- package/dist/src/utils/typia-transform.d.mts +5 -0
- package/dist/src/utils/typia-transform.d.ts +5 -0
- package/dist/src/utils/typia-transform.js +7 -0
- package/dist/src/utils/typia-transform.mjs +7 -0
- package/dist/src/utils/versions.d.mts +20 -0
- package/dist/src/utils/versions.d.ts +20 -0
- package/dist/src/utils/versions.js +41 -0
- package/dist/src/utils/versions.mjs +41 -0
- package/dist/types-BmsLBqaq.d.ts +101 -0
- package/dist/types-CQzaS20Q.d.mts +101 -0
- package/dist/types-D9vU63tt.d.mts +1185 -0
- package/dist/types-D9vU63tt.d.ts +1185 -0
- package/docs/api/executors/cargo-build/schema.md +89 -0
- package/docs/api/executors/cargo-check/schema.md +90 -0
- package/docs/api/executors/cargo-clippy/schema.md +99 -0
- package/docs/api/executors/cargo-doc/schema.md +130 -0
- package/docs/api/executors/cargo-format/schema.md +90 -0
- package/docs/api/executors/cargo-publish/schema.md +117 -0
- package/docs/api/executors/clean-package/schema.md +65 -0
- package/docs/api/executors/esbuild/schema.md +130 -0
- package/docs/api/executors/npm-publish/schema.md +64 -0
- package/docs/api/executors/size-limit/schema.md +25 -0
- package/docs/api/executors/tsdown/schema.md +130 -0
- package/docs/api/executors/typia/schema.md +46 -0
- package/docs/api/executors/unbuild/schema.md +220 -0
- package/docs/api/generators/browser-library/files/README.md +58 -0
- package/docs/api/generators/browser-library/schema.md +297 -0
- package/docs/api/generators/config-schema/schema.md +25 -0
- package/docs/api/generators/init/schema.md +15 -0
- package/docs/api/generators/neutral-library/files/README.md +58 -0
- package/docs/api/generators/neutral-library/schema.md +297 -0
- package/docs/api/generators/node-library/files/README.md +58 -0
- package/docs/api/generators/node-library/schema.md +297 -0
- package/docs/api/generators/preset/schema.md +110 -0
- package/docs/api/generators/release-version/schema.md +158 -0
- package/package.json +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import {
|
|
2
|
+
applyWorkspaceExecutorTokens
|
|
3
|
+
} from "./chunk-FFBZYD6R.mjs";
|
|
4
|
+
import {
|
|
5
|
+
applyWorkspaceTokens
|
|
6
|
+
} from "./chunk-NDDXQD7R.mjs";
|
|
7
|
+
import {
|
|
8
|
+
formatLogMessage,
|
|
9
|
+
getStopwatch,
|
|
10
|
+
loadStormConfig,
|
|
11
|
+
writeDebug,
|
|
12
|
+
writeError,
|
|
13
|
+
writeFatal,
|
|
14
|
+
writeInfo,
|
|
15
|
+
writeSuccess,
|
|
16
|
+
writeTrace
|
|
17
|
+
} from "./chunk-WJ5TU6JU.mjs";
|
|
18
|
+
import {
|
|
19
|
+
findWorkspaceRoot
|
|
20
|
+
} from "./chunk-DMUTOQCB.mjs";
|
|
21
|
+
import {
|
|
22
|
+
__name
|
|
23
|
+
} from "./chunk-XUV4U54K.mjs";
|
|
24
|
+
|
|
25
|
+
// src/base/base-executor.ts
|
|
26
|
+
var withRunExecutor = /* @__PURE__ */ __name((name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
27
|
+
const stopwatch = getStopwatch(name);
|
|
28
|
+
let options = _options;
|
|
29
|
+
let config = {};
|
|
30
|
+
try {
|
|
31
|
+
writeInfo(`\u26A1 Running the ${name} executor...
|
|
32
|
+
`, config);
|
|
33
|
+
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
34
|
+
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
35
|
+
}
|
|
36
|
+
const workspaceRoot = findWorkspaceRoot();
|
|
37
|
+
const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
|
|
38
|
+
const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
|
|
39
|
+
const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
|
|
40
|
+
config.workspaceRoot = workspaceRoot;
|
|
41
|
+
if (!executorOptions.skipReadingConfig) {
|
|
42
|
+
writeTrace(`Loading the Storm Config from environment variables and storm.config.js file...
|
|
43
|
+
- workspaceRoot: ${workspaceRoot}
|
|
44
|
+
- projectRoot: ${projectRoot}
|
|
45
|
+
- sourceRoot: ${sourceRoot}
|
|
46
|
+
- projectName: ${projectName}
|
|
47
|
+
`, config);
|
|
48
|
+
config = await loadStormConfig(workspaceRoot);
|
|
49
|
+
}
|
|
50
|
+
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
51
|
+
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
52
|
+
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
53
|
+
writeDebug("Completed the applyDefaultOptions hook", config);
|
|
54
|
+
}
|
|
55
|
+
writeTrace(`Executor schema options \u2699\uFE0F
|
|
56
|
+
${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
57
|
+
const tokenized = await applyWorkspaceTokens(options, {
|
|
58
|
+
config,
|
|
59
|
+
workspaceRoot,
|
|
60
|
+
projectRoot,
|
|
61
|
+
sourceRoot,
|
|
62
|
+
projectName,
|
|
63
|
+
...context.projectsConfigurations.projects[context.projectName],
|
|
64
|
+
...executorOptions
|
|
65
|
+
}, applyWorkspaceExecutorTokens);
|
|
66
|
+
if (executorOptions?.hooks?.preProcess) {
|
|
67
|
+
writeDebug("Running the preProcess hook...", config);
|
|
68
|
+
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
69
|
+
writeDebug("Completed the preProcess hook", config);
|
|
70
|
+
}
|
|
71
|
+
const ret = executorFn(tokenized, context, config);
|
|
72
|
+
if (_isFunction(ret?.next)) {
|
|
73
|
+
const asyncGen = ret;
|
|
74
|
+
for await (const iter of asyncGen) {
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
const result = await Promise.resolve(ret);
|
|
78
|
+
if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
|
|
79
|
+
writeTrace(`Failure determined by the ${name} executor
|
|
80
|
+
${formatLogMessage(result)}`, config);
|
|
81
|
+
console.error(result);
|
|
82
|
+
throw new Error(`The ${name} executor failed to run`, {
|
|
83
|
+
cause: result?.error
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
if (executorOptions?.hooks?.postProcess) {
|
|
87
|
+
writeDebug("Running the postProcess hook...", config);
|
|
88
|
+
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
89
|
+
writeDebug("Completed the postProcess hook", config);
|
|
90
|
+
}
|
|
91
|
+
writeSuccess(`Completed running the ${name} task executor!
|
|
92
|
+
`, config);
|
|
93
|
+
return {
|
|
94
|
+
success: true
|
|
95
|
+
};
|
|
96
|
+
} catch (error) {
|
|
97
|
+
writeFatal("A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
98
|
+
writeError(`An exception was thrown in the executor's process
|
|
99
|
+
- Details: ${error.message}
|
|
100
|
+
- Stacktrace: ${error.stack}`, config);
|
|
101
|
+
return {
|
|
102
|
+
success: false
|
|
103
|
+
};
|
|
104
|
+
} finally {
|
|
105
|
+
stopwatch();
|
|
106
|
+
}
|
|
107
|
+
}, "withRunExecutor");
|
|
108
|
+
var _isFunction = /* @__PURE__ */ __name((value) => {
|
|
109
|
+
try {
|
|
110
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
111
|
+
} catch (e) {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
}, "_isFunction");
|
|
115
|
+
|
|
116
|
+
export {
|
|
117
|
+
withRunExecutor
|
|
118
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name
|
|
3
|
+
} from "./chunk-XUV4U54K.mjs";
|
|
4
|
+
|
|
5
|
+
// src/utils/project-tags.ts
|
|
6
|
+
var ProjectTagConstants = {
|
|
7
|
+
Language: {
|
|
8
|
+
TAG_ID: "language",
|
|
9
|
+
TYPESCRIPT: "typescript",
|
|
10
|
+
RUST: "rust"
|
|
11
|
+
},
|
|
12
|
+
ProjectType: {
|
|
13
|
+
TAG_ID: "type",
|
|
14
|
+
LIBRARY: "library",
|
|
15
|
+
APPLICATION: "application"
|
|
16
|
+
},
|
|
17
|
+
DistStyle: {
|
|
18
|
+
TAG_ID: "dist-style",
|
|
19
|
+
NORMAL: "normal",
|
|
20
|
+
CLEAN: "clean"
|
|
21
|
+
},
|
|
22
|
+
Provider: {
|
|
23
|
+
TAG_ID: "provider"
|
|
24
|
+
},
|
|
25
|
+
Platform: {
|
|
26
|
+
TAG_ID: "platform",
|
|
27
|
+
NODE: "node",
|
|
28
|
+
BROWSER: "browser",
|
|
29
|
+
NEUTRAL: "neutral",
|
|
30
|
+
WORKER: "worker"
|
|
31
|
+
},
|
|
32
|
+
Registry: {
|
|
33
|
+
TAG_ID: "registry",
|
|
34
|
+
CARGO: "cargo",
|
|
35
|
+
NPM: "npm",
|
|
36
|
+
CONTAINER: "container",
|
|
37
|
+
CYCLONE: "cyclone"
|
|
38
|
+
},
|
|
39
|
+
Plugin: {
|
|
40
|
+
TAG_ID: "plugin"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
var formatProjectTag = /* @__PURE__ */ __name((variant, value) => {
|
|
44
|
+
return `${variant}:${value}`;
|
|
45
|
+
}, "formatProjectTag");
|
|
46
|
+
var hasProjectTag = /* @__PURE__ */ __name((project, variant) => {
|
|
47
|
+
project.tags = project.tags ?? [];
|
|
48
|
+
const prefix = formatProjectTag(variant, "");
|
|
49
|
+
return project.tags.some((tag) => tag.startsWith(prefix) && tag.length > prefix.length);
|
|
50
|
+
}, "hasProjectTag");
|
|
51
|
+
var getProjectTag = /* @__PURE__ */ __name((project, variant) => {
|
|
52
|
+
if (!hasProjectTag(project, variant)) {
|
|
53
|
+
return void 0;
|
|
54
|
+
}
|
|
55
|
+
project.tags = project.tags ?? [];
|
|
56
|
+
const prefix = formatProjectTag(variant, "");
|
|
57
|
+
const tag = project.tags.find((tag2) => tag2.startsWith(prefix));
|
|
58
|
+
return tag?.replace(prefix, "");
|
|
59
|
+
}, "getProjectTag");
|
|
60
|
+
var isEqualProjectTag = /* @__PURE__ */ __name((project, variant, value) => {
|
|
61
|
+
const tag = getProjectTag(project, variant);
|
|
62
|
+
return !!(tag && tag?.toUpperCase() === value.toUpperCase());
|
|
63
|
+
}, "isEqualProjectTag");
|
|
64
|
+
var addProjectTag = /* @__PURE__ */ __name((project, variant, value, options = {
|
|
65
|
+
overwrite: false
|
|
66
|
+
}) => {
|
|
67
|
+
project.tags = project.tags ?? [];
|
|
68
|
+
if (options.overwrite || !hasProjectTag(project, variant)) {
|
|
69
|
+
project.tags = project.tags.filter((tag) => !tag.startsWith(formatProjectTag(variant, "")));
|
|
70
|
+
project.tags.push(formatProjectTag(variant, value));
|
|
71
|
+
}
|
|
72
|
+
}, "addProjectTag");
|
|
73
|
+
var addPluginProjectTag = /* @__PURE__ */ __name((project, plugin) => {
|
|
74
|
+
project.tags = project.tags ?? [];
|
|
75
|
+
project.tags.push(formatProjectTag(ProjectTagConstants.Plugin.TAG_ID, plugin));
|
|
76
|
+
}, "addPluginProjectTag");
|
|
77
|
+
var setDefaultProjectTags = /* @__PURE__ */ __name((project, plugin) => {
|
|
78
|
+
project.tags = project.tags ?? [];
|
|
79
|
+
addProjectTag(project, ProjectTagConstants.ProjectType.TAG_ID, project.projectType === "application" ? ProjectTagConstants.ProjectType.APPLICATION : ProjectTagConstants.ProjectType.LIBRARY, {
|
|
80
|
+
overwrite: true
|
|
81
|
+
});
|
|
82
|
+
addProjectTag(project, ProjectTagConstants.DistStyle.TAG_ID, project.targets && Object.keys(project.targets).includes("clean-package") ? ProjectTagConstants.DistStyle.CLEAN : ProjectTagConstants.DistStyle.NORMAL, {
|
|
83
|
+
overwrite: true
|
|
84
|
+
});
|
|
85
|
+
addProjectTag(project, ProjectTagConstants.Platform.TAG_ID, project.targets?.build?.options.platform === "node" ? ProjectTagConstants.Platform.NODE : project.targets?.build?.options.platform === "worker" ? ProjectTagConstants.Platform.WORKER : project.targets?.build?.options.platform === "browser" ? ProjectTagConstants.Platform.BROWSER : ProjectTagConstants.Platform.NEUTRAL, {
|
|
86
|
+
overwrite: false
|
|
87
|
+
});
|
|
88
|
+
if (plugin) {
|
|
89
|
+
addPluginProjectTag(project, plugin);
|
|
90
|
+
}
|
|
91
|
+
}, "setDefaultProjectTags");
|
|
92
|
+
|
|
93
|
+
export {
|
|
94
|
+
ProjectTagConstants,
|
|
95
|
+
formatProjectTag,
|
|
96
|
+
hasProjectTag,
|
|
97
|
+
getProjectTag,
|
|
98
|
+
isEqualProjectTag,
|
|
99
|
+
addProjectTag,
|
|
100
|
+
addPluginProjectTag,
|
|
101
|
+
setDefaultProjectTags
|
|
102
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkMSENNRAYjs = require('./chunk-MSENNRAY.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
11
|
+
|
|
12
|
+
// src/executors/cargo-check/executor.ts
|
|
13
|
+
async function cargoCheckExecutor(options, context) {
|
|
14
|
+
const command = _chunkULBTYC2Bjs.buildCargoCommand.call(void 0, "check", options, context);
|
|
15
|
+
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
|
+
}
|
|
17
|
+
_chunk3GQAWCBQjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
18
|
+
var executor_default = _chunkMSENNRAYjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
|
|
19
|
+
skipReadingConfig: false,
|
|
20
|
+
hooks: {
|
|
21
|
+
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
22
|
+
options.toolchain ??= "stable";
|
|
23
|
+
return options;
|
|
24
|
+
}, "applyDefaultOptions")
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
exports.cargoCheckExecutor = cargoCheckExecutor; exports.executor_default = executor_default;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkI734UVDTjs = require('./chunk-I734UVDT.js');
|
|
4
|
+
|
|
5
|
+
// src/base/cargo-base-executor.untyped.ts
|
|
6
|
+
var _untyped = require('untyped');
|
|
7
|
+
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
8
|
+
..._chunkI734UVDTjs.base_executor_untyped_default,
|
|
9
|
+
$schema: {
|
|
10
|
+
id: "cargoBaseExecutor",
|
|
11
|
+
title: "Cargo Base Executor",
|
|
12
|
+
description: "A base type definition for a Cargo/rust related executor schema"
|
|
13
|
+
},
|
|
14
|
+
package: {
|
|
15
|
+
$schema: {
|
|
16
|
+
title: "Cargo.toml Path",
|
|
17
|
+
type: "string",
|
|
18
|
+
format: "path",
|
|
19
|
+
description: "The path to the Cargo.toml file"
|
|
20
|
+
},
|
|
21
|
+
$default: "{projectRoot}/Cargo.toml"
|
|
22
|
+
},
|
|
23
|
+
toolchain: {
|
|
24
|
+
$schema: {
|
|
25
|
+
title: "Toolchain",
|
|
26
|
+
description: "The type of toolchain to use for the build",
|
|
27
|
+
enum: [
|
|
28
|
+
"stable",
|
|
29
|
+
"beta",
|
|
30
|
+
"nightly"
|
|
31
|
+
],
|
|
32
|
+
default: "stable"
|
|
33
|
+
},
|
|
34
|
+
$default: "stable"
|
|
35
|
+
},
|
|
36
|
+
target: {
|
|
37
|
+
$schema: {
|
|
38
|
+
title: "Target",
|
|
39
|
+
type: "string",
|
|
40
|
+
description: "The target to build"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
allTargets: {
|
|
44
|
+
$schema: {
|
|
45
|
+
title: "All Targets",
|
|
46
|
+
type: "boolean",
|
|
47
|
+
description: "Build all targets"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
profile: {
|
|
51
|
+
$schema: {
|
|
52
|
+
title: "Profile",
|
|
53
|
+
type: "string",
|
|
54
|
+
description: "The profile to build"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
release: {
|
|
58
|
+
$schema: {
|
|
59
|
+
title: "Release",
|
|
60
|
+
type: "boolean",
|
|
61
|
+
description: "Build in release mode"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
features: {
|
|
65
|
+
$schema: {
|
|
66
|
+
title: "Features",
|
|
67
|
+
type: "string",
|
|
68
|
+
description: "The features to build",
|
|
69
|
+
oneOf: [
|
|
70
|
+
{
|
|
71
|
+
type: "string"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
type: "array",
|
|
75
|
+
items: {
|
|
76
|
+
type: "string"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
allFeatures: {
|
|
83
|
+
$schema: {
|
|
84
|
+
title: "All Features",
|
|
85
|
+
type: "boolean",
|
|
86
|
+
description: "Build all features"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
exports.cargo_base_executor_untyped_default = cargo_base_executor_untyped_default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
findWorkspaceRoot
|
|
3
|
+
} from "./chunk-DMUTOQCB.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__name
|
|
6
|
+
} from "./chunk-XUV4U54K.mjs";
|
|
7
|
+
|
|
8
|
+
// src/utils/get-project-configurations.ts
|
|
9
|
+
import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
|
|
10
|
+
var getProjectConfigurations = /* @__PURE__ */ __name(async () => {
|
|
11
|
+
return retrieveProjectConfigurationsWithoutPluginInference(findWorkspaceRoot());
|
|
12
|
+
}, "getProjectConfigurations");
|
|
13
|
+
var getProjectConfiguration = /* @__PURE__ */ __name((projectName) => getProjectConfigurations()?.[projectName], "getProjectConfiguration");
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
getProjectConfigurations,
|
|
17
|
+
getProjectConfiguration
|
|
18
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {
|
|
2
|
+
parseCargoToml
|
|
3
|
+
} from "./chunk-VYH45FO6.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__name
|
|
6
|
+
} from "./chunk-XUV4U54K.mjs";
|
|
7
|
+
|
|
8
|
+
// src/executors/cargo-publish/executor.ts
|
|
9
|
+
import { joinPathFragments } from "@nx/devkit";
|
|
10
|
+
import { execSync } from "node:child_process";
|
|
11
|
+
import { readFileSync } from "node:fs";
|
|
12
|
+
import https from "node:https";
|
|
13
|
+
var LARGE_BUFFER = 1024 * 1e6;
|
|
14
|
+
async function runExecutor(options, context) {
|
|
15
|
+
const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
|
|
16
|
+
if (!context.projectName) {
|
|
17
|
+
throw new Error("The executor requires a projectName.");
|
|
18
|
+
}
|
|
19
|
+
console.info(`\u{1F680} Running Storm Cargo Publish executor on the ${context.projectName} crate`);
|
|
20
|
+
if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) {
|
|
21
|
+
throw new Error("The executor requires projectsConfigurations.");
|
|
22
|
+
}
|
|
23
|
+
const registry = options.registry ? options.registry : process.env.STORM_REGISTRY_CARGO ? process.env.STORM_REGISTRY_CARGO : "https://crates.io";
|
|
24
|
+
const root = context.projectsConfigurations.projects[context.projectName]?.root;
|
|
25
|
+
const packageRoot = joinPathFragments(context.root, options.packageRoot ? options.packageRoot : root);
|
|
26
|
+
const cargoToml = parseCargoToml(readFileSync(joinPathFragments(packageRoot, "Cargo.toml"), "utf-8"));
|
|
27
|
+
try {
|
|
28
|
+
const result = await getRegistryVersion(cargoToml.package.name, cargoToml.package.version, registry);
|
|
29
|
+
if (result) {
|
|
30
|
+
console.warn(`Skipped package "${cargoToml.package.name}" from project "${context.projectName}" because v${cargoToml.package.version} already exists in ${registry} with tag "latest"`);
|
|
31
|
+
return {
|
|
32
|
+
success: true
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
} catch (_) {
|
|
36
|
+
}
|
|
37
|
+
const cargoPublishCommandSegments = [
|
|
38
|
+
`cargo publish --allow-dirty -p ${cargoToml.package.name}`
|
|
39
|
+
];
|
|
40
|
+
if (isDryRun) {
|
|
41
|
+
cargoPublishCommandSegments.push("--dry-run");
|
|
42
|
+
}
|
|
43
|
+
try {
|
|
44
|
+
const cargoPublishCommand = cargoPublishCommandSegments.join(" ");
|
|
45
|
+
console.log("");
|
|
46
|
+
console.log(`Running "${cargoPublishCommand}"...`);
|
|
47
|
+
console.log("");
|
|
48
|
+
execSync(cargoPublishCommand, {
|
|
49
|
+
maxBuffer: LARGE_BUFFER,
|
|
50
|
+
env: {
|
|
51
|
+
...process.env,
|
|
52
|
+
FORCE_COLOR: "true"
|
|
53
|
+
},
|
|
54
|
+
cwd: packageRoot,
|
|
55
|
+
stdio: [
|
|
56
|
+
"ignore",
|
|
57
|
+
"pipe",
|
|
58
|
+
"pipe"
|
|
59
|
+
]
|
|
60
|
+
});
|
|
61
|
+
console.log("");
|
|
62
|
+
if (isDryRun) {
|
|
63
|
+
console.log(`Would publish to ${registry}, but [dry-run] was set`);
|
|
64
|
+
} else {
|
|
65
|
+
console.log(`Published to ${registry}`);
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
success: true
|
|
69
|
+
};
|
|
70
|
+
} catch (error) {
|
|
71
|
+
console.error(`Failed to publish to ${registry}`);
|
|
72
|
+
console.error(error);
|
|
73
|
+
console.log("");
|
|
74
|
+
return {
|
|
75
|
+
success: false
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
__name(runExecutor, "runExecutor");
|
|
80
|
+
var getRegistryVersion = /* @__PURE__ */ __name((name, version, registry) => {
|
|
81
|
+
return new Promise((resolve) => https.get(`${registry}/api/v1/crates/${encodeURIComponent(name)}/${encodeURIComponent(version)}`, (res) => {
|
|
82
|
+
res.on("data", (d) => {
|
|
83
|
+
resolve(d);
|
|
84
|
+
});
|
|
85
|
+
}).on("error", (e) => {
|
|
86
|
+
throw e;
|
|
87
|
+
}));
|
|
88
|
+
}, "getRegistryVersion");
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
runExecutor,
|
|
92
|
+
getRegistryVersion
|
|
93
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk7YRW5HNXjs = require('./chunk-7YRW5HNX.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
11
|
+
|
|
12
|
+
// src/utils/package-helpers.ts
|
|
13
|
+
var _devkit = require('@nx/devkit');
|
|
14
|
+
var _fs = require('fs');
|
|
15
|
+
var PackageManagerTypes = {
|
|
16
|
+
PackageJson: "package.json",
|
|
17
|
+
CargoToml: "Cargo.toml"
|
|
18
|
+
};
|
|
19
|
+
var getPackageInfo = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (project) => {
|
|
20
|
+
if (_chunk7YRW5HNXjs.isEqualProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Language.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Language.RUST) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
|
|
21
|
+
return {
|
|
22
|
+
type: "Cargo.toml",
|
|
23
|
+
content: _chunkZMFVKBRMjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
|
|
24
|
+
};
|
|
25
|
+
} else if (_chunk7YRW5HNXjs.isEqualProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Language.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Language.TYPESCRIPT) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "package.json"))) {
|
|
26
|
+
return {
|
|
27
|
+
type: "package.json",
|
|
28
|
+
content: _devkit.readJsonFile.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "package.json"))
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}, "getPackageInfo");
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
exports.PackageManagerTypes = PackageManagerTypes; exports.getPackageInfo = getPackageInfo;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/base/base-generator.untyped.ts
|
|
2
|
+
var _untyped = require('untyped');
|
|
3
|
+
var base_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
4
|
+
$schema: {
|
|
5
|
+
id: "BaseGeneratorSchema",
|
|
6
|
+
title: "Base Generator",
|
|
7
|
+
description: "A type definition for the base Generator schema"
|
|
8
|
+
},
|
|
9
|
+
directory: {
|
|
10
|
+
$schema: {
|
|
11
|
+
title: "Directory",
|
|
12
|
+
type: "string",
|
|
13
|
+
description: "The directory to create the library in"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.base_generator_untyped_default = base_generator_untyped_default;
|