@storm-software/workspace-tools 1.295.70 → 1.295.73
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 +12916 -0
- package/LICENSE +201 -0
- package/README.md +996 -0
- package/assets/cjs_shims.js +11 -0
- package/assets/esm_shims.js +9 -0
- package/config/base.json +306 -0
- package/config/recommended.json +310 -0
- package/dist/chunk-237PJK2V.js +128 -0
- package/dist/chunk-2AVWFUXP.js +112 -0
- package/dist/chunk-2GQSCZ3J.mjs +128 -0
- package/dist/chunk-2HPK7P5W.js +93 -0
- package/dist/chunk-2NAUEEZT.js +31 -0
- package/dist/chunk-2QMGYIOO.mjs +81 -0
- package/dist/chunk-32KQVUCF.js +163 -0
- package/dist/chunk-34LSWMWV.mjs +20 -0
- package/dist/chunk-3J2CP54B.mjs +100 -0
- package/dist/chunk-3QM6CFXC.mjs +49 -0
- package/dist/chunk-3V43ZXBN.mjs +77 -0
- package/dist/chunk-437WGH2M.mjs +32 -0
- package/dist/chunk-46GNS53C.mjs +110 -0
- package/dist/chunk-4AKDRRML.js +339 -0
- package/dist/chunk-4VWDSVQJ.mjs +321 -0
- package/dist/chunk-4Z3UCUDJ.mjs +548 -0
- package/dist/chunk-4ZQUYG5T.js +37 -0
- package/dist/chunk-52CEFR2O.js +52 -0
- package/dist/chunk-57OGFZNB.js +321 -0
- package/dist/chunk-5GZC2PF6.mjs +0 -0
- package/dist/chunk-5JNL56OH.mjs +364 -0
- package/dist/chunk-5JYAH2VL.mjs +388 -0
- package/dist/chunk-5OS7GV5T.mjs +51 -0
- package/dist/chunk-6EMYX25V.js +7 -0
- package/dist/chunk-6YZ3OUJB.mjs +0 -0
- package/dist/chunk-77B77QNY.mjs +148 -0
- package/dist/chunk-7CJRMBX3.js +20 -0
- package/dist/chunk-7JRL2LE3.js +21 -0
- package/dist/chunk-7RI43PE4.js +32 -0
- package/dist/chunk-A7XSX2OE.js +41 -0
- package/dist/chunk-AGR3NCGA.js +387 -0
- package/dist/chunk-AH7KAAQJ.mjs +17 -0
- package/dist/chunk-ANHKV7HZ.js +22 -0
- package/dist/chunk-BAPFD3TO.js +79 -0
- package/dist/chunk-BRMFLUTQ.js +117 -0
- package/dist/chunk-C3TC7AUW.js +1 -0
- package/dist/chunk-CJVTWYOM.mjs +50 -0
- package/dist/chunk-CNL74KSJ.mjs +52 -0
- package/dist/chunk-CQDBLKPF.js +172 -0
- package/dist/chunk-CZPRVK6P.mjs +31 -0
- package/dist/chunk-DIUWF7BW.js +17 -0
- package/dist/chunk-DTBAID2E.mjs +469 -0
- package/dist/chunk-EGI64HQ2.mjs +22 -0
- package/dist/chunk-F5HQPVFD.mjs +10 -0
- package/dist/chunk-FHHWAN4N.js +50 -0
- package/dist/chunk-FVCRMDQ4.mjs +319 -0
- package/dist/chunk-FX64QLIN.mjs +93 -0
- package/dist/chunk-GHQJKIMQ.mjs +0 -0
- package/dist/chunk-GKLFEOKK.mjs +163 -0
- package/dist/chunk-GSGT2T27.js +150 -0
- package/dist/chunk-HXQRGLII.js +81 -0
- package/dist/chunk-IIDZJGC3.js +469 -0
- package/dist/chunk-IIMRAJEJ.js +74 -0
- package/dist/chunk-IK2SIG4W.mjs +32 -0
- package/dist/chunk-IVAYCDYI.js +250 -0
- package/dist/chunk-JCPIXJ3N.mjs +37 -0
- package/dist/chunk-JGP4YWZY.js +1 -0
- package/dist/chunk-K4QMCCQB.mjs +79 -0
- package/dist/chunk-K7B3YICS.mjs +1510 -0
- package/dist/chunk-KBIJQTKM.js +105 -0
- package/dist/chunk-KBJ7IEXI.js +1 -0
- package/dist/chunk-KR72GKIT.mjs +7 -0
- package/dist/chunk-LMYTVXGX.js +100 -0
- package/dist/chunk-LOIAWLLD.mjs +128 -0
- package/dist/chunk-LQHVZMFV.js +79 -0
- package/dist/chunk-LZ3H2OH5.mjs +158 -0
- package/dist/chunk-M4QORJBG.js +79 -0
- package/dist/chunk-OKSECMVK.js +32 -0
- package/dist/chunk-OXB34DFO.mjs +105 -0
- package/dist/chunk-P5P43FOZ.mjs +0 -0
- package/dist/chunk-P6HSE7LH.js +1 -0
- package/dist/chunk-PHIKLLXQ.js +32 -0
- package/dist/chunk-PLILUNWG.mjs +253 -0
- package/dist/chunk-PMPKOMMD.js +158 -0
- package/dist/chunk-QC5ON3X4.mjs +40 -0
- package/dist/chunk-QLV3LANL.js +32 -0
- package/dist/chunk-QQB6GFYM.mjs +79 -0
- package/dist/chunk-QVYCDING.js +23 -0
- package/dist/chunk-R4NPC2W7.mjs +213 -0
- package/dist/chunk-RGPA6TMT.js +364 -0
- package/dist/chunk-RK2H6GNO.js +102 -0
- package/dist/chunk-RN4I4XGR.mjs +117 -0
- package/dist/chunk-RSYBXBX2.js +110 -0
- package/dist/chunk-RW4Q2PQR.js +213 -0
- package/dist/chunk-SAIDGUHG.mjs +0 -0
- package/dist/chunk-SEZ726NO.mjs +150 -0
- package/dist/chunk-SW2E5MQJ.mjs +112 -0
- package/dist/chunk-SZWM7COV.js +40 -0
- package/dist/chunk-T55IDP24.mjs +387 -0
- package/dist/chunk-TAP26ZJQ.js +128 -0
- package/dist/chunk-TBW5MCN6.mjs +172 -0
- package/dist/chunk-TM2CRDJW.js +148 -0
- package/dist/chunk-TX5O64JJ.js +319 -0
- package/dist/chunk-U35L6YML.mjs +105 -0
- package/dist/chunk-UBVTASOE.mjs +62 -0
- package/dist/chunk-UE6LE5R2.mjs +32 -0
- package/dist/chunk-UKTILFKM.mjs +32 -0
- package/dist/chunk-UNUH7N7Y.mjs +76 -0
- package/dist/chunk-UTP3KI2H.js +76 -0
- package/dist/chunk-UV6QIFS3.js +388 -0
- package/dist/chunk-V5K2PDVY.mjs +339 -0
- package/dist/chunk-VTEU7W42.mjs +41 -0
- package/dist/chunk-VXHOSAQ7.js +62 -0
- package/dist/chunk-W2C5IGWW.mjs +23 -0
- package/dist/chunk-WUKU43IZ.js +49 -0
- package/dist/chunk-X3HC3R2I.js +51 -0
- package/dist/chunk-YYLV7UA6.js +1 -0
- package/dist/chunk-Z7G3CM4Z.js +548 -0
- package/dist/chunk-ZCTECGQS.mjs +21 -0
- package/dist/chunk-ZJ75AYXE.js +1510 -0
- package/dist/chunk-ZTBAMYWX.mjs +82 -0
- package/dist/executor-0ivVjqma.d.mts +75 -0
- package/dist/executor-0ivVjqma.d.ts +75 -0
- package/dist/executor-BAeunL4c.d.mts +143 -0
- package/dist/executor-BKdjKo-J.d.mts +93 -0
- package/dist/executor-BKdjKo-J.d.ts +93 -0
- package/dist/executor-BbIkDktz.d.mts +103 -0
- package/dist/executor-BbIkDktz.d.ts +103 -0
- package/dist/executor-BxzAij2P.d.ts +57 -0
- package/dist/executor-C4Ddk0eB.d.mts +145 -0
- package/dist/executor-CPBR709C.d.ts +143 -0
- package/dist/executor-CPh7sG83.d.mts +57 -0
- package/dist/executor-CVgzIGPj.d.mts +95 -0
- package/dist/executor-CVgzIGPj.d.ts +95 -0
- package/dist/executor-CWRRdIo2.d.mts +95 -0
- package/dist/executor-CWRRdIo2.d.ts +95 -0
- package/dist/executor-DA8yyqTK.d.mts +33 -0
- package/dist/executor-DJOXX8-N.d.mts +267 -0
- package/dist/executor-DcKEmf82.d.ts +305 -0
- package/dist/executor-DpEbHA1f.d.mts +131 -0
- package/dist/executor-DpEbHA1f.d.ts +131 -0
- package/dist/executor-DvfMQSTP.d.mts +305 -0
- package/dist/executor-HMyCQrhV.d.ts +33 -0
- package/dist/executor-YAjz4bej.d.ts +267 -0
- package/dist/executor-jYQ7uQ13.d.mts +121 -0
- package/dist/executor-jYQ7uQ13.d.ts +121 -0
- package/dist/executor-lCseKo3l.d.ts +145 -0
- package/dist/executors.d.mts +18 -0
- package/dist/executors.d.ts +18 -0
- package/dist/executors.js +66 -0
- package/dist/executors.mjs +67 -0
- package/dist/generator-B9nl4zZh.d.mts +38 -0
- package/dist/generator-BKKfRfw5.d.mts +108 -0
- package/dist/generator-CKzlyVl8.d.ts +38 -0
- package/dist/generator-CPAEsIX9.d.ts +108 -0
- package/dist/generator-Ce5Jjv19.d.mts +130 -0
- package/dist/generator-DMnwA7AM.d.ts +130 -0
- package/dist/generator-DN9Th4ZG.d.ts +130 -0
- package/dist/generator-DVJjzR9Q.d.mts +130 -0
- package/dist/generator-DX2foast.d.ts +130 -0
- package/dist/generator-rIlu4Sq2.d.mts +130 -0
- package/dist/generators.d.mts +13 -0
- package/dist/generators.d.ts +13 -0
- package/dist/generators.js +36 -0
- package/dist/generators.mjs +37 -0
- package/dist/index.d.mts +61 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.js +299 -0
- package/dist/index.mjs +300 -0
- package/dist/init-6Nmtv8d5.d.mts +19 -0
- package/dist/init-6Nmtv8d5.d.ts +19 -0
- package/dist/schema.d-B9y7rRms.d.mts +59 -0
- package/dist/schema.d-B9y7rRms.d.ts +59 -0
- package/dist/src/base/base-executor.d.mts +11 -0
- package/dist/src/base/base-executor.d.ts +11 -0
- package/dist/src/base/base-executor.js +11 -0
- package/dist/src/base/base-executor.mjs +12 -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 +6 -0
- package/dist/src/base/base-executor.untyped.mjs +7 -0
- package/dist/src/base/base-generator.d.mts +11 -0
- package/dist/src/base/base-generator.d.ts +11 -0
- package/dist/src/base/base-generator.js +11 -0
- package/dist/src/base/base-generator.mjs +12 -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 +6 -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 +7 -0
- package/dist/src/base/cargo-base-executor.untyped.mjs +8 -0
- package/dist/src/base/index.d.mts +155 -0
- package/dist/src/base/index.d.ts +155 -0
- package/dist/src/base/index.js +48 -0
- package/dist/src/base/index.mjs +49 -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 +7 -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 +7 -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 +15 -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/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-build/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-build/untyped.js +25 -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 +15 -0
- package/dist/src/executors/cargo-check/executor.mjs +16 -0
- package/dist/src/executors/cargo-check/schema.d.ts +88 -0
- package/dist/src/executors/cargo-check/schema.json +86 -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 +18 -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 +15 -0
- package/dist/src/executors/cargo-clippy/executor.mjs +16 -0
- package/dist/src/executors/cargo-clippy/schema.d.ts +96 -0
- package/dist/src/executors/cargo-clippy/schema.json +92 -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 +25 -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 +15 -0
- package/dist/src/executors/cargo-doc/executor.mjs +16 -0
- package/dist/src/executors/cargo-doc/schema.d.ts +124 -0
- package/dist/src/executors/cargo-doc/schema.json +162 -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 +50 -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 +15 -0
- package/dist/src/executors/cargo-format/executor.mjs +16 -0
- package/dist/src/executors/cargo-format/schema.d.ts +88 -0
- package/dist/src/executors/cargo-format/schema.json +86 -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 +18 -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 +11 -0
- package/dist/src/executors/cargo-publish/schema.d.ts +114 -0
- package/dist/src/executors/cargo-publish/schema.json +105 -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 +40 -0
- package/dist/src/executors/cargo-publish/untyped.mjs +41 -0
- package/dist/src/executors/clean-package/executor.d.mts +13 -0
- package/dist/src/executors/clean-package/executor.d.ts +13 -0
- package/dist/src/executors/clean-package/executor.js +325 -0
- package/dist/src/executors/clean-package/executor.mjs +326 -0
- package/dist/src/executors/clean-package/schema.d.ts +59 -0
- package/dist/src/executors/clean-package/schema.json +55 -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 +64 -0
- package/dist/src/executors/clean-package/untyped.mjs +65 -0
- package/dist/src/executors/esbuild/executor.d.mts +5 -0
- package/dist/src/executors/esbuild/executor.d.ts +5 -0
- package/dist/src/executors/esbuild/executor.js +15 -0
- package/dist/src/executors/esbuild/executor.mjs +16 -0
- package/dist/src/executors/esbuild/schema.d.ts +136 -0
- package/dist/src/executors/esbuild/schema.json +163 -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 +27 -0
- package/dist/src/executors/esbuild/untyped.mjs +28 -0
- package/dist/src/executors/napi/executor.d.mts +5 -0
- package/dist/src/executors/napi/executor.d.ts +5 -0
- package/dist/src/executors/napi/executor.js +15 -0
- package/dist/src/executors/napi/executor.mjs +16 -0
- package/dist/src/executors/napi/schema.d.ts +282 -0
- package/dist/src/executors/napi/schema.json +235 -0
- package/dist/src/executors/napi/untyped.d.mts +5 -0
- package/dist/src/executors/napi/untyped.d.ts +5 -0
- package/dist/src/executors/napi/untyped.js +241 -0
- package/dist/src/executors/napi/untyped.mjs +242 -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 +15 -0
- package/dist/src/executors/npm-publish/executor.mjs +16 -0
- package/dist/src/executors/npm-publish/schema.d.ts +68 -0
- package/dist/src/executors/npm-publish/schema.json +61 -0
- package/dist/src/executors/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 +66 -0
- package/dist/src/executors/npm-publish/untyped.mjs +68 -0
- package/dist/src/executors/size-limit/executor.d.mts +5 -0
- package/dist/src/executors/size-limit/executor.d.ts +5 -0
- package/dist/src/executors/size-limit/executor.js +14 -0
- package/dist/src/executors/size-limit/executor.mjs +15 -0
- package/dist/src/executors/size-limit/schema.d.ts +24 -0
- package/dist/src/executors/size-limit/schema.json +26 -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 +28 -0
- package/dist/src/executors/size-limit/untyped.mjs +29 -0
- package/dist/src/executors/tsdown/executor.d.mts +5 -0
- package/dist/src/executors/tsdown/executor.d.ts +5 -0
- package/dist/src/executors/tsdown/executor.js +15 -0
- package/dist/src/executors/tsdown/executor.mjs +16 -0
- package/dist/src/executors/tsdown/schema.d.ts +134 -0
- package/dist/src/executors/tsdown/schema.json +172 -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 +18 -0
- package/dist/src/executors/tsdown/untyped.mjs +19 -0
- package/dist/src/executors/typia/executor.d.mts +5 -0
- package/dist/src/executors/typia/executor.d.ts +5 -0
- package/dist/src/executors/typia/executor.js +14 -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/untyped.d.mts +5 -0
- package/dist/src/executors/typia/untyped.d.ts +5 -0
- package/dist/src/executors/typia/untyped.js +54 -0
- package/dist/src/executors/typia/untyped.mjs +55 -0
- package/dist/src/executors/unbuild/executor.d.mts +5 -0
- package/dist/src/executors/unbuild/executor.d.ts +5 -0
- package/dist/src/executors/unbuild/executor.js +14 -0
- package/dist/src/executors/unbuild/executor.mjs +15 -0
- package/dist/src/executors/unbuild/schema.d.ts +258 -0
- package/dist/src/executors/unbuild/schema.json +301 -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 +158 -0
- package/dist/src/executors/unbuild/untyped.mjs +159 -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/src/index.ts.template +10 -0
- package/dist/src/generators/browser-library/files/tsconfig.spec.json +13 -0
- package/dist/src/generators/browser-library/generator.d.mts +8 -0
- package/dist/src/generators/browser-library/generator.d.ts +8 -0
- package/dist/src/generators/browser-library/generator.js +17 -0
- package/dist/src/generators/browser-library/generator.mjs +18 -0
- package/dist/src/generators/browser-library/schema.d.ts +122 -0
- package/dist/src/generators/browser-library/schema.json +117 -0
- package/dist/src/generators/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 +36 -0
- package/dist/src/generators/browser-library/untyped.mjs +37 -0
- package/dist/src/generators/config-schema/generator.d.mts +8 -0
- package/dist/src/generators/config-schema/generator.d.ts +8 -0
- package/dist/src/generators/config-schema/generator.js +14 -0
- package/dist/src/generators/config-schema/generator.mjs +15 -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/untyped.d.mts +5 -0
- package/dist/src/generators/config-schema/untyped.d.ts +5 -0
- package/dist/src/generators/config-schema/untyped.js +25 -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 +8 -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/untyped.d.mts +5 -0
- package/dist/src/generators/init/untyped.d.ts +5 -0
- package/dist/src/generators/init/untyped.js +19 -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/src/index.ts.template +10 -0
- package/dist/src/generators/neutral-library/files/tsconfig.spec.json +13 -0
- package/dist/src/generators/neutral-library/generator.d.mts +8 -0
- package/dist/src/generators/neutral-library/generator.d.ts +8 -0
- package/dist/src/generators/neutral-library/generator.js +17 -0
- package/dist/src/generators/neutral-library/generator.mjs +18 -0
- package/dist/src/generators/neutral-library/schema.d.ts +122 -0
- package/dist/src/generators/neutral-library/schema.json +116 -0
- package/dist/src/generators/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 +36 -0
- package/dist/src/generators/neutral-library/untyped.mjs +37 -0
- package/dist/src/generators/node-library/files/README.md +63 -0
- package/dist/src/generators/node-library/files/jest.config.ts +3 -0
- package/dist/src/generators/node-library/files/src/index.ts.template +10 -0
- package/dist/src/generators/node-library/files/tsconfig.spec.json +13 -0
- package/dist/src/generators/node-library/generator.d.mts +8 -0
- package/dist/src/generators/node-library/generator.d.ts +8 -0
- package/dist/src/generators/node-library/generator.js +17 -0
- package/dist/src/generators/node-library/generator.mjs +18 -0
- package/dist/src/generators/node-library/schema.d.ts +122 -0
- package/dist/src/generators/node-library/schema.json +117 -0
- package/dist/src/generators/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 +36 -0
- package/dist/src/generators/node-library/untyped.mjs +37 -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 +7 -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 +8 -0
- package/dist/src/generators/preset/generator.d.ts +8 -0
- package/dist/src/generators/preset/generator.js +15 -0
- package/dist/src/generators/preset/generator.mjs +16 -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/untyped.d.mts +5 -0
- package/dist/src/generators/preset/untyped.d.ts +5 -0
- package/dist/src/generators/preset/untyped.js +94 -0
- package/dist/src/generators/preset/untyped.mjs +95 -0
- package/dist/src/plugins/rust/cargo-toml.d.mts +47 -0
- package/dist/src/plugins/rust/cargo-toml.d.ts +47 -0
- package/dist/src/plugins/rust/cargo-toml.js +17 -0
- package/dist/src/plugins/rust/cargo-toml.mjs +18 -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 +17 -0
- package/dist/src/plugins/rust/index.mjs +18 -0
- package/dist/src/plugins/typescript/index.d.mts +65 -0
- package/dist/src/plugins/typescript/index.d.ts +65 -0
- package/dist/src/plugins/typescript/index.js +452 -0
- package/dist/src/plugins/typescript/index.mjs +453 -0
- package/dist/src/plugins/typescript/tsdown.d.mts +13 -0
- package/dist/src/plugins/typescript/tsdown.d.ts +13 -0
- package/dist/src/plugins/typescript/tsdown.js +178 -0
- package/dist/src/plugins/typescript/tsdown.mjs +179 -0
- package/dist/src/plugins/typescript/tsup.d.mts +13 -0
- package/dist/src/plugins/typescript/tsup.d.ts +13 -0
- package/dist/src/plugins/typescript/tsup.js +178 -0
- package/dist/src/plugins/typescript/tsup.mjs +179 -0
- package/dist/src/plugins/typescript/untyped-schema.d.mts +7 -0
- package/dist/src/plugins/typescript/untyped-schema.d.ts +7 -0
- package/dist/src/plugins/typescript/untyped-schema.js +151 -0
- package/dist/src/plugins/typescript/untyped-schema.mjs +152 -0
- package/dist/src/release/index.d.mts +11 -0
- package/dist/src/release/index.d.ts +11 -0
- package/dist/src/release/index.js +17 -0
- package/dist/src/release/index.mjs +18 -0
- package/dist/src/release/js-version-actions.d.mts +44 -0
- package/dist/src/release/js-version-actions.d.ts +44 -0
- package/dist/src/release/js-version-actions.js +10 -0
- package/dist/src/release/js-version-actions.mjs +11 -0
- package/dist/src/release/rust-version-actions.d.mts +56 -0
- package/dist/src/release/rust-version-actions.d.ts +56 -0
- package/dist/src/release/rust-version-actions.js +12 -0
- package/dist/src/release/rust-version-actions.mjs +13 -0
- package/dist/src/types.d.mts +6 -0
- package/dist/src/types.d.ts +6 -0
- package/dist/src/types.js +18 -0
- package/dist/src/types.mjs +19 -0
- package/dist/src/utils/apply-workspace-tokens.d.mts +11 -0
- package/dist/src/utils/apply-workspace-tokens.d.ts +11 -0
- package/dist/src/utils/apply-workspace-tokens.js +8 -0
- package/dist/src/utils/apply-workspace-tokens.mjs +9 -0
- package/dist/src/utils/cargo.d.mts +118 -0
- package/dist/src/utils/cargo.d.ts +118 -0
- package/dist/src/utils/cargo.js +22 -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 +6 -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 +10 -0
- package/dist/src/utils/get-project-configurations.mjs +11 -0
- package/dist/src/utils/index.d.mts +19 -0
- package/dist/src/utils/index.d.ts +19 -0
- package/dist/src/utils/index.js +153 -0
- package/dist/src/utils/index.mjs +154 -0
- package/dist/src/utils/lock-file.d.mts +29 -0
- package/dist/src/utils/lock-file.d.ts +29 -0
- package/dist/src/utils/lock-file.js +26 -0
- package/dist/src/utils/lock-file.mjs +27 -0
- package/dist/src/utils/nx-json.d.mts +33 -0
- package/dist/src/utils/nx-json.d.ts +33 -0
- package/dist/src/utils/nx-json.js +10 -0
- package/dist/src/utils/nx-json.mjs +11 -0
- package/dist/src/utils/package-helpers.d.mts +24 -0
- package/dist/src/utils/package-helpers.d.ts +24 -0
- package/dist/src/utils/package-helpers.js +14 -0
- package/dist/src/utils/package-helpers.mjs +15 -0
- package/dist/src/utils/plugin-helpers.d.mts +20 -0
- package/dist/src/utils/plugin-helpers.d.ts +20 -0
- package/dist/src/utils/plugin-helpers.js +15 -0
- package/dist/src/utils/plugin-helpers.mjs +16 -0
- package/dist/src/utils/project-tags.d.mts +65 -0
- package/dist/src/utils/project-tags.d.ts +65 -0
- package/dist/src/utils/project-tags.js +20 -0
- package/dist/src/utils/project-tags.mjs +21 -0
- package/dist/src/utils/registry-helpers.d.mts +11 -0
- package/dist/src/utils/registry-helpers.d.ts +11 -0
- package/dist/src/utils/registry-helpers.js +6 -0
- package/dist/src/utils/registry-helpers.mjs +7 -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 +6 -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 +40 -0
- package/dist/src/utils/versions.mjs +41 -0
- package/dist/types-Bvfw-xMk.d.ts +77 -0
- package/dist/types-D2zxYEAh.d.mts +41 -0
- package/dist/types-D2zxYEAh.d.ts +41 -0
- package/dist/types-DLXcfy35.d.mts +77 -0
- package/dist/types-Dug-2iKz.d.mts +243 -0
- package/dist/types-Dug-2iKz.d.ts +243 -0
- package/docs/api/base/base-executor.schema.md +15 -0
- package/docs/api/base/base-generator.schema.md +15 -0
- package/docs/api/base/cargo-base-executor.schema.md +89 -0
- package/docs/api/base/typescript-build-executor.schema.md +125 -0
- package/docs/api/base/typescript-library-generator.schema.md +129 -0
- package/docs/api/executors/cargo-build/schema.md +89 -0
- package/docs/api/executors/cargo-check/schema.md +89 -0
- package/docs/api/executors/cargo-clippy/schema.md +98 -0
- package/docs/api/executors/cargo-doc/schema.md +129 -0
- package/docs/api/executors/cargo-format/schema.md +89 -0
- package/docs/api/executors/cargo-publish/schema.md +116 -0
- package/docs/api/executors/clean-package/schema.md +64 -0
- package/docs/api/executors/esbuild/schema.md +125 -0
- package/docs/api/executors/napi/schema.md +300 -0
- package/docs/api/executors/npm-publish/schema.md +73 -0
- package/docs/api/executors/size-limit/schema.md +24 -0
- package/docs/api/executors/tsdown/schema.md +125 -0
- package/docs/api/executors/typia/schema.md +46 -0
- package/docs/api/executors/unbuild/schema.md +222 -0
- package/docs/api/generators/browser-library/files/README.md +58 -0
- package/docs/api/generators/browser-library/schema.md +129 -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 +129 -0
- package/docs/api/generators/node-library/files/README.md +63 -0
- package/docs/api/generators/node-library/schema.md +129 -0
- package/docs/api/generators/preset/schema.md +110 -0
- package/executors.json +69 -0
- package/generators.json +51 -0
- package/package.json +11 -11
|
@@ -0,0 +1,105 @@
|
|
|
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 _chunkGSGT2T27js = require('./chunk-GSGT2T27.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkAGR3NCGAjs = require('./chunk-AGR3NCGA.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
10
|
+
|
|
11
|
+
// src/executors/unbuild/executor.ts
|
|
12
|
+
var _defu = require('defu');
|
|
13
|
+
var _jiti = require('jiti');
|
|
14
|
+
async function unbuildExecutorFn(options, context, config) {
|
|
15
|
+
_chunkAGR3NCGAjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
16
|
+
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
17
|
+
throw new Error(
|
|
18
|
+
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
if (!context.projectsConfigurations.projects[context.projectName].root) {
|
|
22
|
+
throw new Error(
|
|
23
|
+
"The Build process failed because the project root is not valid. Please run this command from a workspace root directory."
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
if (!context.projectsConfigurations.projects[context.projectName].sourceRoot) {
|
|
27
|
+
throw new Error(
|
|
28
|
+
"The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory."
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
32
|
+
fsCache: config.skipCache ? false : _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
33
|
+
config.workspaceRoot,
|
|
34
|
+
config.directories.cache || "node_modules/.cache/storm",
|
|
35
|
+
"jiti"
|
|
36
|
+
),
|
|
37
|
+
interopDefault: true
|
|
38
|
+
});
|
|
39
|
+
const stormUnbuild = await jiti.import(
|
|
40
|
+
jiti.esmResolve("@storm-software/unbuild/build")
|
|
41
|
+
);
|
|
42
|
+
await stormUnbuild.build(
|
|
43
|
+
_defu.defu.call(void 0,
|
|
44
|
+
{
|
|
45
|
+
...options,
|
|
46
|
+
projectRoot: context.projectsConfigurations.projects[context.projectName].root,
|
|
47
|
+
projectName: context.projectName,
|
|
48
|
+
sourceRoot: context.projectsConfigurations.projects[context.projectName].sourceRoot,
|
|
49
|
+
platform: options.platform
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
stubOptions: {
|
|
53
|
+
jiti: {
|
|
54
|
+
fsCache: config.skipCache ? false : _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
55
|
+
config.workspaceRoot,
|
|
56
|
+
config.directories.cache || "node_modules/.cache/storm",
|
|
57
|
+
"jiti"
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
rollup: {
|
|
62
|
+
emitCJS: true,
|
|
63
|
+
watch: false,
|
|
64
|
+
dts: {
|
|
65
|
+
respectExternal: true
|
|
66
|
+
},
|
|
67
|
+
esbuild: {
|
|
68
|
+
target: options.target,
|
|
69
|
+
format: "esm",
|
|
70
|
+
platform: options.platform,
|
|
71
|
+
minify: _nullishCoalesce(options.minify, () => ( !options.debug)),
|
|
72
|
+
sourcemap: _nullishCoalesce(options.sourcemap, () => ( options.debug)),
|
|
73
|
+
treeShaking: options.treeShaking
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
);
|
|
79
|
+
return {
|
|
80
|
+
success: true
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
var executor_default = _chunkGSGT2T27js.withRunExecutor.call(void 0,
|
|
84
|
+
"TypeScript Unbuild build",
|
|
85
|
+
unbuildExecutorFn,
|
|
86
|
+
{
|
|
87
|
+
skipReadingConfig: false,
|
|
88
|
+
hooks: {
|
|
89
|
+
applyDefaultOptions: async (options, config) => {
|
|
90
|
+
options.debug ??= false;
|
|
91
|
+
options.treeShaking ??= true;
|
|
92
|
+
options.buildOnly ??= false;
|
|
93
|
+
options.platform ??= "neutral";
|
|
94
|
+
options.entry ??= ["{sourceRoot}"];
|
|
95
|
+
options.tsconfig ??= "{projectRoot}/tsconfig.json";
|
|
96
|
+
return options;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
exports.unbuildExecutorFn = unbuildExecutorFn; exports.executor_default = executor_default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
4
|
+
|
|
5
|
+
// ../config-tools/src/utilities/find-up.ts
|
|
6
|
+
var _fs = require('fs');
|
|
7
|
+
var _path = require('path');
|
|
8
|
+
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
9
|
+
var depth = 0;
|
|
10
|
+
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
11
|
+
const _startPath = _nullishCoalesce(startPath, () => ( process.cwd()));
|
|
12
|
+
if (endDirectoryNames.some(
|
|
13
|
+
(endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName))
|
|
14
|
+
)) {
|
|
15
|
+
return _startPath;
|
|
16
|
+
}
|
|
17
|
+
if (endFileNames.some((endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName)))) {
|
|
18
|
+
return _startPath;
|
|
19
|
+
}
|
|
20
|
+
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
21
|
+
const parent = _path.join.call(void 0, _startPath, "..");
|
|
22
|
+
return findFolderUp(parent, endFileNames, endDirectoryNames);
|
|
23
|
+
}
|
|
24
|
+
return void 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
28
|
+
var rootFiles = [
|
|
29
|
+
"storm-workspace.json",
|
|
30
|
+
"storm-workspace.yaml",
|
|
31
|
+
"storm-workspace.yml",
|
|
32
|
+
"storm-workspace.js",
|
|
33
|
+
"storm-workspace.ts",
|
|
34
|
+
".storm-workspace.json",
|
|
35
|
+
".storm-workspace.yaml",
|
|
36
|
+
".storm-workspace.yml",
|
|
37
|
+
".storm-workspace.js",
|
|
38
|
+
".storm-workspace.ts",
|
|
39
|
+
"lerna.json",
|
|
40
|
+
"nx.json",
|
|
41
|
+
"turbo.json",
|
|
42
|
+
"npm-workspace.json",
|
|
43
|
+
"yarn-workspace.json",
|
|
44
|
+
"pnpm-workspace.json",
|
|
45
|
+
"npm-workspace.yaml",
|
|
46
|
+
"yarn-workspace.yaml",
|
|
47
|
+
"pnpm-workspace.yaml",
|
|
48
|
+
"npm-workspace.yml",
|
|
49
|
+
"yarn-workspace.yml",
|
|
50
|
+
"pnpm-workspace.yml",
|
|
51
|
+
"npm-lock.json",
|
|
52
|
+
"yarn-lock.json",
|
|
53
|
+
"pnpm-lock.json",
|
|
54
|
+
"npm-lock.yaml",
|
|
55
|
+
"yarn-lock.yaml",
|
|
56
|
+
"pnpm-lock.yaml",
|
|
57
|
+
"npm-lock.yml",
|
|
58
|
+
"yarn-lock.yml",
|
|
59
|
+
"pnpm-lock.yml",
|
|
60
|
+
"bun.lockb"
|
|
61
|
+
];
|
|
62
|
+
var rootDirectories = [
|
|
63
|
+
".storm-workspace",
|
|
64
|
+
".nx",
|
|
65
|
+
".git",
|
|
66
|
+
".github",
|
|
67
|
+
".vscode",
|
|
68
|
+
".verdaccio"
|
|
69
|
+
];
|
|
70
|
+
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
71
|
+
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
72
|
+
return _chunkCQDBLKPFjs.correctPaths.call(void 0,
|
|
73
|
+
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
return _chunkCQDBLKPFjs.correctPaths.call(void 0,
|
|
77
|
+
findFolderUp(
|
|
78
|
+
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
79
|
+
rootFiles,
|
|
80
|
+
rootDirectories
|
|
81
|
+
)
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
85
|
+
const result = findWorkspaceRootSafe(pathInsideMonorepo);
|
|
86
|
+
if (!result) {
|
|
87
|
+
throw new Error(
|
|
88
|
+
`Cannot find workspace root upwards from known path. Files search list includes:
|
|
89
|
+
${rootFiles.join(
|
|
90
|
+
"\n"
|
|
91
|
+
)}
|
|
92
|
+
Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
exports.findWorkspaceRoot = findWorkspaceRoot;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cargoMetadata
|
|
3
|
+
} from "./chunk-GKLFEOKK.mjs";
|
|
4
|
+
import {
|
|
5
|
+
withRunExecutor
|
|
6
|
+
} from "./chunk-SEZ726NO.mjs";
|
|
7
|
+
import {
|
|
8
|
+
writeDebug
|
|
9
|
+
} from "./chunk-T55IDP24.mjs";
|
|
10
|
+
import {
|
|
11
|
+
correctPaths,
|
|
12
|
+
isAbsolute,
|
|
13
|
+
joinPaths,
|
|
14
|
+
relative
|
|
15
|
+
} from "./chunk-TBW5MCN6.mjs";
|
|
16
|
+
|
|
17
|
+
// src/executors/napi/executor.ts
|
|
18
|
+
import { createJiti } from "jiti";
|
|
19
|
+
import { fileExists } from "nx/src/utils/fileutils";
|
|
20
|
+
async function napiExecutor(options, context, config) {
|
|
21
|
+
const jiti = createJiti(config.workspaceRoot, {
|
|
22
|
+
fsCache: config.skipCache ? false : joinPaths(
|
|
23
|
+
config.workspaceRoot,
|
|
24
|
+
config.directories.cache || "node_modules/.cache/storm",
|
|
25
|
+
"jiti"
|
|
26
|
+
),
|
|
27
|
+
interopDefault: true
|
|
28
|
+
});
|
|
29
|
+
const { NapiCli } = await jiti.import(
|
|
30
|
+
jiti.esmResolve("@napi-rs/cli")
|
|
31
|
+
);
|
|
32
|
+
if (!context.projectGraph?.nodes[context.projectName ?? ""]) {
|
|
33
|
+
throw new Error(
|
|
34
|
+
"The Napi Build process failed because the project could not be found in the project graph. Please run this command from a workspace root directory."
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
const projectRoot = context.projectGraph?.nodes[context.projectName ?? ""]?.data.root;
|
|
38
|
+
const packageJson = joinPaths(projectRoot ?? ".", "package.json");
|
|
39
|
+
if (!fileExists(packageJson)) {
|
|
40
|
+
throw new Error(`Could not find package.json at ${packageJson}`);
|
|
41
|
+
}
|
|
42
|
+
const napi = new NapiCli();
|
|
43
|
+
const normalizedOptions = { ...options };
|
|
44
|
+
const metadata = cargoMetadata();
|
|
45
|
+
normalizedOptions.targetDir = options.targetDir || metadata?.target_directory || joinPaths(config.workspaceRoot, "dist", "target");
|
|
46
|
+
normalizedOptions.outputDir = options.outputPath;
|
|
47
|
+
normalizedOptions.packageJsonPath ??= packageJson;
|
|
48
|
+
if (options.cwd) {
|
|
49
|
+
normalizedOptions.cwd = correctPaths(options.cwd);
|
|
50
|
+
} else {
|
|
51
|
+
const absoluteProjectRoot = correctPaths(
|
|
52
|
+
joinPaths(config.workspaceRoot, projectRoot || ".")
|
|
53
|
+
);
|
|
54
|
+
normalizedOptions.cwd = absoluteProjectRoot;
|
|
55
|
+
if (normalizedOptions.outputDir) {
|
|
56
|
+
normalizedOptions.outputDir = relative(
|
|
57
|
+
normalizedOptions.cwd,
|
|
58
|
+
correctPaths(
|
|
59
|
+
isAbsolute(normalizedOptions.outputDir) ? normalizedOptions.outputDir : joinPaths(config.workspaceRoot, normalizedOptions.outputDir)
|
|
60
|
+
)
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
if (normalizedOptions.packageJsonPath) {
|
|
64
|
+
normalizedOptions.packageJsonPath = relative(
|
|
65
|
+
normalizedOptions.cwd,
|
|
66
|
+
correctPaths(
|
|
67
|
+
isAbsolute(normalizedOptions.packageJsonPath) ? normalizedOptions.packageJsonPath : joinPaths(config.workspaceRoot, normalizedOptions.packageJsonPath)
|
|
68
|
+
)
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
if (normalizedOptions.configPath) {
|
|
72
|
+
normalizedOptions.configPath = relative(
|
|
73
|
+
normalizedOptions.cwd,
|
|
74
|
+
correctPaths(
|
|
75
|
+
isAbsolute(normalizedOptions.configPath) ? normalizedOptions.configPath : joinPaths(config.workspaceRoot, normalizedOptions.configPath)
|
|
76
|
+
)
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
if (normalizedOptions.manifestPath) {
|
|
80
|
+
normalizedOptions.manifestPath = relative(
|
|
81
|
+
normalizedOptions.cwd,
|
|
82
|
+
correctPaths(
|
|
83
|
+
isAbsolute(normalizedOptions.manifestPath) ? normalizedOptions.manifestPath : joinPaths(config.workspaceRoot, normalizedOptions.manifestPath)
|
|
84
|
+
)
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
if (process.env.VERCEL) {
|
|
89
|
+
return { success: true };
|
|
90
|
+
}
|
|
91
|
+
writeDebug(
|
|
92
|
+
`Normalized Napi Options:
|
|
93
|
+
packageJsonPath: ${normalizedOptions.packageJsonPath}
|
|
94
|
+
outputDir: ${normalizedOptions.outputDir}
|
|
95
|
+
targetDir: ${normalizedOptions.targetDir}
|
|
96
|
+
manifestPath: ${normalizedOptions.manifestPath}
|
|
97
|
+
configPath: ${normalizedOptions.configPath}
|
|
98
|
+
cwd: ${normalizedOptions.cwd}`,
|
|
99
|
+
config
|
|
100
|
+
);
|
|
101
|
+
const { task } = await napi.build(normalizedOptions);
|
|
102
|
+
return { success: true, terminalOutput: await task };
|
|
103
|
+
}
|
|
104
|
+
var executor_default = withRunExecutor(
|
|
105
|
+
"Napi - Build Bindings",
|
|
106
|
+
napiExecutor,
|
|
107
|
+
{
|
|
108
|
+
skipReadingConfig: false,
|
|
109
|
+
hooks: {
|
|
110
|
+
applyDefaultOptions: (options) => {
|
|
111
|
+
options.outputPath ??= "{sourceRoot}";
|
|
112
|
+
options.toolchain ??= "stable";
|
|
113
|
+
options.dtsCache ??= true;
|
|
114
|
+
options.platform ??= true;
|
|
115
|
+
options.constEnum ??= false;
|
|
116
|
+
options.verbose ??= false;
|
|
117
|
+
options.jsBinding ??= "binding.js";
|
|
118
|
+
options.dts ??= "binding.d.ts";
|
|
119
|
+
return options;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
export {
|
|
126
|
+
napiExecutor,
|
|
127
|
+
executor_default
|
|
128
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk7JRL2LE3js = require('./chunk-7JRL2LE3.js');
|
|
4
|
+
|
|
5
|
+
// src/base/cargo-base-executor.untyped.ts
|
|
6
|
+
var _untyped = require('untyped');
|
|
7
|
+
var cargo_base_executor_untyped_default = _untyped.defineUntypedSchema.call(void 0, {
|
|
8
|
+
..._chunk7JRL2LE3js.base_executor_untyped_default,
|
|
9
|
+
$schema: {
|
|
10
|
+
id: "cargoBaseExecutor",
|
|
11
|
+
title: "Cargo Base Executor",
|
|
12
|
+
description: "A base type definition for a Cargo/rust related executor schema"
|
|
13
|
+
},
|
|
14
|
+
package: {
|
|
15
|
+
$schema: {
|
|
16
|
+
title: "Cargo.toml Path",
|
|
17
|
+
type: "string",
|
|
18
|
+
format: "path",
|
|
19
|
+
description: "The path to the Cargo.toml file"
|
|
20
|
+
},
|
|
21
|
+
$default: "{projectRoot}/Cargo.toml"
|
|
22
|
+
},
|
|
23
|
+
toolchain: {
|
|
24
|
+
$schema: {
|
|
25
|
+
title: "Toolchain",
|
|
26
|
+
description: "The type of toolchain to use for the build",
|
|
27
|
+
enum: ["stable", "beta", "nightly"],
|
|
28
|
+
default: "stable"
|
|
29
|
+
},
|
|
30
|
+
$default: "stable"
|
|
31
|
+
},
|
|
32
|
+
target: {
|
|
33
|
+
$schema: {
|
|
34
|
+
title: "Target",
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "The target to build"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
allTargets: {
|
|
40
|
+
$schema: {
|
|
41
|
+
title: "All Targets",
|
|
42
|
+
type: "boolean",
|
|
43
|
+
description: "Build all targets"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
profile: {
|
|
47
|
+
$schema: {
|
|
48
|
+
title: "Profile",
|
|
49
|
+
type: "string",
|
|
50
|
+
description: "The profile to build"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
release: {
|
|
54
|
+
$schema: {
|
|
55
|
+
title: "Release",
|
|
56
|
+
type: "boolean",
|
|
57
|
+
description: "Build in release mode"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
features: {
|
|
61
|
+
$schema: {
|
|
62
|
+
title: "Features",
|
|
63
|
+
type: "string",
|
|
64
|
+
description: "The features to build",
|
|
65
|
+
oneOf: [{ type: "string" }, { type: "array", items: { type: "string" } }]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
allFeatures: {
|
|
69
|
+
$schema: {
|
|
70
|
+
title: "All Features",
|
|
71
|
+
type: "boolean",
|
|
72
|
+
description: "Build all features"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
exports.cargo_base_executor_untyped_default = cargo_base_executor_untyped_default;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import {
|
|
2
|
+
base_executor_untyped_default
|
|
3
|
+
} from "./chunk-ZCTECGQS.mjs";
|
|
4
|
+
|
|
5
|
+
// src/base/typescript-build-executor.untyped.ts
|
|
6
|
+
import { defineUntypedSchema } from "untyped";
|
|
7
|
+
var typescript_build_executor_untyped_default = defineUntypedSchema({
|
|
8
|
+
...base_executor_untyped_default,
|
|
9
|
+
$schema: {
|
|
10
|
+
id: "TypeScriptBuildExecutorSchema",
|
|
11
|
+
title: "TypeScript Build Executor",
|
|
12
|
+
description: "A type definition for the base TypeScript build executor schema",
|
|
13
|
+
required: ["entry", "tsconfig"]
|
|
14
|
+
},
|
|
15
|
+
entry: {
|
|
16
|
+
$schema: {
|
|
17
|
+
title: "Entry File(s)",
|
|
18
|
+
format: "path",
|
|
19
|
+
type: "array",
|
|
20
|
+
description: "The entry file or files to build",
|
|
21
|
+
items: { type: "string" }
|
|
22
|
+
},
|
|
23
|
+
$default: ["{sourceRoot}/index.ts"]
|
|
24
|
+
},
|
|
25
|
+
tsconfig: {
|
|
26
|
+
$schema: {
|
|
27
|
+
title: "TSConfig Path",
|
|
28
|
+
type: "string",
|
|
29
|
+
format: "path",
|
|
30
|
+
description: "The path to the tsconfig file"
|
|
31
|
+
},
|
|
32
|
+
$default: "{projectRoot}/tsconfig.json"
|
|
33
|
+
},
|
|
34
|
+
bundle: {
|
|
35
|
+
$schema: {
|
|
36
|
+
title: "Bundle",
|
|
37
|
+
type: "boolean",
|
|
38
|
+
description: "Bundle the output"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
minify: {
|
|
42
|
+
$schema: {
|
|
43
|
+
title: "Minify",
|
|
44
|
+
type: "boolean",
|
|
45
|
+
description: "Minify the output"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
debug: {
|
|
49
|
+
$schema: {
|
|
50
|
+
title: "Debug",
|
|
51
|
+
type: "boolean",
|
|
52
|
+
description: "Debug the output"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
sourcemap: {
|
|
56
|
+
$schema: {
|
|
57
|
+
title: "Sourcemap",
|
|
58
|
+
type: "boolean",
|
|
59
|
+
description: "Generate a sourcemap"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
silent: {
|
|
63
|
+
$schema: {
|
|
64
|
+
title: "Silent",
|
|
65
|
+
type: "boolean",
|
|
66
|
+
description: "Should the build run silently - only report errors back to the user"
|
|
67
|
+
},
|
|
68
|
+
$default: false
|
|
69
|
+
},
|
|
70
|
+
target: {
|
|
71
|
+
$schema: {
|
|
72
|
+
title: "Target",
|
|
73
|
+
type: "string",
|
|
74
|
+
description: "The target to build",
|
|
75
|
+
enum: [
|
|
76
|
+
"es3",
|
|
77
|
+
"es5",
|
|
78
|
+
"es6",
|
|
79
|
+
"es2015",
|
|
80
|
+
"es2016",
|
|
81
|
+
"es2017",
|
|
82
|
+
"es2018",
|
|
83
|
+
"es2019",
|
|
84
|
+
"es2020",
|
|
85
|
+
"es2021",
|
|
86
|
+
"es2022",
|
|
87
|
+
"es2023",
|
|
88
|
+
"es2024",
|
|
89
|
+
"esnext",
|
|
90
|
+
"node12",
|
|
91
|
+
"node14",
|
|
92
|
+
"node16",
|
|
93
|
+
"node18",
|
|
94
|
+
"node20",
|
|
95
|
+
"node22",
|
|
96
|
+
"browser",
|
|
97
|
+
"chrome58",
|
|
98
|
+
"chrome59",
|
|
99
|
+
"chrome60"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
$default: "esnext",
|
|
103
|
+
$resolve: (val = "esnext") => typeof val === "string" ? val.toLowerCase() : val
|
|
104
|
+
},
|
|
105
|
+
format: {
|
|
106
|
+
$schema: {
|
|
107
|
+
title: "Format",
|
|
108
|
+
type: "array",
|
|
109
|
+
description: "The format to build",
|
|
110
|
+
items: {
|
|
111
|
+
type: "string",
|
|
112
|
+
enum: ["cjs", "esm", "iife"]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
$resolve: (val = ["cjs", "esm"]) => [].concat(val)
|
|
116
|
+
},
|
|
117
|
+
platform: {
|
|
118
|
+
$schema: {
|
|
119
|
+
title: "Platform",
|
|
120
|
+
type: "string",
|
|
121
|
+
description: "The platform to build",
|
|
122
|
+
enum: ["neutral", "node", "browser"]
|
|
123
|
+
},
|
|
124
|
+
$default: "neutral"
|
|
125
|
+
},
|
|
126
|
+
external: {
|
|
127
|
+
$schema: {
|
|
128
|
+
title: "External",
|
|
129
|
+
type: "array",
|
|
130
|
+
description: "The external dependencies"
|
|
131
|
+
},
|
|
132
|
+
$resolve: (val = []) => [].concat(val)
|
|
133
|
+
},
|
|
134
|
+
define: {
|
|
135
|
+
$schema: {
|
|
136
|
+
title: "Define",
|
|
137
|
+
type: "object",
|
|
138
|
+
tsType: "Record<string, string>",
|
|
139
|
+
description: "The define values"
|
|
140
|
+
},
|
|
141
|
+
$resolve: (val = {}) => val,
|
|
142
|
+
$default: {}
|
|
143
|
+
},
|
|
144
|
+
env: {
|
|
145
|
+
$schema: {
|
|
146
|
+
title: "Environment Variables",
|
|
147
|
+
type: "object",
|
|
148
|
+
tsType: "Record<string, string>",
|
|
149
|
+
description: "The environment variable values"
|
|
150
|
+
},
|
|
151
|
+
$resolve: (val = {}) => val,
|
|
152
|
+
$default: {}
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
export {
|
|
157
|
+
typescript_build_executor_untyped_default
|
|
158
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk57OGFZNBjs = require('./chunk-57OGFZNB.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkRSYBXBX2js = require('./chunk-RSYBXBX2.js');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
14
|
+
|
|
15
|
+
// src/generators/node-library/generator.ts
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _devkit = require('@nx/devkit');
|
|
22
|
+
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
23
|
+
const filesDir = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
24
|
+
__dirname,
|
|
25
|
+
"src",
|
|
26
|
+
"generators",
|
|
27
|
+
"node-library",
|
|
28
|
+
"files"
|
|
29
|
+
);
|
|
30
|
+
const tsLibraryGeneratorOptions = {
|
|
31
|
+
platform: "node",
|
|
32
|
+
devDependencies: {
|
|
33
|
+
"@types/node": _chunkSZWM7COVjs.typesNodeVersion
|
|
34
|
+
},
|
|
35
|
+
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
36
|
+
...schema,
|
|
37
|
+
directory: schema.directory,
|
|
38
|
+
description: schema.description
|
|
39
|
+
};
|
|
40
|
+
const options = await _chunk57OGFZNBjs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
|
|
41
|
+
const { className, name, propertyName } = _devkit.names.call(void 0, options.name);
|
|
42
|
+
_devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
|
|
43
|
+
...schema,
|
|
44
|
+
dot: ".",
|
|
45
|
+
className,
|
|
46
|
+
name,
|
|
47
|
+
namespace: _nullishCoalesce(process.env.STORM_NAMESPACE, () => ( "storm-software")),
|
|
48
|
+
description: _nullishCoalesce(schema.description, () => ( "")),
|
|
49
|
+
propertyName,
|
|
50
|
+
js: !!options.js,
|
|
51
|
+
cliCommand: "nx",
|
|
52
|
+
strict: void 0,
|
|
53
|
+
tmpl: "",
|
|
54
|
+
offsetFromRoot: _devkit.offsetFromRoot.call(void 0, options.projectRoot),
|
|
55
|
+
buildable: options.bundler && options.bundler !== "none",
|
|
56
|
+
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
57
|
+
});
|
|
58
|
+
await _chunk57OGFZNBjs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
|
|
59
|
+
await _devkit.formatFiles.call(void 0, tree);
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
var generator_default = _chunkRSYBXBX2js.withRunGenerator.call(void 0,
|
|
63
|
+
"TypeScript Library Creator (NodeJs Platform)",
|
|
64
|
+
nodeLibraryGeneratorFn,
|
|
65
|
+
{
|
|
66
|
+
hooks: {
|
|
67
|
+
applyDefaultOptions: (options) => {
|
|
68
|
+
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
69
|
+
options.platform ??= "node";
|
|
70
|
+
return options;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
exports.nodeLibraryGeneratorFn = nodeLibraryGeneratorFn; exports.generator_default = generator_default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/generators/init/init.ts
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _devkit = require('@nx/devkit');
|
|
6
|
+
async function initGenerator(tree, schema) {
|
|
7
|
+
const task = _devkit.addDependenciesToPackageJson.call(void 0,
|
|
8
|
+
tree,
|
|
9
|
+
{
|
|
10
|
+
nx: "^19.6.2",
|
|
11
|
+
"@nx/workspace": "^19.6.2",
|
|
12
|
+
"@nx/js": "^19.6.2",
|
|
13
|
+
"@storm-software/eslint": "latest",
|
|
14
|
+
"@storm-software/prettier": "latest",
|
|
15
|
+
"@storm-software/config-tools": "latest",
|
|
16
|
+
"@storm-software/testing-tools": "latest",
|
|
17
|
+
"@storm-software/git-tools": "latest",
|
|
18
|
+
"@storm-software/linting-tools": "latest"
|
|
19
|
+
},
|
|
20
|
+
{}
|
|
21
|
+
);
|
|
22
|
+
if (!schema.skipFormat) {
|
|
23
|
+
await _devkit.formatFiles.call(void 0, tree);
|
|
24
|
+
}
|
|
25
|
+
return task;
|
|
26
|
+
}
|
|
27
|
+
var init_default = initGenerator;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.initGenerator = initGenerator; exports.init_default = init_default;
|