@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,384 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isVerbose,
|
|
3
|
+
loadStormConfig,
|
|
4
|
+
writeDebug,
|
|
5
|
+
writeTrace
|
|
6
|
+
} from "./chunk-WJ5TU6JU.mjs";
|
|
7
|
+
import {
|
|
8
|
+
findWorkspaceRoot
|
|
9
|
+
} from "./chunk-DMUTOQCB.mjs";
|
|
10
|
+
import {
|
|
11
|
+
correctPaths,
|
|
12
|
+
joinPaths
|
|
13
|
+
} from "./chunk-PVTEDLBL.mjs";
|
|
14
|
+
import {
|
|
15
|
+
__name
|
|
16
|
+
} from "./chunk-XUV4U54K.mjs";
|
|
17
|
+
|
|
18
|
+
// ../build-tools/src/config.ts
|
|
19
|
+
var DEFAULT_COMPILED_BANNER = `
|
|
20
|
+
/**
|
|
21
|
+
* \u26A1 Built by Storm Software
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
`;
|
|
25
|
+
var DEFAULT_ENVIRONMENT = "production";
|
|
26
|
+
var DEFAULT_TARGET = "esnext";
|
|
27
|
+
var DEFAULT_ORGANIZATION = "storm-software";
|
|
28
|
+
|
|
29
|
+
// ../build-tools/src/utilities/copy-assets.ts
|
|
30
|
+
import { hfs as hfs2 } from "@humanfs/node";
|
|
31
|
+
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph } from "@nx/devkit";
|
|
32
|
+
import { copyAssets as copyAssetsBase } from "@nx/js";
|
|
33
|
+
import { glob } from "glob";
|
|
34
|
+
|
|
35
|
+
// ../build-tools/src/utilities/read-nx-config.ts
|
|
36
|
+
import { hfs } from "@humanfs/node";
|
|
37
|
+
var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot) => {
|
|
38
|
+
let rootDir = workspaceRoot;
|
|
39
|
+
if (!rootDir) {
|
|
40
|
+
const config = await loadStormConfig();
|
|
41
|
+
rootDir = config.workspaceRoot;
|
|
42
|
+
}
|
|
43
|
+
const nxJsonPath = joinPaths(rootDir, "nx.json");
|
|
44
|
+
if (!await hfs.isFile(nxJsonPath)) {
|
|
45
|
+
throw new Error("Cannot find project.json configuration");
|
|
46
|
+
}
|
|
47
|
+
return hfs.json(nxJsonPath);
|
|
48
|
+
}, "readNxConfig");
|
|
49
|
+
|
|
50
|
+
// ../build-tools/src/utilities/copy-assets.ts
|
|
51
|
+
var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson = true, includeSrc = false, banner, footer) => {
|
|
52
|
+
const pendingAssets = Array.from(assets ?? []);
|
|
53
|
+
if (!pendingAssets?.some((asset) => asset?.glob === "*.md")) {
|
|
54
|
+
pendingAssets.push({
|
|
55
|
+
input: projectRoot,
|
|
56
|
+
glob: "*.md",
|
|
57
|
+
output: "/"
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
if (generatePackageJson === false) {
|
|
61
|
+
pendingAssets.push({
|
|
62
|
+
input: sourceRoot,
|
|
63
|
+
glob: "package.json",
|
|
64
|
+
output: "."
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
if (!pendingAssets?.some((asset) => asset?.glob === "LICENSE")) {
|
|
68
|
+
pendingAssets.push({
|
|
69
|
+
input: "",
|
|
70
|
+
glob: "LICENSE",
|
|
71
|
+
output: "."
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
if (includeSrc === true) {
|
|
75
|
+
pendingAssets.push({
|
|
76
|
+
input: sourceRoot,
|
|
77
|
+
glob: "**/{*.ts,*.tsx,*.js,*.jsx}",
|
|
78
|
+
output: "src/"
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
const nxJson = readNxConfig(config.workspaceRoot);
|
|
82
|
+
const projectGraph = await createProjectGraphAsync({
|
|
83
|
+
exitOnError: true
|
|
84
|
+
});
|
|
85
|
+
const projectsConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
86
|
+
if (!projectsConfigurations?.projects?.[projectName]) {
|
|
87
|
+
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.");
|
|
88
|
+
}
|
|
89
|
+
const buildTarget = projectsConfigurations.projects[projectName]?.targets?.build;
|
|
90
|
+
if (!buildTarget) {
|
|
91
|
+
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${joinPaths(projectRoot, "project.json")}`);
|
|
92
|
+
}
|
|
93
|
+
const result = await copyAssetsBase({
|
|
94
|
+
assets,
|
|
95
|
+
watch: false,
|
|
96
|
+
outputPath
|
|
97
|
+
}, {
|
|
98
|
+
root: config.workspaceRoot,
|
|
99
|
+
targetName: "build",
|
|
100
|
+
target: buildTarget,
|
|
101
|
+
projectName,
|
|
102
|
+
projectGraph,
|
|
103
|
+
projectsConfigurations,
|
|
104
|
+
nxJsonConfiguration: nxJson,
|
|
105
|
+
cwd: config.workspaceRoot,
|
|
106
|
+
isVerbose: isVerbose(config.logLevel)
|
|
107
|
+
});
|
|
108
|
+
if (!result.success) {
|
|
109
|
+
throw new Error("The Build process failed trying to copy assets");
|
|
110
|
+
}
|
|
111
|
+
if (includeSrc === true) {
|
|
112
|
+
writeDebug(`\u{1F4DD} Adding banner and writing source files: ${joinPaths(outputPath, "src")}`, config);
|
|
113
|
+
const files = await glob([
|
|
114
|
+
joinPaths(config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
115
|
+
joinPaths(config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
116
|
+
joinPaths(config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
117
|
+
joinPaths(config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
118
|
+
]);
|
|
119
|
+
await Promise.allSettled(files.map(async (file) => hfs2.write(file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
120
|
+
|
|
121
|
+
${await hfs2.text(file)}
|
|
122
|
+
|
|
123
|
+
${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`)));
|
|
124
|
+
}
|
|
125
|
+
}, "copyAssets");
|
|
126
|
+
|
|
127
|
+
// ../build-tools/src/utilities/generate-package-json.ts
|
|
128
|
+
import { hfs as hfs3 } from "@humanfs/node";
|
|
129
|
+
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
130
|
+
import { Glob } from "glob";
|
|
131
|
+
import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2 } from "nx/src/project-graph/project-graph";
|
|
132
|
+
var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projectRoot, projectName, packageJson) => {
|
|
133
|
+
const projectGraph = await createProjectGraphAsync2({
|
|
134
|
+
exitOnError: true
|
|
135
|
+
});
|
|
136
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
|
|
137
|
+
if (!projectConfigurations?.projects?.[projectName]) {
|
|
138
|
+
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.");
|
|
139
|
+
}
|
|
140
|
+
const projectJsonPath = joinPaths(workspaceRoot, projectRoot, "project.json");
|
|
141
|
+
if (!await hfs3.isFile(projectJsonPath)) {
|
|
142
|
+
throw new Error("Cannot find project.json configuration");
|
|
143
|
+
}
|
|
144
|
+
if (!projectConfigurations?.projects?.[projectName]) {
|
|
145
|
+
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.");
|
|
146
|
+
}
|
|
147
|
+
const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
148
|
+
const localPackages = [];
|
|
149
|
+
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
150
|
+
const projectNode = project.node;
|
|
151
|
+
if (projectNode.data.root) {
|
|
152
|
+
const projectPackageJsonPath = joinPaths(workspaceRoot, projectNode.data.root, "package.json");
|
|
153
|
+
if (await hfs3.isFile(projectPackageJsonPath)) {
|
|
154
|
+
const projectPackageJson = await hfs3.json(projectPackageJsonPath);
|
|
155
|
+
if (projectPackageJson.private !== false) {
|
|
156
|
+
localPackages.push(projectPackageJson);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (localPackages.length > 0) {
|
|
162
|
+
writeTrace(`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
163
|
+
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
164
|
+
if (!ret[localPackage.name]) {
|
|
165
|
+
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
166
|
+
}
|
|
167
|
+
return ret;
|
|
168
|
+
}, packageJson.peerDependencies ?? {});
|
|
169
|
+
packageJson.peerDependenciesMeta = localPackages.reduce((ret, localPackage) => {
|
|
170
|
+
if (!ret[localPackage.name]) {
|
|
171
|
+
ret[localPackage.name] = {
|
|
172
|
+
optional: false
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
return ret;
|
|
176
|
+
}, packageJson.peerDependenciesMeta ?? {});
|
|
177
|
+
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
178
|
+
if (!ret[localPackage.name]) {
|
|
179
|
+
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
180
|
+
}
|
|
181
|
+
return ret;
|
|
182
|
+
}, packageJson.peerDependencies ?? {});
|
|
183
|
+
} else {
|
|
184
|
+
writeTrace("\u{1F4E6} No local packages dependencies to add to package.json");
|
|
185
|
+
}
|
|
186
|
+
return packageJson;
|
|
187
|
+
}, "addPackageDependencies");
|
|
188
|
+
var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
189
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
|
|
190
|
+
const workspacePackageJson = await hfs3.json(joinPaths(workspaceRoot, "package.json"));
|
|
191
|
+
packageJson.type ??= "module";
|
|
192
|
+
packageJson.sideEffects ??= false;
|
|
193
|
+
if (includeSrc === true) {
|
|
194
|
+
let distSrc = sourceRoot.replace(projectRoot, "");
|
|
195
|
+
if (distSrc.startsWith("/")) {
|
|
196
|
+
distSrc = distSrc.substring(1);
|
|
197
|
+
}
|
|
198
|
+
packageJson.source ??= `${joinPaths(distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
199
|
+
}
|
|
200
|
+
packageJson.files ??= [
|
|
201
|
+
"dist/**/*"
|
|
202
|
+
];
|
|
203
|
+
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
204
|
+
packageJson.files.push("src/**/*");
|
|
205
|
+
}
|
|
206
|
+
packageJson.publishConfig ??= {
|
|
207
|
+
access: "public"
|
|
208
|
+
};
|
|
209
|
+
packageJson.description ??= workspacePackageJson.description;
|
|
210
|
+
packageJson.homepage ??= workspacePackageJson.homepage;
|
|
211
|
+
packageJson.bugs ??= workspacePackageJson.bugs;
|
|
212
|
+
packageJson.license ??= workspacePackageJson.license;
|
|
213
|
+
packageJson.keywords ??= workspacePackageJson.keywords;
|
|
214
|
+
packageJson.funding ??= workspacePackageJson.funding;
|
|
215
|
+
packageJson.author ??= workspacePackageJson.author;
|
|
216
|
+
packageJson.maintainers ??= workspacePackageJson.maintainers;
|
|
217
|
+
if (!packageJson.maintainers && packageJson.author) {
|
|
218
|
+
packageJson.maintainers = [
|
|
219
|
+
packageJson.author
|
|
220
|
+
];
|
|
221
|
+
}
|
|
222
|
+
packageJson.contributors ??= workspacePackageJson.contributors;
|
|
223
|
+
if (!packageJson.contributors && packageJson.author) {
|
|
224
|
+
packageJson.contributors = [
|
|
225
|
+
packageJson.author
|
|
226
|
+
];
|
|
227
|
+
}
|
|
228
|
+
packageJson.repository ??= workspacePackageJson.repository;
|
|
229
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : joinPaths("packages", projectName);
|
|
230
|
+
return packageJson;
|
|
231
|
+
}, "addWorkspacePackageJsonFields");
|
|
232
|
+
var addPackageJsonExport = /* @__PURE__ */ __name((file, type = "module", sourceRoot) => {
|
|
233
|
+
let entry = file.replaceAll("\\", "/");
|
|
234
|
+
if (sourceRoot) {
|
|
235
|
+
entry = entry.replace(sourceRoot, "");
|
|
236
|
+
}
|
|
237
|
+
return {
|
|
238
|
+
"import": {
|
|
239
|
+
"types": `./dist/${entry}.d.${type === "module" ? "ts" : "mts"}`,
|
|
240
|
+
"default": `./dist/${entry}.${type === "module" ? "js" : "mjs"}`
|
|
241
|
+
},
|
|
242
|
+
"require": {
|
|
243
|
+
"types": `./dist/${entry}.d.${type === "commonjs" ? "ts" : "cts"}`,
|
|
244
|
+
"default": `./dist/${entry}.${type === "commonjs" ? "js" : "cjs"}`
|
|
245
|
+
},
|
|
246
|
+
"default": {
|
|
247
|
+
"types": `./dist/${entry}.d.ts`,
|
|
248
|
+
"default": `./dist/${entry}.js`
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
}, "addPackageJsonExport");
|
|
252
|
+
var addPackageJsonExports = /* @__PURE__ */ __name(async (sourceRoot, packageJson) => {
|
|
253
|
+
packageJson.exports ??= {};
|
|
254
|
+
const files = await new Glob("**/*.{ts,tsx}", {
|
|
255
|
+
absolute: false,
|
|
256
|
+
cwd: sourceRoot,
|
|
257
|
+
root: sourceRoot
|
|
258
|
+
}).walk();
|
|
259
|
+
files.forEach((file) => {
|
|
260
|
+
addPackageJsonExport(file, packageJson.type, sourceRoot);
|
|
261
|
+
const split = file.split(".");
|
|
262
|
+
split.pop();
|
|
263
|
+
const entry = split.join(".").replaceAll("\\", "/");
|
|
264
|
+
packageJson.exports[`./${entry}`] ??= addPackageJsonExport(entry, packageJson.type, sourceRoot);
|
|
265
|
+
});
|
|
266
|
+
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
267
|
+
packageJson.module = packageJson.type === "module" ? "./dist/index.js" : "./dist/index.mjs";
|
|
268
|
+
packageJson.types = "./dist/index.d.ts";
|
|
269
|
+
packageJson.exports ??= {};
|
|
270
|
+
packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
|
|
271
|
+
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
272
|
+
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
273
|
+
}
|
|
274
|
+
return ret;
|
|
275
|
+
}, packageJson.exports);
|
|
276
|
+
packageJson.exports["./package.json"] ??= "./package.json";
|
|
277
|
+
packageJson.exports["."] = packageJson.exports["."] ?? addPackageJsonExport("index", packageJson.type, sourceRoot);
|
|
278
|
+
return packageJson;
|
|
279
|
+
}, "addPackageJsonExports");
|
|
280
|
+
|
|
281
|
+
// ../build-tools/src/utilities/get-entry-points.ts
|
|
282
|
+
import { glob as glob2 } from "glob";
|
|
283
|
+
var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
284
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
|
|
285
|
+
const entryPoints = [];
|
|
286
|
+
if (entry) {
|
|
287
|
+
if (Array.isArray(entry)) {
|
|
288
|
+
entryPoints.push(...entry);
|
|
289
|
+
} else if (typeof entry === "string") {
|
|
290
|
+
entryPoints.push(entry);
|
|
291
|
+
} else {
|
|
292
|
+
entryPoints.push(...Object.values(entry));
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
if (emitOnAll) {
|
|
296
|
+
entryPoints.push(joinPaths(workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
297
|
+
}
|
|
298
|
+
const results = [];
|
|
299
|
+
for (const entryPoint in entryPoints) {
|
|
300
|
+
if (entryPoint.includes("*")) {
|
|
301
|
+
const files = await glob2(entryPoint, {
|
|
302
|
+
withFileTypes: true
|
|
303
|
+
});
|
|
304
|
+
results.push(...files.reduce((ret, filePath) => {
|
|
305
|
+
const result = correctPaths(joinPaths(filePath.path, filePath.name).replaceAll(correctPaths(workspaceRoot), "").replaceAll(correctPaths(projectRoot), ""));
|
|
306
|
+
if (result) {
|
|
307
|
+
writeDebug(`Trying to add entry point ${result} at "${joinPaths(filePath.path, filePath.name)}"`, config);
|
|
308
|
+
if (!results.includes(result)) {
|
|
309
|
+
results.push(result);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return ret;
|
|
313
|
+
}, []));
|
|
314
|
+
} else {
|
|
315
|
+
results.push(entryPoint);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
return results;
|
|
319
|
+
}, "getEntryPoints");
|
|
320
|
+
|
|
321
|
+
// ../build-tools/src/utilities/get-env.ts
|
|
322
|
+
var getEnv = /* @__PURE__ */ __name((builder, options) => {
|
|
323
|
+
return {
|
|
324
|
+
STORM_BUILD: builder,
|
|
325
|
+
STORM_ORG: options.orgName || DEFAULT_ORGANIZATION,
|
|
326
|
+
STORM_NAME: options.name,
|
|
327
|
+
STORM_ENV: options.envName || DEFAULT_ENVIRONMENT,
|
|
328
|
+
STORM_PLATFORM: options.platform,
|
|
329
|
+
STORM_FORMAT: JSON.stringify(options.format),
|
|
330
|
+
STORM_TARGET: JSON.stringify(options.target),
|
|
331
|
+
...options.env
|
|
332
|
+
};
|
|
333
|
+
}, "getEnv");
|
|
334
|
+
|
|
335
|
+
// ../build-tools/src/plugins/swc.ts
|
|
336
|
+
import { transform } from "@swc/core";
|
|
337
|
+
|
|
338
|
+
// ../build-tools/src/plugins/ts-resolve.ts
|
|
339
|
+
import fs from "node:fs";
|
|
340
|
+
import { builtinModules } from "node:module";
|
|
341
|
+
import path from "node:path";
|
|
342
|
+
import _resolve from "resolve";
|
|
343
|
+
|
|
344
|
+
// ../build-tools/src/plugins/type-definitions.ts
|
|
345
|
+
import { stripIndents } from "@nx/devkit";
|
|
346
|
+
import { relative } from "path";
|
|
347
|
+
|
|
348
|
+
// ../build-tools/src/utilities/get-out-extension.ts
|
|
349
|
+
function getOutExtension(format, pkgType) {
|
|
350
|
+
let jsExtension = ".js";
|
|
351
|
+
let dtsExtension = ".d.ts";
|
|
352
|
+
if (pkgType === "module" && format === "cjs") {
|
|
353
|
+
jsExtension = ".cjs";
|
|
354
|
+
dtsExtension = ".d.cts";
|
|
355
|
+
}
|
|
356
|
+
if (pkgType !== "module" && format === "esm") {
|
|
357
|
+
jsExtension = ".mjs";
|
|
358
|
+
dtsExtension = ".d.mts";
|
|
359
|
+
}
|
|
360
|
+
if (format === "iife") {
|
|
361
|
+
jsExtension = ".global.js";
|
|
362
|
+
}
|
|
363
|
+
return {
|
|
364
|
+
js: jsExtension,
|
|
365
|
+
dts: dtsExtension
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
__name(getOutExtension, "getOutExtension");
|
|
369
|
+
|
|
370
|
+
// ../build-tools/src/utilities/task-graph.ts
|
|
371
|
+
import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
|
|
372
|
+
|
|
373
|
+
export {
|
|
374
|
+
DEFAULT_COMPILED_BANNER,
|
|
375
|
+
DEFAULT_TARGET,
|
|
376
|
+
copyAssets,
|
|
377
|
+
addPackageDependencies,
|
|
378
|
+
addWorkspacePackageJsonFields,
|
|
379
|
+
addPackageJsonExport,
|
|
380
|
+
addPackageJsonExports,
|
|
381
|
+
getEntryPoints,
|
|
382
|
+
getEnv,
|
|
383
|
+
getOutExtension
|
|
384
|
+
};
|
|
@@ -0,0 +1,190 @@
|
|
|
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
|
+
|
|
3
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
4
|
+
|
|
5
|
+
// src/utils/cargo.ts
|
|
6
|
+
var _devkit = require('@nx/devkit');
|
|
7
|
+
var _child_process = require('child_process');
|
|
8
|
+
var _path = require('path');
|
|
9
|
+
var INVALID_CARGO_ARGS = [
|
|
10
|
+
"allFeatures",
|
|
11
|
+
"allTargets",
|
|
12
|
+
"main",
|
|
13
|
+
"outputPath",
|
|
14
|
+
"package",
|
|
15
|
+
"tsConfig"
|
|
16
|
+
];
|
|
17
|
+
var childProcess;
|
|
18
|
+
var buildCargoCommand = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (baseCommand, options, context) => {
|
|
19
|
+
const args = [];
|
|
20
|
+
if (options.toolchain && options.toolchain !== "stable") {
|
|
21
|
+
args.push(`+${options.toolchain}`);
|
|
22
|
+
}
|
|
23
|
+
args.push(baseCommand);
|
|
24
|
+
for (const [key, value] of Object.entries(options)) {
|
|
25
|
+
if (key === "toolchain" || key === "release" || INVALID_CARGO_ARGS.includes(key)) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (typeof value === "boolean") {
|
|
29
|
+
if (value) {
|
|
30
|
+
args.push(`--${key}`);
|
|
31
|
+
}
|
|
32
|
+
} else if (Array.isArray(value)) {
|
|
33
|
+
for (const item of value) {
|
|
34
|
+
args.push(`--${key}`, item);
|
|
35
|
+
}
|
|
36
|
+
} else {
|
|
37
|
+
args.push(`--${key}`, String(value));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (context.projectName) {
|
|
41
|
+
args.push("-p", context.projectName);
|
|
42
|
+
}
|
|
43
|
+
if (options.allFeatures && !args.includes("--all-features")) {
|
|
44
|
+
args.push("--all-features");
|
|
45
|
+
}
|
|
46
|
+
if (options.allTargets && !args.includes("--all-targets")) {
|
|
47
|
+
args.push("--all-targets");
|
|
48
|
+
}
|
|
49
|
+
if (options.release && !args.includes("--profile")) {
|
|
50
|
+
args.push("--release");
|
|
51
|
+
}
|
|
52
|
+
if (options.outputPath && !args.includes("--target-dir")) {
|
|
53
|
+
args.push("--target-dir", options.outputPath);
|
|
54
|
+
}
|
|
55
|
+
return args;
|
|
56
|
+
}, "buildCargoCommand");
|
|
57
|
+
async function cargoCommand(...args) {
|
|
58
|
+
console.log(`> cargo ${args.join(" ")}`);
|
|
59
|
+
args.push("--color", "always");
|
|
60
|
+
return await Promise.resolve(runProcess("cargo", ...args));
|
|
61
|
+
}
|
|
62
|
+
_chunk3GQAWCBQjs.__name.call(void 0, cargoCommand, "cargoCommand");
|
|
63
|
+
function cargoRunCommand(...args) {
|
|
64
|
+
console.log(`> cargo ${args.join(" ")}`);
|
|
65
|
+
return new Promise((resolve, reject) => {
|
|
66
|
+
childProcess = exports.childProcess = _child_process.spawn.call(void 0, "cargo", [
|
|
67
|
+
...args,
|
|
68
|
+
"--color",
|
|
69
|
+
"always"
|
|
70
|
+
], {
|
|
71
|
+
cwd: process.cwd(),
|
|
72
|
+
windowsHide: true,
|
|
73
|
+
detached: true,
|
|
74
|
+
shell: false,
|
|
75
|
+
stdio: [
|
|
76
|
+
"inherit",
|
|
77
|
+
"inherit",
|
|
78
|
+
"inherit"
|
|
79
|
+
]
|
|
80
|
+
});
|
|
81
|
+
process.on("exit", () => _optionalChain([childProcess, 'optionalAccess', _ => _.kill, 'call', _2 => _2()]));
|
|
82
|
+
process.on("SIGTERM", () => _optionalChain([childProcess, 'optionalAccess', _3 => _3.kill, 'call', _4 => _4()]));
|
|
83
|
+
process.on("SIGINT", () => _optionalChain([childProcess, 'optionalAccess', _5 => _5.kill, 'call', _6 => _6()]));
|
|
84
|
+
childProcess.on("error", (_err) => {
|
|
85
|
+
reject({
|
|
86
|
+
success: false
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
childProcess.on("exit", (code) => {
|
|
90
|
+
childProcess = exports.childProcess = null;
|
|
91
|
+
if (code === 0) {
|
|
92
|
+
resolve({
|
|
93
|
+
success: true
|
|
94
|
+
});
|
|
95
|
+
} else {
|
|
96
|
+
reject({
|
|
97
|
+
success: false
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
_chunk3GQAWCBQjs.__name.call(void 0, cargoRunCommand, "cargoRunCommand");
|
|
104
|
+
function cargoCommandSync(args = "", options) {
|
|
105
|
+
const normalizedOptions = {
|
|
106
|
+
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _7 => _7.stdio]), () => ( "inherit")),
|
|
107
|
+
env: {
|
|
108
|
+
...process.env,
|
|
109
|
+
..._optionalChain([options, 'optionalAccess', _8 => _8.env])
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
try {
|
|
113
|
+
return {
|
|
114
|
+
output: _child_process.execSync.call(void 0, `cargo ${args}`, {
|
|
115
|
+
encoding: "utf8",
|
|
116
|
+
windowsHide: true,
|
|
117
|
+
stdio: normalizedOptions.stdio,
|
|
118
|
+
env: normalizedOptions.env,
|
|
119
|
+
maxBuffer: 1024 * 1024 * 10
|
|
120
|
+
}),
|
|
121
|
+
success: true
|
|
122
|
+
};
|
|
123
|
+
} catch (e) {
|
|
124
|
+
return {
|
|
125
|
+
output: e,
|
|
126
|
+
success: false
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
_chunk3GQAWCBQjs.__name.call(void 0, cargoCommandSync, "cargoCommandSync");
|
|
131
|
+
function cargoMetadata() {
|
|
132
|
+
const output = cargoCommandSync("metadata --format-version=1", {
|
|
133
|
+
stdio: "pipe"
|
|
134
|
+
});
|
|
135
|
+
if (!output.success) {
|
|
136
|
+
console.error("Failed to get cargo metadata");
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
return JSON.parse(output.output);
|
|
140
|
+
}
|
|
141
|
+
_chunk3GQAWCBQjs.__name.call(void 0, cargoMetadata, "cargoMetadata");
|
|
142
|
+
function isExternal(packageOrDep, workspaceRoot2) {
|
|
143
|
+
const isRegistry = _nullishCoalesce(_optionalChain([packageOrDep, 'access', _9 => _9.source, 'optionalAccess', _10 => _10.startsWith, 'call', _11 => _11("registry+")]), () => ( false));
|
|
144
|
+
const isGit = _nullishCoalesce(_optionalChain([packageOrDep, 'access', _12 => _12.source, 'optionalAccess', _13 => _13.startsWith, 'call', _14 => _14("git+")]), () => ( false));
|
|
145
|
+
const isOutsideWorkspace = "path" in packageOrDep && _path.relative.call(void 0, workspaceRoot2, packageOrDep.path).startsWith("..");
|
|
146
|
+
return isRegistry || isGit || isOutsideWorkspace;
|
|
147
|
+
}
|
|
148
|
+
_chunk3GQAWCBQjs.__name.call(void 0, isExternal, "isExternal");
|
|
149
|
+
function runProcess(processCmd, ...args) {
|
|
150
|
+
const metadata = cargoMetadata();
|
|
151
|
+
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _15 => _15.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist", "cargo")));
|
|
152
|
+
return new Promise((resolve) => {
|
|
153
|
+
if (process.env.VERCEL) {
|
|
154
|
+
return resolve({
|
|
155
|
+
success: true
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
_child_process.execSync.call(void 0, `${processCmd} ${args.join(" ")}`, {
|
|
159
|
+
cwd: process.cwd(),
|
|
160
|
+
env: {
|
|
161
|
+
...process.env,
|
|
162
|
+
RUSTC_WRAPPER: "",
|
|
163
|
+
CARGO_TARGET_DIR: targetDir,
|
|
164
|
+
CARGO_BUILD_TARGET_DIR: targetDir
|
|
165
|
+
},
|
|
166
|
+
windowsHide: true,
|
|
167
|
+
stdio: [
|
|
168
|
+
"inherit",
|
|
169
|
+
"inherit",
|
|
170
|
+
"inherit"
|
|
171
|
+
]
|
|
172
|
+
});
|
|
173
|
+
resolve({
|
|
174
|
+
success: true
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
_chunk3GQAWCBQjs.__name.call(void 0, runProcess, "runProcess");
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
exports.INVALID_CARGO_ARGS = INVALID_CARGO_ARGS; exports.childProcess = childProcess; exports.buildCargoCommand = buildCargoCommand; exports.cargoCommand = cargoCommand; exports.cargoRunCommand = cargoRunCommand; exports.cargoCommandSync = cargoCommandSync; exports.cargoMetadata = cargoMetadata; exports.isExternal = isExternal; exports.runProcess = runProcess;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name
|
|
3
|
+
} from "./chunk-XUV4U54K.mjs";
|
|
4
|
+
|
|
5
|
+
// src/utils/create-cli-options.ts
|
|
6
|
+
import { names } from "@nx/devkit";
|
|
7
|
+
function createCliOptions(obj) {
|
|
8
|
+
const args = [];
|
|
9
|
+
for (const key in obj) {
|
|
10
|
+
const value = obj[key];
|
|
11
|
+
if (value) {
|
|
12
|
+
const arg = names(key).fileName;
|
|
13
|
+
if (Array.isArray(value)) {
|
|
14
|
+
args.push(`--${arg.toLowerCase()}=${value.map((v) => v.trim()).join(",")}`);
|
|
15
|
+
} else {
|
|
16
|
+
args.push(`--${arg.toLowerCase()}=${value}`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return args;
|
|
21
|
+
}
|
|
22
|
+
__name(createCliOptions, "createCliOptions");
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
createCliOptions
|
|
26
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name
|
|
3
|
+
} from "./chunk-XUV4U54K.mjs";
|
|
4
|
+
|
|
5
|
+
// src/utils/toml.ts
|
|
6
|
+
import TOML from "@ltd/j-toml";
|
|
7
|
+
import { logger } from "@nx/devkit";
|
|
8
|
+
function parseCargoTomlWithTree(tree, projectRoot, projectName) {
|
|
9
|
+
const cargoTomlString = tree.read(`${projectRoot}/Cargo.toml`)?.toString();
|
|
10
|
+
if (!cargoTomlString) {
|
|
11
|
+
logger.error(`Cannot find a Cargo.toml file in the ${projectName}`);
|
|
12
|
+
throw new Error();
|
|
13
|
+
}
|
|
14
|
+
return parseCargoToml(cargoTomlString);
|
|
15
|
+
}
|
|
16
|
+
__name(parseCargoTomlWithTree, "parseCargoTomlWithTree");
|
|
17
|
+
function parseCargoToml(cargoString) {
|
|
18
|
+
if (!cargoString) {
|
|
19
|
+
throw new Error("Cargo.toml is empty");
|
|
20
|
+
}
|
|
21
|
+
return TOML.parse(cargoString, {
|
|
22
|
+
x: {
|
|
23
|
+
comment: true
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
__name(parseCargoToml, "parseCargoToml");
|
|
28
|
+
function stringifyCargoToml(cargoToml) {
|
|
29
|
+
const tomlString = TOML.stringify(cargoToml, {
|
|
30
|
+
newlineAround: "section"
|
|
31
|
+
});
|
|
32
|
+
if (Array.isArray(tomlString)) {
|
|
33
|
+
return tomlString.join("\n");
|
|
34
|
+
}
|
|
35
|
+
return tomlString;
|
|
36
|
+
}
|
|
37
|
+
__name(stringifyCargoToml, "stringifyCargoToml");
|
|
38
|
+
function modifyCargoTable(toml, section, key, value) {
|
|
39
|
+
toml[section] ??= TOML.Section({});
|
|
40
|
+
toml[section][key] = typeof value === "object" && !Array.isArray(value) ? TOML.inline(value) : typeof value === "function" ? value() : value;
|
|
41
|
+
}
|
|
42
|
+
__name(modifyCargoTable, "modifyCargoTable");
|
|
43
|
+
function modifyCargoNestedTable(toml, section, key, value) {
|
|
44
|
+
toml[section] ??= {};
|
|
45
|
+
toml[section][key] = TOML.Section(value);
|
|
46
|
+
}
|
|
47
|
+
__name(modifyCargoNestedTable, "modifyCargoNestedTable");
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
parseCargoTomlWithTree,
|
|
51
|
+
parseCargoToml,
|
|
52
|
+
stringifyCargoToml,
|
|
53
|
+
modifyCargoTable,
|
|
54
|
+
modifyCargoNestedTable
|
|
55
|
+
};
|