@storm-software/workspace-tools 1.228.0 → 1.229.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +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-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-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-BOj8XBVt.d.mts +322 -0
- package/dist/generator-C392qNd1.d.ts +322 -0
- package/dist/generator-CNiN6sul.d.mts +322 -0
- package/dist/generator-CgdrKFcO.d.mts +108 -0
- package/dist/generator-CtMFNmXP.d.ts +108 -0
- package/dist/generator-DX0frURz.d.ts +322 -0
- package/dist/generator-Dc6RWp26.d.ts +322 -0
- package/dist/generator-DeNfAL1R.d.ts +184 -0
- package/dist/generator-DmJcSdfk.d.mts +38 -0
- package/dist/generator-VyYYXMy4.d.mts +322 -0
- package/dist/generator-WuasfjoA.d.ts +38 -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 +367 -0
- package/dist/index.d.ts +367 -0
- package/dist/index.js +259 -0
- package/dist/index.mjs +259 -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 +7 -15
- 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.d.ts +17 -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 +7 -12
- 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.d.ts +14 -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.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/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.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 +4 -0
- package/dist/src/types.d.ts +4 -0
- package/dist/src/types.js +17 -0
- package/dist/src/types.mjs +17 -0
- 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-CMFSY9ut.d.mts +101 -0
- package/dist/types-D9vU63tt.d.mts +1185 -0
- package/dist/types-D9vU63tt.d.ts +1185 -0
- package/dist/types-Dbr7XMO3.d.ts +101 -0
- package/docs/api/base/base-executor.schema.md +16 -0
- package/docs/api/base/base-generator.schema.md +15 -0
- package/docs/api/base/cargo-base-executor.schema.md +90 -0
- package/docs/api/base/typescript-build-executor.schema.md +130 -0
- package/docs/api/base/typescript-library-generator.schema.md +297 -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
- /package/{docs/api/base/base-executor.md → dist/src/base/base-executor.schema.md} +0 -0
- /package/{docs/api/base/base-generator.md → dist/src/base/base-generator.schema.md} +0 -0
- /package/dist/src/base/{cargo-base-executor.d.ts → cargo-base-executor.schema.d.ts} +0 -0
- /package/{docs/api/base/cargo-base-executor.md → dist/src/base/cargo-base-executor.schema.md} +0 -0
- /package/dist/src/base/{typescript-build-executor.d.ts → typescript-build-executor.schema.d.ts} +0 -0
- /package/{docs/api/base/typescript-build-executor.md → dist/src/base/typescript-build-executor.schema.md} +0 -0
- /package/dist/src/base/{typescript-library-generator.d.ts → typescript-library-generator.schema.d.ts} +0 -0
- /package/{docs/api/base/typescript-library-generator.md → dist/src/base/typescript-library-generator.schema.md} +0 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ProjectTagConstants,
|
|
3
|
+
addProjectTag
|
|
4
|
+
} from "./chunk-66TYTM73.mjs";
|
|
5
|
+
import {
|
|
6
|
+
nxVersion
|
|
7
|
+
} from "./chunk-EK75QNMS.mjs";
|
|
8
|
+
import {
|
|
9
|
+
joinPaths
|
|
10
|
+
} from "./chunk-PVTEDLBL.mjs";
|
|
11
|
+
import {
|
|
12
|
+
__name
|
|
13
|
+
} from "./chunk-XUV4U54K.mjs";
|
|
14
|
+
|
|
15
|
+
// src/base/typescript-library-generator.ts
|
|
16
|
+
import { addDependenciesToPackageJson, addProjectConfiguration, ensurePackage, formatFiles, names, offsetFromRoot, readJson, updateJson, writeJson } from "@nx/devkit";
|
|
17
|
+
import { determineProjectNameAndRootOptions } from "@nx/devkit/src/generators/project-name-and-root-utils";
|
|
18
|
+
import { addTsConfigPath, getRelativePathToRootTsConfig, tsConfigBaseOptions } from "@nx/js";
|
|
19
|
+
import jsInitGenerator from "@nx/js/src/generators/init/init";
|
|
20
|
+
import setupVerdaccio from "@nx/js/src/generators/setup-verdaccio/generator";
|
|
21
|
+
async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
22
|
+
const options = await normalizeOptions(tree, {
|
|
23
|
+
...schema
|
|
24
|
+
});
|
|
25
|
+
const tasks = [];
|
|
26
|
+
tasks.push(await jsInitGenerator(tree, {
|
|
27
|
+
...options,
|
|
28
|
+
tsConfigName: options.rootProject ? "tsconfig.json" : "tsconfig.base.json"
|
|
29
|
+
}));
|
|
30
|
+
tasks.push(addDependenciesToPackageJson(tree, {}, {
|
|
31
|
+
"@storm-software/workspace-tools": "latest",
|
|
32
|
+
"@storm-software/testing-tools": "latest",
|
|
33
|
+
...schema.devDependencies ?? {}
|
|
34
|
+
}));
|
|
35
|
+
if (options.publishable) {
|
|
36
|
+
tasks.push(await setupVerdaccio(tree, {
|
|
37
|
+
...options,
|
|
38
|
+
skipFormat: true
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
const projectConfig = {
|
|
42
|
+
root: options.directory,
|
|
43
|
+
projectType: "library",
|
|
44
|
+
sourceRoot: joinPaths(options.directory ?? "", "src"),
|
|
45
|
+
targets: {
|
|
46
|
+
build: {
|
|
47
|
+
executor: schema.buildExecutor,
|
|
48
|
+
outputs: [
|
|
49
|
+
"{options.outputPath}"
|
|
50
|
+
],
|
|
51
|
+
options: {
|
|
52
|
+
entry: [
|
|
53
|
+
joinPaths(options.projectRoot, "src", "index.ts")
|
|
54
|
+
],
|
|
55
|
+
outputPath: getOutputPath(options),
|
|
56
|
+
tsconfig: joinPaths(options.projectRoot, "tsconfig.json"),
|
|
57
|
+
project: joinPaths(options.projectRoot, "package.json"),
|
|
58
|
+
defaultConfiguration: "production",
|
|
59
|
+
platform: "neutral",
|
|
60
|
+
assets: [
|
|
61
|
+
{
|
|
62
|
+
input: options.projectRoot,
|
|
63
|
+
glob: "*.md",
|
|
64
|
+
output: "/"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
input: "",
|
|
68
|
+
glob: "LICENSE",
|
|
69
|
+
output: "/"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
configurations: {
|
|
74
|
+
production: {
|
|
75
|
+
debug: false,
|
|
76
|
+
verbose: false
|
|
77
|
+
},
|
|
78
|
+
development: {
|
|
79
|
+
debug: true,
|
|
80
|
+
verbose: true
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
if (schema.platform) {
|
|
87
|
+
projectConfig.targets.build.options.platform = schema.platform === "worker" ? "node" : schema.platform;
|
|
88
|
+
}
|
|
89
|
+
addProjectTag(projectConfig, ProjectTagConstants.Platform.TAG_ID, schema.platform === "node" ? ProjectTagConstants.Platform.NODE : schema.platform === "worker" ? ProjectTagConstants.Platform.WORKER : schema.platform === "browser" ? ProjectTagConstants.Platform.BROWSER : ProjectTagConstants.Platform.NEUTRAL, {
|
|
90
|
+
overwrite: false
|
|
91
|
+
});
|
|
92
|
+
createProjectTsConfigJson(tree, options);
|
|
93
|
+
addProjectConfiguration(tree, options.name, projectConfig);
|
|
94
|
+
let repository = {
|
|
95
|
+
type: "github",
|
|
96
|
+
url: config?.repository || `https://github.com/${config?.organization || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
97
|
+
};
|
|
98
|
+
let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
99
|
+
if (tree.exists("package.json")) {
|
|
100
|
+
const packageJson = readJson(tree, "package.json");
|
|
101
|
+
if (packageJson?.repository) {
|
|
102
|
+
repository = packageJson.repository;
|
|
103
|
+
}
|
|
104
|
+
if (packageJson?.description) {
|
|
105
|
+
description = packageJson.description;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
if (!options.importPath) {
|
|
109
|
+
options.importPath = options.name;
|
|
110
|
+
}
|
|
111
|
+
const packageJsonPath = joinPaths(options.projectRoot, "package.json");
|
|
112
|
+
if (tree.exists(packageJsonPath)) {
|
|
113
|
+
updateJson(tree, packageJsonPath, (json) => {
|
|
114
|
+
if (!options.importPath) {
|
|
115
|
+
options.importPath = options.name;
|
|
116
|
+
}
|
|
117
|
+
json.name = options.importPath;
|
|
118
|
+
json.version = "0.0.1";
|
|
119
|
+
if (json.private && (options.publishable || options.rootProject)) {
|
|
120
|
+
json.private = void 0;
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
...json,
|
|
124
|
+
version: "0.0.1",
|
|
125
|
+
description,
|
|
126
|
+
repository: {
|
|
127
|
+
...repository,
|
|
128
|
+
directory: options.projectRoot
|
|
129
|
+
},
|
|
130
|
+
type: "module",
|
|
131
|
+
dependencies: {
|
|
132
|
+
...json.dependencies
|
|
133
|
+
},
|
|
134
|
+
publishConfig: {
|
|
135
|
+
access: "public"
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
});
|
|
139
|
+
} else {
|
|
140
|
+
writeJson(tree, packageJsonPath, {
|
|
141
|
+
name: options.importPath,
|
|
142
|
+
version: "0.0.1",
|
|
143
|
+
description,
|
|
144
|
+
repository: {
|
|
145
|
+
...repository,
|
|
146
|
+
directory: options.projectRoot
|
|
147
|
+
},
|
|
148
|
+
private: !options.publishable || options.rootProject,
|
|
149
|
+
type: "module",
|
|
150
|
+
publishConfig: {
|
|
151
|
+
access: "public"
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
if (tree.exists("package.json") && options.importPath) {
|
|
156
|
+
updateJson(tree, "package.json", (json) => ({
|
|
157
|
+
...json,
|
|
158
|
+
pnpm: {
|
|
159
|
+
...json?.pnpm,
|
|
160
|
+
overrides: {
|
|
161
|
+
...json?.pnpm?.overrides,
|
|
162
|
+
[options.importPath ?? ""]: "workspace:*"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}));
|
|
166
|
+
}
|
|
167
|
+
addTsConfigPath(tree, options.importPath, [
|
|
168
|
+
joinPaths(options.projectRoot, "./src", `index.${options.js ? "js" : "ts"}`)
|
|
169
|
+
]);
|
|
170
|
+
addTsConfigPath(tree, joinPaths(options.importPath, "/*"), [
|
|
171
|
+
joinPaths(options.projectRoot, "./src", "/*")
|
|
172
|
+
]);
|
|
173
|
+
if (tree.exists("package.json")) {
|
|
174
|
+
const packageJson = readJson(tree, "package.json");
|
|
175
|
+
if (packageJson?.repository) {
|
|
176
|
+
repository = packageJson.repository;
|
|
177
|
+
}
|
|
178
|
+
if (packageJson?.description) {
|
|
179
|
+
description = packageJson.description;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
const tsconfigPath = joinPaths(options.projectRoot, "tsconfig.json");
|
|
183
|
+
if (tree.exists(tsconfigPath)) {
|
|
184
|
+
updateJson(tree, tsconfigPath, (json) => {
|
|
185
|
+
json.composite ??= true;
|
|
186
|
+
return json;
|
|
187
|
+
});
|
|
188
|
+
} else {
|
|
189
|
+
writeJson(tree, tsconfigPath, {
|
|
190
|
+
extends: `${offsetFromRoot(options.projectRoot)}tsconfig.base.json`,
|
|
191
|
+
composite: true,
|
|
192
|
+
compilerOptions: {
|
|
193
|
+
outDir: `${offsetFromRoot(options.projectRoot)}dist/out-tsc`
|
|
194
|
+
},
|
|
195
|
+
files: [],
|
|
196
|
+
include: [
|
|
197
|
+
"src/**/*.ts",
|
|
198
|
+
"src/**/*.js"
|
|
199
|
+
],
|
|
200
|
+
exclude: [
|
|
201
|
+
"jest.config.ts",
|
|
202
|
+
"src/**/*.spec.ts",
|
|
203
|
+
"src/**/*.test.ts"
|
|
204
|
+
]
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
await formatFiles(tree);
|
|
208
|
+
return null;
|
|
209
|
+
}
|
|
210
|
+
__name(typeScriptLibraryGeneratorFn, "typeScriptLibraryGeneratorFn");
|
|
211
|
+
function getOutputPath(options) {
|
|
212
|
+
const parts = [
|
|
213
|
+
"dist"
|
|
214
|
+
];
|
|
215
|
+
if (options.projectRoot === ".") {
|
|
216
|
+
parts.push(options.name);
|
|
217
|
+
} else {
|
|
218
|
+
parts.push(options.projectRoot);
|
|
219
|
+
}
|
|
220
|
+
return joinPaths(...parts);
|
|
221
|
+
}
|
|
222
|
+
__name(getOutputPath, "getOutputPath");
|
|
223
|
+
function createProjectTsConfigJson(tree, options) {
|
|
224
|
+
const tsconfig = {
|
|
225
|
+
extends: options.rootProject ? void 0 : getRelativePathToRootTsConfig(tree, options.projectRoot),
|
|
226
|
+
...options?.tsconfigOptions ?? {},
|
|
227
|
+
compilerOptions: {
|
|
228
|
+
...options.rootProject ? tsConfigBaseOptions : {},
|
|
229
|
+
outDir: joinPaths(offsetFromRoot(options.projectRoot), "dist/out-tsc"),
|
|
230
|
+
noEmit: true,
|
|
231
|
+
...options?.tsconfigOptions?.compilerOptions ?? {}
|
|
232
|
+
},
|
|
233
|
+
files: [
|
|
234
|
+
...options?.tsconfigOptions?.files ?? []
|
|
235
|
+
],
|
|
236
|
+
include: [
|
|
237
|
+
...options?.tsconfigOptions?.include ?? [],
|
|
238
|
+
"src/**/*.ts",
|
|
239
|
+
"src/**/*.js",
|
|
240
|
+
"bin/**/*"
|
|
241
|
+
],
|
|
242
|
+
exclude: [
|
|
243
|
+
...options?.tsconfigOptions?.exclude ?? [],
|
|
244
|
+
"jest.config.ts",
|
|
245
|
+
"src/**/*.spec.ts",
|
|
246
|
+
"src/**/*.test.ts"
|
|
247
|
+
]
|
|
248
|
+
};
|
|
249
|
+
writeJson(tree, joinPaths(options.projectRoot, "tsconfig.json"), tsconfig);
|
|
250
|
+
}
|
|
251
|
+
__name(createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
252
|
+
async function normalizeOptions(tree, options) {
|
|
253
|
+
if (options.publishable) {
|
|
254
|
+
if (!options.importPath) {
|
|
255
|
+
throw new Error(`For publishable libs you have to provide a proper "--importPath" which needs to be a valid npm package name (e.g. my-awesome-lib or @myorg/my-lib)`);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
let bundler = "tsc";
|
|
259
|
+
if (options.publishable === false && options.buildable === false) {
|
|
260
|
+
bundler = "none";
|
|
261
|
+
}
|
|
262
|
+
const { Linter } = ensurePackage("@nx/eslint", nxVersion);
|
|
263
|
+
const { projectName, names: projectNames, projectRoot, importPath } = await determineProjectNameAndRootOptions(tree, {
|
|
264
|
+
name: options.name,
|
|
265
|
+
projectType: "library",
|
|
266
|
+
directory: options.directory,
|
|
267
|
+
importPath: options.importPath,
|
|
268
|
+
rootProject: options.rootProject
|
|
269
|
+
});
|
|
270
|
+
options.rootProject = projectRoot === ".";
|
|
271
|
+
const normalized = names(projectNames.projectFileName);
|
|
272
|
+
const fileName = normalized.fileName;
|
|
273
|
+
return {
|
|
274
|
+
js: false,
|
|
275
|
+
pascalCaseFiles: false,
|
|
276
|
+
skipFormat: false,
|
|
277
|
+
skipTsConfig: false,
|
|
278
|
+
includeBabelRc: false,
|
|
279
|
+
unitTestRunner: "jest",
|
|
280
|
+
linter: Linter.EsLint,
|
|
281
|
+
testEnvironment: "node",
|
|
282
|
+
config: "project",
|
|
283
|
+
compiler: "tsc",
|
|
284
|
+
bundler,
|
|
285
|
+
skipTypeCheck: false,
|
|
286
|
+
minimal: false,
|
|
287
|
+
hasPlugin: false,
|
|
288
|
+
isUsingTsSolutionConfig: false,
|
|
289
|
+
projectPackageManagerWorkspaceState: "included",
|
|
290
|
+
...options,
|
|
291
|
+
fileName,
|
|
292
|
+
name: projectName,
|
|
293
|
+
projectNames,
|
|
294
|
+
projectRoot,
|
|
295
|
+
parsedTags: options.tags ? options.tags.split(",").map((s) => s.trim()) : [],
|
|
296
|
+
importPath
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
__name(normalizeOptions, "normalizeOptions");
|
|
300
|
+
|
|
301
|
+
export {
|
|
302
|
+
typeScriptLibraryGeneratorFn,
|
|
303
|
+
getOutputPath,
|
|
304
|
+
createProjectTsConfigJson,
|
|
305
|
+
normalizeOptions
|
|
306
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
+
}) : x)(function(x) {
|
|
6
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/esm_shims.js
|
|
11
|
+
import { fileURLToPath } from "url";
|
|
12
|
+
import path from "path";
|
|
13
|
+
var getFilename = /* @__PURE__ */ __name(() => fileURLToPath(import.meta.url), "getFilename");
|
|
14
|
+
var getDirname = /* @__PURE__ */ __name(() => path.dirname(getFilename()), "getDirname");
|
|
15
|
+
var __dirname = /* @__PURE__ */ getDirname();
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
__name,
|
|
19
|
+
__require,
|
|
20
|
+
__dirname
|
|
21
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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-format/executor.ts
|
|
13
|
+
async function cargoFormatExecutor(options, context) {
|
|
14
|
+
const command = _chunkULBTYC2Bjs.buildCargoCommand.call(void 0, "fmt", options, context);
|
|
15
|
+
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
|
+
}
|
|
17
|
+
_chunk3GQAWCBQjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
18
|
+
var executor_default = _chunkMSENNRAYjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
|
|
19
|
+
skipReadingConfig: false,
|
|
20
|
+
hooks: {
|
|
21
|
+
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
22
|
+
options.outputPath ??= "dist/target/{projectRoot}";
|
|
23
|
+
options.toolchain ??= "stable";
|
|
24
|
+
return options;
|
|
25
|
+
}, "applyDefaultOptions")
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.cargoFormatExecutor = cargoFormatExecutor; exports.executor_default = executor_default;
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk7CJRMBX3js = require('./chunk-7CJRMBX3.js');
|
|
4
|
+
|
|
5
|
+
// src/base/typescript-library-generator.untyped.ts
|
|
6
|
+
var _untyped = require('untyped');
|
|
7
|
+
var typescript_library_generator_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
8
|
+
..._chunk7CJRMBX3js.base_generator_untyped_default,
|
|
9
|
+
$schema: {
|
|
10
|
+
id: "TypeScriptLibraryGeneratorSchema",
|
|
11
|
+
title: "TypeScript Library Generator",
|
|
12
|
+
description: "A type definition for the base TypeScript Library Generator schema",
|
|
13
|
+
required: [
|
|
14
|
+
"directory",
|
|
15
|
+
"name"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
name: {
|
|
19
|
+
$schema: {
|
|
20
|
+
title: "Name",
|
|
21
|
+
type: "string",
|
|
22
|
+
description: "The name of the library"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
description: {
|
|
26
|
+
$schema: {
|
|
27
|
+
title: "Description",
|
|
28
|
+
type: "string",
|
|
29
|
+
description: "The description of the library"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
buildExecutor: {
|
|
33
|
+
$schema: {
|
|
34
|
+
title: "Build Executor",
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "The executor to use for building the library"
|
|
37
|
+
},
|
|
38
|
+
$default: "@storm-software/workspace-tools:unbuild"
|
|
39
|
+
},
|
|
40
|
+
platform: {
|
|
41
|
+
$schema: {
|
|
42
|
+
title: "Platform",
|
|
43
|
+
type: "string",
|
|
44
|
+
description: "The platform to target with the library",
|
|
45
|
+
enum: [
|
|
46
|
+
"neutral",
|
|
47
|
+
"node",
|
|
48
|
+
"browser"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
$default: "neutral"
|
|
52
|
+
},
|
|
53
|
+
devDependencies: {
|
|
54
|
+
$schema: {
|
|
55
|
+
title: "Dev Dependencies",
|
|
56
|
+
type: "object",
|
|
57
|
+
description: "The dev dependencies to install"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
dependencies: {
|
|
61
|
+
$schema: {
|
|
62
|
+
title: "Dependencies",
|
|
63
|
+
type: "object",
|
|
64
|
+
description: "The dependencies to install"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
peerDependencies: {
|
|
68
|
+
$schema: {
|
|
69
|
+
title: "Peer Dependencies",
|
|
70
|
+
type: "object",
|
|
71
|
+
description: "The peer dependencies to install"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
peerDependenciesMeta: {
|
|
75
|
+
$schema: {
|
|
76
|
+
title: "Peer Dependencies Meta",
|
|
77
|
+
type: "object",
|
|
78
|
+
description: "The peer dependencies meta"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
tags: {
|
|
82
|
+
$schema: {
|
|
83
|
+
title: "Tags",
|
|
84
|
+
type: "string",
|
|
85
|
+
description: "The tags for the library"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
tsconfigOptions: {
|
|
89
|
+
$schema: {
|
|
90
|
+
title: "TypeScript Config (tsconfig.json) Options",
|
|
91
|
+
type: "object",
|
|
92
|
+
description: "The TypeScript configuration options"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
skipFormat: {
|
|
96
|
+
$schema: {
|
|
97
|
+
title: "Skip Format",
|
|
98
|
+
type: "boolean",
|
|
99
|
+
description: "Skip formatting"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
skipTsConfig: {
|
|
103
|
+
$schema: {
|
|
104
|
+
title: "Skip TsConfig",
|
|
105
|
+
type: "boolean",
|
|
106
|
+
description: "Skip TypeScript configuration"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
skipPackageJson: {
|
|
110
|
+
$schema: {
|
|
111
|
+
title: "Skip Package Json",
|
|
112
|
+
type: "boolean",
|
|
113
|
+
description: "Skip package.json"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
includeBabelRc: {
|
|
117
|
+
$schema: {
|
|
118
|
+
title: "Include Babel Rc",
|
|
119
|
+
type: "boolean",
|
|
120
|
+
description: "Include Babel configuration"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
unitTestRunner: {
|
|
124
|
+
$schema: {
|
|
125
|
+
title: "Unit Test Runner",
|
|
126
|
+
type: "string",
|
|
127
|
+
enum: [
|
|
128
|
+
"jest",
|
|
129
|
+
"vitest",
|
|
130
|
+
"none"
|
|
131
|
+
],
|
|
132
|
+
description: "The unit test runner to use"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
linter: {
|
|
136
|
+
$schema: {
|
|
137
|
+
title: "Linter",
|
|
138
|
+
type: "string",
|
|
139
|
+
description: "The linter to use"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
testEnvironment: {
|
|
143
|
+
$schema: {
|
|
144
|
+
title: "Test Environment",
|
|
145
|
+
type: "string",
|
|
146
|
+
enum: [
|
|
147
|
+
"jsdom",
|
|
148
|
+
"node"
|
|
149
|
+
],
|
|
150
|
+
description: "The test environment to use"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
importPath: {
|
|
154
|
+
$schema: {
|
|
155
|
+
title: "Import Path",
|
|
156
|
+
type: "string",
|
|
157
|
+
description: "The import path for the library"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
js: {
|
|
161
|
+
$schema: {
|
|
162
|
+
title: "JavaScript",
|
|
163
|
+
type: "boolean",
|
|
164
|
+
description: "Use JavaScript instead of TypeScript"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
pascalCaseFiles: {
|
|
168
|
+
$schema: {
|
|
169
|
+
title: "Pascal Case Files",
|
|
170
|
+
type: "boolean",
|
|
171
|
+
description: "Use PascalCase for file names"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
strict: {
|
|
175
|
+
$schema: {
|
|
176
|
+
title: "Strict",
|
|
177
|
+
type: "boolean",
|
|
178
|
+
description: "Enable strict mode"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
publishable: {
|
|
182
|
+
$schema: {
|
|
183
|
+
title: "Publishable",
|
|
184
|
+
type: "boolean",
|
|
185
|
+
description: "Make the library publishable"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
buildable: {
|
|
189
|
+
$schema: {
|
|
190
|
+
title: "Buildable",
|
|
191
|
+
type: "boolean",
|
|
192
|
+
description: "Make the library buildable"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
setParserOptionsProject: {
|
|
196
|
+
$schema: {
|
|
197
|
+
title: "Set Parser Options Project",
|
|
198
|
+
type: "boolean",
|
|
199
|
+
description: "Set parser options project"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
config: {
|
|
203
|
+
$schema: {
|
|
204
|
+
title: "Config",
|
|
205
|
+
type: "string",
|
|
206
|
+
enum: [
|
|
207
|
+
"workspace",
|
|
208
|
+
"project",
|
|
209
|
+
"npm-scripts"
|
|
210
|
+
],
|
|
211
|
+
description: "The configuration type"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
compiler: {
|
|
215
|
+
$schema: {
|
|
216
|
+
title: "Compiler",
|
|
217
|
+
type: "string",
|
|
218
|
+
description: "The compiler to use"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
bundler: {
|
|
222
|
+
$schema: {
|
|
223
|
+
title: "Bundler",
|
|
224
|
+
type: "string",
|
|
225
|
+
description: "The bundler to use"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
skipTypeCheck: {
|
|
229
|
+
$schema: {
|
|
230
|
+
title: "Skip Type Check",
|
|
231
|
+
type: "boolean",
|
|
232
|
+
description: "Skip type checking"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
minimal: {
|
|
236
|
+
$schema: {
|
|
237
|
+
title: "Minimal",
|
|
238
|
+
type: "boolean",
|
|
239
|
+
description: "Create a minimal library"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
rootProject: {
|
|
243
|
+
$schema: {
|
|
244
|
+
title: "Root Project",
|
|
245
|
+
type: "boolean",
|
|
246
|
+
description: "Create a root project"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
simpleName: {
|
|
250
|
+
$schema: {
|
|
251
|
+
title: "Simple Name",
|
|
252
|
+
type: "boolean",
|
|
253
|
+
description: "Use a simple name for the library"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
addPlugin: {
|
|
257
|
+
$schema: {
|
|
258
|
+
title: "Add Plugin",
|
|
259
|
+
type: "boolean",
|
|
260
|
+
description: "Add a plugin to the library"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
useProjectJson: {
|
|
264
|
+
$schema: {
|
|
265
|
+
title: "Use Project Json",
|
|
266
|
+
type: "boolean",
|
|
267
|
+
description: "Use project.json"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
skipWorkspacesWarning: {
|
|
271
|
+
$schema: {
|
|
272
|
+
title: "Skip Workspaces Warning",
|
|
273
|
+
type: "boolean",
|
|
274
|
+
description: "Skip workspaces warning"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
useTscExecutor: {
|
|
278
|
+
$schema: {
|
|
279
|
+
title: "Use Tsc Executor",
|
|
280
|
+
type: "boolean",
|
|
281
|
+
description: "Use TSC executor"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
exports.typescript_library_generator_untyped_default = typescript_library_generator_untyped_default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
4
|
+
|
|
5
|
+
// src/utils/toml.ts
|
|
6
|
+
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
7
|
+
var _devkit = require('@nx/devkit');
|
|
8
|
+
function parseCargoTomlWithTree(tree, projectRoot, projectName) {
|
|
9
|
+
const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
10
|
+
if (!cargoTomlString) {
|
|
11
|
+
_devkit.logger.error(`Cannot find a Cargo.toml file in the ${projectName}`);
|
|
12
|
+
throw new Error();
|
|
13
|
+
}
|
|
14
|
+
return parseCargoToml(cargoTomlString);
|
|
15
|
+
}
|
|
16
|
+
_chunk3GQAWCBQjs.__name.call(void 0, parseCargoTomlWithTree, "parseCargoTomlWithTree");
|
|
17
|
+
function parseCargoToml(cargoString) {
|
|
18
|
+
if (!cargoString) {
|
|
19
|
+
throw new Error("Cargo.toml is empty");
|
|
20
|
+
}
|
|
21
|
+
return _jtoml2.default.parse(cargoString, {
|
|
22
|
+
x: {
|
|
23
|
+
comment: true
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
_chunk3GQAWCBQjs.__name.call(void 0, parseCargoToml, "parseCargoToml");
|
|
28
|
+
function stringifyCargoToml(cargoToml) {
|
|
29
|
+
const tomlString = _jtoml2.default.stringify(cargoToml, {
|
|
30
|
+
newlineAround: "section"
|
|
31
|
+
});
|
|
32
|
+
if (Array.isArray(tomlString)) {
|
|
33
|
+
return tomlString.join("\n");
|
|
34
|
+
}
|
|
35
|
+
return tomlString;
|
|
36
|
+
}
|
|
37
|
+
_chunk3GQAWCBQjs.__name.call(void 0, stringifyCargoToml, "stringifyCargoToml");
|
|
38
|
+
function modifyCargoTable(toml, section, key, value) {
|
|
39
|
+
toml[section] ??= _jtoml2.default.Section({});
|
|
40
|
+
toml[section][key] = typeof value === "object" && !Array.isArray(value) ? _jtoml2.default.inline(value) : typeof value === "function" ? value() : value;
|
|
41
|
+
}
|
|
42
|
+
_chunk3GQAWCBQjs.__name.call(void 0, modifyCargoTable, "modifyCargoTable");
|
|
43
|
+
function modifyCargoNestedTable(toml, section, key, value) {
|
|
44
|
+
toml[section] ??= {};
|
|
45
|
+
toml[section][key] = _jtoml2.default.Section(value);
|
|
46
|
+
}
|
|
47
|
+
_chunk3GQAWCBQjs.__name.call(void 0, modifyCargoNestedTable, "modifyCargoNestedTable");
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
exports.parseCargoTomlWithTree = parseCargoTomlWithTree; exports.parseCargoToml = parseCargoToml; exports.stringifyCargoToml = stringifyCargoToml; exports.modifyCargoTable = modifyCargoTable; exports.modifyCargoNestedTable = modifyCargoNestedTable;
|