@storm-software/workspace-tools 1.295.85 → 1.295.87
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/LICENSE +201 -0
- package/README.md +603 -0
- package/assets/cjs_shims.js +11 -0
- package/assets/esm_shims.js +9 -0
- package/config/base.json +324 -0
- package/config/recommended.json +328 -0
- package/dist/chunk-2AVWFUXP.js +112 -0
- package/dist/chunk-2CXXVFU4.js +213 -0
- package/dist/chunk-2GQSCZ3J.mjs +128 -0
- package/dist/chunk-2L7ICILU.js +364 -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-35ERFW7I.mjs +150 -0
- package/dist/chunk-35G4LHK2.mjs +1510 -0
- package/dist/chunk-3J2CP54B.mjs +100 -0
- package/dist/chunk-437WGH2M.mjs +32 -0
- package/dist/chunk-4AKDRRML.js +339 -0
- package/dist/chunk-4AR5RJMF.mjs +402 -0
- package/dist/chunk-4VWDSVQJ.mjs +321 -0
- package/dist/chunk-57OGFZNB.js +321 -0
- package/dist/chunk-5GZC2PF6.mjs +0 -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-6HJ4EEBB.js +102 -0
- package/dist/chunk-6IXJEWJR.js +93 -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-7MM5MBEP.mjs +32 -0
- package/dist/chunk-AH7KAAQJ.mjs +17 -0
- package/dist/chunk-ALL63TSY.mjs +110 -0
- package/dist/chunk-ANHKV7HZ.js +22 -0
- package/dist/chunk-AY3HOPOX.js +41 -0
- package/dist/chunk-BAPFD3TO.js +79 -0
- package/dist/chunk-BAYA5SVP.mjs +319 -0
- package/dist/chunk-BT7OBRJT.mjs +76 -0
- package/dist/chunk-C3TC7AUW.js +1 -0
- package/dist/chunk-CBVZ57E6.js +150 -0
- package/dist/chunk-CQDBLKPF.js +172 -0
- package/dist/chunk-CQIILJEF.js +1510 -0
- package/dist/chunk-DEP6TIXL.js +50 -0
- package/dist/chunk-DIUWF7BW.js +17 -0
- package/dist/chunk-DJZX3XBE.mjs +105 -0
- package/dist/chunk-EGI64HQ2.mjs +22 -0
- package/dist/chunk-EMX7LTEI.mjs +50 -0
- package/dist/chunk-EQMVQ3I7.mjs +213 -0
- package/dist/chunk-ETSIRKO5.js +79 -0
- package/dist/chunk-EYO6EPEG.mjs +93 -0
- package/dist/chunk-FFEJNAFP.js +250 -0
- package/dist/chunk-FPNWNZUL.mjs +253 -0
- package/dist/chunk-FQX7ZBQS.mjs +32 -0
- package/dist/chunk-GCDDSEDG.mjs +540 -0
- package/dist/chunk-GED6QYLK.mjs +117 -0
- package/dist/chunk-GHQJKIMQ.mjs +0 -0
- package/dist/chunk-GKLFEOKK.mjs +163 -0
- package/dist/chunk-GTBTSMUH.mjs +10 -0
- package/dist/chunk-GZA2CV3C.js +402 -0
- package/dist/chunk-HECOVC7R.mjs +82 -0
- package/dist/chunk-HXQRGLII.js +81 -0
- package/dist/chunk-IETUQQJT.mjs +52 -0
- package/dist/chunk-IIFXLZEH.js +319 -0
- package/dist/chunk-JDDKEYTF.js +469 -0
- package/dist/chunk-JGP4YWZY.js +1 -0
- package/dist/chunk-JPOHRWVM.mjs +31 -0
- package/dist/chunk-K4QMCCQB.mjs +79 -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-LQHVZMFV.js +79 -0
- package/dist/chunk-LULOWPU2.js +110 -0
- package/dist/chunk-LZ3H2OH5.mjs +158 -0
- package/dist/chunk-MNA3AU4B.mjs +49 -0
- package/dist/chunk-NUGNYGBF.js +105 -0
- package/dist/chunk-O7Z2YGFU.js +52 -0
- package/dist/chunk-OBATTMGC.mjs +105 -0
- package/dist/chunk-OKSECMVK.js +32 -0
- package/dist/chunk-P56QF3XG.js +74 -0
- package/dist/chunk-P5P43FOZ.mjs +0 -0
- package/dist/chunk-P6HSE7LH.js +1 -0
- package/dist/chunk-PB5565L7.js +37 -0
- package/dist/chunk-PICVMVJQ.mjs +364 -0
- package/dist/chunk-PMPKOMMD.js +158 -0
- package/dist/chunk-PRW5IUAC.js +31 -0
- package/dist/chunk-QC5ON3X4.mjs +40 -0
- package/dist/chunk-QQB6GFYM.mjs +79 -0
- package/dist/chunk-QSNWB7A5.mjs +41 -0
- package/dist/chunk-QVYCDING.js +23 -0
- package/dist/chunk-RCSUK5YZ.mjs +77 -0
- package/dist/chunk-S2KOD2HL.mjs +128 -0
- package/dist/chunk-SAIDGUHG.mjs +0 -0
- package/dist/chunk-SGI4JCLV.js +540 -0
- package/dist/chunk-SW2E5MQJ.mjs +112 -0
- package/dist/chunk-SZWM7COV.js +40 -0
- package/dist/chunk-TAP26ZJQ.js +128 -0
- package/dist/chunk-TBW5MCN6.mjs +172 -0
- package/dist/chunk-THA4SGMV.js +32 -0
- package/dist/chunk-TM2CRDJW.js +148 -0
- package/dist/chunk-U5JPGO47.js +117 -0
- package/dist/chunk-UBVTASOE.mjs +62 -0
- package/dist/chunk-UV6QIFS3.js +388 -0
- package/dist/chunk-V5K2PDVY.mjs +339 -0
- package/dist/chunk-VC4FGY7P.js +49 -0
- package/dist/chunk-VXHOSAQ7.js +62 -0
- package/dist/chunk-W2C5IGWW.mjs +23 -0
- package/dist/chunk-WJ5AG2IU.js +76 -0
- package/dist/chunk-WQUWUZZ4.mjs +32 -0
- package/dist/chunk-WTWQAZUM.js +128 -0
- package/dist/chunk-X2UWPTFU.mjs +37 -0
- package/dist/chunk-X3HC3R2I.js +51 -0
- package/dist/chunk-XNHWWPSK.js +32 -0
- package/dist/chunk-YRGMZRC3.mjs +469 -0
- package/dist/chunk-YYLV7UA6.js +1 -0
- package/dist/chunk-ZCTECGQS.mjs +21 -0
- package/dist/chunk-ZYI527ZS.js +32 -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.schema.d.ts +16 -0
- package/dist/src/base/base-executor.schema.json +16 -0
- package/dist/src/base/base-executor.untyped.d.mts +5 -0
- package/dist/src/base/base-executor.untyped.d.ts +5 -0
- package/dist/src/base/base-executor.untyped.js +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.schema.d.ts +14 -0
- package/dist/src/base/base-generator.schema.json +15 -0
- package/dist/src/base/base-generator.untyped.d.mts +5 -0
- package/dist/src/base/base-generator.untyped.d.ts +5 -0
- package/dist/src/base/base-generator.untyped.js +6 -0
- package/dist/src/base/base-generator.untyped.mjs +7 -0
- package/dist/src/base/cargo-base-executor.schema.d.ts +88 -0
- package/dist/src/base/cargo-base-executor.schema.json +86 -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.schema.d.ts +134 -0
- package/dist/src/base/typescript-build-executor.schema.json +176 -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.schema.d.ts +122 -0
- package/dist/src/base/typescript-library-generator.schema.json +119 -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/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/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/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/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 +10 -10
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkIIFXLZEHjs = require('./chunk-IIFXLZEH.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkCBVZ57E6js = require('./chunk-CBVZ57E6.js');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
var _chunkCQIILJEFjs = require('./chunk-CQIILJEF.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
var _chunkGZA2CV3Cjs = require('./chunk-GZA2CV3C.js');
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
30
|
+
|
|
31
|
+
// ../tsdown/src/build.ts
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
var _devkit = require('@nx/devkit');
|
|
37
|
+
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
38
|
+
var _fs = require('fs');
|
|
39
|
+
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
40
|
+
var _tsdown = require('tsdown');
|
|
41
|
+
|
|
42
|
+
// ../tsdown/src/clean.ts
|
|
43
|
+
|
|
44
|
+
async function cleanDirectories(name = "TSDown", directory, config) {
|
|
45
|
+
await _promises.rm.call(void 0, directory, { recursive: true, force: true });
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// ../tsdown/src/config.ts
|
|
49
|
+
function getDefaultOptions(config) {
|
|
50
|
+
return {
|
|
51
|
+
entry: ["./src/*.ts"],
|
|
52
|
+
platform: "node",
|
|
53
|
+
target: "esnext",
|
|
54
|
+
mode: "production",
|
|
55
|
+
dts: true,
|
|
56
|
+
unused: {
|
|
57
|
+
level: "error",
|
|
58
|
+
ignore: ["typescript"]
|
|
59
|
+
},
|
|
60
|
+
publint: true,
|
|
61
|
+
fixedExtension: true,
|
|
62
|
+
...config
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function toTSDownFormat(format) {
|
|
66
|
+
if (!format || Array.isArray(format) && format.length === 0) {
|
|
67
|
+
return ["cjs", "es"];
|
|
68
|
+
} else if (format === "esm") {
|
|
69
|
+
return "es";
|
|
70
|
+
} else if (Array.isArray(format)) {
|
|
71
|
+
return format.map((f) => f === "esm" ? "es" : f);
|
|
72
|
+
}
|
|
73
|
+
return format;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// ../tsdown/src/build.ts
|
|
77
|
+
var resolveOptions = async (userOptions) => {
|
|
78
|
+
const options = getDefaultOptions(userOptions);
|
|
79
|
+
const workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, options.projectRoot);
|
|
80
|
+
if (!workspaceRoot) {
|
|
81
|
+
throw new Error("Cannot find Nx workspace root");
|
|
82
|
+
}
|
|
83
|
+
const workspaceConfig = await _chunkCQIILJEFjs.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
84
|
+
workspaceRoot
|
|
85
|
+
});
|
|
86
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
87
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, "Build options resolution");
|
|
88
|
+
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
89
|
+
exitOnError: true
|
|
90
|
+
});
|
|
91
|
+
const projectJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
92
|
+
workspaceRoot,
|
|
93
|
+
options.projectRoot,
|
|
94
|
+
"project.json"
|
|
95
|
+
);
|
|
96
|
+
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
97
|
+
throw new Error("Cannot find project.json configuration");
|
|
98
|
+
}
|
|
99
|
+
const projectJsonFile = await _promises2.default.readFile(projectJsonPath, "utf8");
|
|
100
|
+
const projectJson = JSON.parse(projectJsonFile);
|
|
101
|
+
const projectName = projectJson.name;
|
|
102
|
+
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
103
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _ => _.projects, 'optionalAccess', _2 => _2[projectName]])) {
|
|
104
|
+
throw new Error(
|
|
105
|
+
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
109
|
+
workspaceRoot,
|
|
110
|
+
options.projectRoot,
|
|
111
|
+
"package.json"
|
|
112
|
+
);
|
|
113
|
+
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
114
|
+
throw new Error("Cannot find package.json configuration");
|
|
115
|
+
}
|
|
116
|
+
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
117
|
+
const sourceRoot = projectJson.sourceRoot || _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
118
|
+
const result = {
|
|
119
|
+
name: projectName,
|
|
120
|
+
mode: "production",
|
|
121
|
+
target: _chunkIIFXLZEHjs.DEFAULT_TARGET,
|
|
122
|
+
generatePackageJson: true,
|
|
123
|
+
outDir: _chunkCQDBLKPFjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
124
|
+
minify: !debug,
|
|
125
|
+
plugins: [],
|
|
126
|
+
assets: [],
|
|
127
|
+
dts: true,
|
|
128
|
+
shims: true,
|
|
129
|
+
silent: !debug,
|
|
130
|
+
logLevel: workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "performance" || workspaceConfig.logLevel === "debug" || workspaceConfig.logLevel === "trace" || workspaceConfig.logLevel === "all" ? "info" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel,
|
|
131
|
+
sourcemap: debug ? "inline" : false,
|
|
132
|
+
clean: false,
|
|
133
|
+
fixedExtension: true,
|
|
134
|
+
nodeProtocol: true,
|
|
135
|
+
tsconfig: _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
136
|
+
debug,
|
|
137
|
+
sourceRoot,
|
|
138
|
+
cwd: workspaceConfig.workspaceRoot,
|
|
139
|
+
entry: {
|
|
140
|
+
["index"]: _chunkCQDBLKPFjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
141
|
+
},
|
|
142
|
+
workspace: true,
|
|
143
|
+
...options,
|
|
144
|
+
treeshake: options.treeShaking !== false,
|
|
145
|
+
format: toTSDownFormat(options.format),
|
|
146
|
+
workspaceConfig,
|
|
147
|
+
projectName,
|
|
148
|
+
projectGraph,
|
|
149
|
+
projectConfigurations
|
|
150
|
+
};
|
|
151
|
+
result.env = _defu2.default.call(void 0,
|
|
152
|
+
options.env,
|
|
153
|
+
_chunkIIFXLZEHjs.getEnv.call(void 0, "tsdown", result)
|
|
154
|
+
);
|
|
155
|
+
stopwatch();
|
|
156
|
+
return result;
|
|
157
|
+
};
|
|
158
|
+
async function generatePackageJson(options) {
|
|
159
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
160
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
161
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, "Write package.json file");
|
|
162
|
+
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
163
|
+
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
164
|
+
throw new Error("Cannot find package.json configuration");
|
|
165
|
+
}
|
|
166
|
+
const packageJsonFile = await _promises2.default.readFile(
|
|
167
|
+
_chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
168
|
+
options.workspaceConfig.workspaceRoot,
|
|
169
|
+
options.projectRoot,
|
|
170
|
+
"package.json"
|
|
171
|
+
),
|
|
172
|
+
"utf8"
|
|
173
|
+
);
|
|
174
|
+
if (!packageJsonFile) {
|
|
175
|
+
throw new Error("Cannot find package.json configuration file");
|
|
176
|
+
}
|
|
177
|
+
let packageJson = JSON.parse(packageJsonFile);
|
|
178
|
+
packageJson = await _chunkIIFXLZEHjs.addPackageDependencies.call(void 0,
|
|
179
|
+
options.workspaceConfig.workspaceRoot,
|
|
180
|
+
options.projectRoot,
|
|
181
|
+
options.projectName,
|
|
182
|
+
packageJson
|
|
183
|
+
);
|
|
184
|
+
packageJson = await _chunkIIFXLZEHjs.addWorkspacePackageJsonFields.call(void 0,
|
|
185
|
+
options.workspaceConfig,
|
|
186
|
+
options.projectRoot,
|
|
187
|
+
options.sourceRoot,
|
|
188
|
+
options.projectName,
|
|
189
|
+
false,
|
|
190
|
+
packageJson
|
|
191
|
+
);
|
|
192
|
+
packageJson.exports ??= {};
|
|
193
|
+
packageJson.exports["./package.json"] ??= "./package.json";
|
|
194
|
+
packageJson.exports["."] ??= _chunkIIFXLZEHjs.addPackageJsonExport.call(void 0,
|
|
195
|
+
"index",
|
|
196
|
+
packageJson.type,
|
|
197
|
+
options.sourceRoot
|
|
198
|
+
);
|
|
199
|
+
let entry = [{ in: "./src/index.ts", out: "./src/index.ts" }];
|
|
200
|
+
if (options.entry) {
|
|
201
|
+
if (Array.isArray(options.entry)) {
|
|
202
|
+
entry = options.entry.map(
|
|
203
|
+
(entryPoint) => typeof entryPoint === "string" ? { in: entryPoint, out: entryPoint } : entryPoint
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
for (const entryPoint of entry) {
|
|
207
|
+
const split = entryPoint.out.split(".");
|
|
208
|
+
split.pop();
|
|
209
|
+
const entry2 = split.join(".").replaceAll("\\", "/");
|
|
210
|
+
packageJson.exports[`./${entry2}`] ??= _chunkIIFXLZEHjs.addPackageJsonExport.call(void 0,
|
|
211
|
+
entry2,
|
|
212
|
+
options.fixedExtension ? "fixed" : packageJson.type,
|
|
213
|
+
options.sourceRoot
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
packageJson.main = !options.fixedExtension && packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
218
|
+
packageJson.module = !options.fixedExtension && packageJson.type === "module" ? "./dist/index.js" : "./dist/index.mjs";
|
|
219
|
+
packageJson.types = `./dist/index.d.${!options.fixedExtension ? "ts" : "mts"}`;
|
|
220
|
+
packageJson.exports = Object.keys(packageJson.exports).reduce(
|
|
221
|
+
(ret, key) => {
|
|
222
|
+
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
223
|
+
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
224
|
+
}
|
|
225
|
+
return ret;
|
|
226
|
+
},
|
|
227
|
+
packageJson.exports
|
|
228
|
+
);
|
|
229
|
+
await _devkit.writeJsonFile.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
230
|
+
stopwatch();
|
|
231
|
+
}
|
|
232
|
+
return options;
|
|
233
|
+
}
|
|
234
|
+
async function executeTSDown(options) {
|
|
235
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
236
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
237
|
+
await _tsdown.build.call(void 0, {
|
|
238
|
+
...options,
|
|
239
|
+
entry: options.entry,
|
|
240
|
+
config: false
|
|
241
|
+
});
|
|
242
|
+
stopwatch();
|
|
243
|
+
return options;
|
|
244
|
+
}
|
|
245
|
+
async function copyBuildAssets(options) {
|
|
246
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0,
|
|
247
|
+
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
248
|
+
options.workspaceConfig
|
|
249
|
+
);
|
|
250
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
251
|
+
await _chunkIIFXLZEHjs.copyAssets.call(void 0,
|
|
252
|
+
options.workspaceConfig,
|
|
253
|
+
_nullishCoalesce(options.assets, () => ( [])),
|
|
254
|
+
options.outDir,
|
|
255
|
+
options.projectRoot,
|
|
256
|
+
options.sourceRoot,
|
|
257
|
+
true,
|
|
258
|
+
false
|
|
259
|
+
);
|
|
260
|
+
stopwatch();
|
|
261
|
+
return options;
|
|
262
|
+
}
|
|
263
|
+
async function reportResults(options) {
|
|
264
|
+
_chunkGZA2CV3Cjs.writeSuccess.call(void 0,
|
|
265
|
+
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
266
|
+
options.workspaceConfig
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
async function cleanOutputPath(options) {
|
|
270
|
+
if (options.clean !== false && options.workspaceConfig) {
|
|
271
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0,
|
|
272
|
+
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
273
|
+
options.workspaceConfig
|
|
274
|
+
);
|
|
275
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
276
|
+
await cleanDirectories(
|
|
277
|
+
options.name,
|
|
278
|
+
options.outDir,
|
|
279
|
+
options.workspaceConfig
|
|
280
|
+
);
|
|
281
|
+
stopwatch();
|
|
282
|
+
}
|
|
283
|
+
return options;
|
|
284
|
+
}
|
|
285
|
+
async function build(options) {
|
|
286
|
+
_chunkGZA2CV3Cjs.writeDebug.call(void 0, ` ${_chunkGZA2CV3Cjs.brandIcon.call(void 0, )} Executing Storm TSDown pipeline`);
|
|
287
|
+
const stopwatch = _chunkGZA2CV3Cjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
288
|
+
try {
|
|
289
|
+
const opts = Array.isArray(options) ? options : [options];
|
|
290
|
+
if (opts.length === 0) {
|
|
291
|
+
throw new Error("No build options were provided");
|
|
292
|
+
}
|
|
293
|
+
const resolved = await Promise.all(
|
|
294
|
+
opts.map(async (opt) => await resolveOptions(opt))
|
|
295
|
+
);
|
|
296
|
+
if (resolved.length > 0) {
|
|
297
|
+
await cleanOutputPath(resolved[0]);
|
|
298
|
+
await generatePackageJson(resolved[0]);
|
|
299
|
+
await Promise.all(
|
|
300
|
+
resolved.map(async (opt) => {
|
|
301
|
+
await executeTSDown(opt);
|
|
302
|
+
await copyBuildAssets(opt);
|
|
303
|
+
await reportResults(opt);
|
|
304
|
+
})
|
|
305
|
+
);
|
|
306
|
+
} else {
|
|
307
|
+
_chunkGZA2CV3Cjs.writeWarning.call(void 0,
|
|
308
|
+
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
_chunkGZA2CV3Cjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
312
|
+
} catch (error) {
|
|
313
|
+
_chunkGZA2CV3Cjs.writeFatal.call(void 0,
|
|
314
|
+
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
315
|
+
);
|
|
316
|
+
throw error;
|
|
317
|
+
} finally {
|
|
318
|
+
stopwatch();
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// src/executors/tsdown/executor.ts
|
|
323
|
+
async function tsdownExecutorFn(options, context, config) {
|
|
324
|
+
_chunkGZA2CV3Cjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
325
|
+
if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
|
|
326
|
+
throw new Error(
|
|
327
|
+
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
await build({
|
|
331
|
+
...options,
|
|
332
|
+
projectRoot: (
|
|
333
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
334
|
+
_optionalChain([context, 'access', _9 => _9.projectsConfigurations, 'access', _10 => _10.projects, 'optionalAccess', _11 => _11[context.projectName], 'access', _12 => _12.root])
|
|
335
|
+
),
|
|
336
|
+
name: context.projectName,
|
|
337
|
+
sourceRoot: _optionalChain([context, 'access', _13 => _13.projectsConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[context.projectName], 'optionalAccess', _16 => _16.sourceRoot]),
|
|
338
|
+
format: options.format,
|
|
339
|
+
platform: options.platform
|
|
340
|
+
});
|
|
341
|
+
return {
|
|
342
|
+
success: true
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
var executor_default = _chunkCBVZ57E6js.withRunExecutor.call(void 0,
|
|
346
|
+
"Storm TSDown build",
|
|
347
|
+
tsdownExecutorFn,
|
|
348
|
+
{
|
|
349
|
+
skipReadingConfig: false,
|
|
350
|
+
hooks: {
|
|
351
|
+
applyDefaultOptions: async (options) => {
|
|
352
|
+
options.entry ??= ["src/index.ts"];
|
|
353
|
+
options.outputPath ??= "dist/{projectRoot}";
|
|
354
|
+
options.tsconfig ??= "{projectRoot}/tsconfig.json";
|
|
355
|
+
return options;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
);
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
exports.tsdownExecutorFn = tsdownExecutorFn; exports.executor_default = executor_default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import {
|
|
2
|
+
findWorkspaceRoot
|
|
3
|
+
} from "./chunk-3J2CP54B.mjs";
|
|
4
|
+
|
|
5
|
+
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
6
|
+
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
7
|
+
let result = option;
|
|
8
|
+
if (!result) {
|
|
9
|
+
return result;
|
|
10
|
+
}
|
|
11
|
+
if (tokenParams) {
|
|
12
|
+
const optionKeys = Object.keys(tokenParams);
|
|
13
|
+
if (optionKeys.some((optionKey) => result.includes(`{${optionKey}}`))) {
|
|
14
|
+
for (const optionKey of optionKeys) {
|
|
15
|
+
if (result.includes(`{${optionKey}}`)) {
|
|
16
|
+
result = result.replaceAll(
|
|
17
|
+
`{${optionKey}}`,
|
|
18
|
+
tokenParams?.[optionKey] || ""
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (tokenParams.config) {
|
|
25
|
+
const configKeys = Object.keys(tokenParams.config);
|
|
26
|
+
if (configKeys.some((configKey) => result.includes(`{${configKey}}`))) {
|
|
27
|
+
for (const configKey of configKeys) {
|
|
28
|
+
if (result.includes(`{${configKey}}`)) {
|
|
29
|
+
result = result.replaceAll(
|
|
30
|
+
`{${configKey}}`,
|
|
31
|
+
tokenParams.config[configKey] || ""
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (result.includes("{workspaceRoot}")) {
|
|
38
|
+
result = result.replaceAll(
|
|
39
|
+
"{workspaceRoot}",
|
|
40
|
+
tokenParams.workspaceRoot ?? tokenParams.config?.workspaceRoot ?? findWorkspaceRoot()
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
var applyWorkspaceProjectTokens = (option, tokenParams) => {
|
|
46
|
+
return applyWorkspaceBaseTokens(option, tokenParams);
|
|
47
|
+
};
|
|
48
|
+
var applyWorkspaceTokens = async (options, tokenParams, tokenizerFn) => {
|
|
49
|
+
if (!options) {
|
|
50
|
+
return {};
|
|
51
|
+
}
|
|
52
|
+
const result = {};
|
|
53
|
+
for (const option of Object.keys(options)) {
|
|
54
|
+
if (typeof options[option] === "string") {
|
|
55
|
+
result[option] = await Promise.resolve(
|
|
56
|
+
tokenizerFn(options[option], tokenParams)
|
|
57
|
+
);
|
|
58
|
+
} else if (Array.isArray(options[option])) {
|
|
59
|
+
result[option] = await Promise.all(
|
|
60
|
+
options[option].map(
|
|
61
|
+
async (item) => typeof item === "string" ? await Promise.resolve(tokenizerFn(item, tokenParams)) : item
|
|
62
|
+
)
|
|
63
|
+
);
|
|
64
|
+
} else if (typeof options[option] === "object") {
|
|
65
|
+
result[option] = await applyWorkspaceTokens(
|
|
66
|
+
options[option],
|
|
67
|
+
tokenParams,
|
|
68
|
+
tokenizerFn
|
|
69
|
+
);
|
|
70
|
+
} else {
|
|
71
|
+
result[option] = options[option];
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return result;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
applyWorkspaceBaseTokens,
|
|
79
|
+
applyWorkspaceProjectTokens,
|
|
80
|
+
applyWorkspaceTokens
|
|
81
|
+
};
|
|
@@ -0,0 +1,163 @@
|
|
|
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; }// src/utils/cargo.ts
|
|
2
|
+
var _devkit = require('@nx/devkit');
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _child_process = require('child_process');
|
|
7
|
+
var _path = require('path');
|
|
8
|
+
var INVALID_CARGO_ARGS = [
|
|
9
|
+
"allFeatures",
|
|
10
|
+
"allTargets",
|
|
11
|
+
"main",
|
|
12
|
+
"outputPath",
|
|
13
|
+
"package",
|
|
14
|
+
"tsConfig"
|
|
15
|
+
];
|
|
16
|
+
var childProcess;
|
|
17
|
+
var buildCargoCommand = (baseCommand, options, context) => {
|
|
18
|
+
const args = [];
|
|
19
|
+
if (options.toolchain && options.toolchain !== "stable") {
|
|
20
|
+
args.push(`+${options.toolchain}`);
|
|
21
|
+
}
|
|
22
|
+
args.push(baseCommand);
|
|
23
|
+
for (const [key, value] of Object.entries(options).filter(
|
|
24
|
+
([key2]) => key2 && key2 !== "_"
|
|
25
|
+
)) {
|
|
26
|
+
if (key === "toolchain" || key === "release" || INVALID_CARGO_ARGS.includes(key)) {
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
if (typeof value === "boolean") {
|
|
30
|
+
if (value) {
|
|
31
|
+
args.push(`--${key}`);
|
|
32
|
+
}
|
|
33
|
+
} else if (Array.isArray(value)) {
|
|
34
|
+
for (const item of value) {
|
|
35
|
+
args.push(`--${key}`, String(item));
|
|
36
|
+
}
|
|
37
|
+
} else {
|
|
38
|
+
args.push(`--${key}`, String(value));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
if (context.projectName) {
|
|
42
|
+
args.push("-p", context.projectName);
|
|
43
|
+
}
|
|
44
|
+
if (options.allFeatures && !args.includes("--all-features")) {
|
|
45
|
+
args.push("--all-features");
|
|
46
|
+
}
|
|
47
|
+
if (options.allTargets && !args.includes("--all-targets")) {
|
|
48
|
+
args.push("--all-targets");
|
|
49
|
+
}
|
|
50
|
+
if (options.release && !args.includes("--profile")) {
|
|
51
|
+
args.push("--release");
|
|
52
|
+
}
|
|
53
|
+
if (options.outputPath && !args.includes("--target-dir")) {
|
|
54
|
+
args.push("--target-dir", options.outputPath);
|
|
55
|
+
}
|
|
56
|
+
return args;
|
|
57
|
+
};
|
|
58
|
+
async function cargoCommand(workspaceRoot, ...args) {
|
|
59
|
+
console.log(`> cargo ${args.join(" ")}`);
|
|
60
|
+
args.push("--color", "always");
|
|
61
|
+
return await Promise.resolve(runProcess(workspaceRoot, "cargo", ...args));
|
|
62
|
+
}
|
|
63
|
+
function cargoRunCommand(...args) {
|
|
64
|
+
console.log(`> cargo ${args.join(" ")}`);
|
|
65
|
+
return new Promise((resolve, reject) => {
|
|
66
|
+
childProcess = exports.childProcess = _child_process.spawn.call(void 0, "cargo", [...args, "--color", "always"], {
|
|
67
|
+
cwd: process.cwd(),
|
|
68
|
+
windowsHide: true,
|
|
69
|
+
detached: true,
|
|
70
|
+
shell: false,
|
|
71
|
+
stdio: ["inherit", "inherit", "inherit"]
|
|
72
|
+
});
|
|
73
|
+
process.on("exit", () => _optionalChain([childProcess, 'optionalAccess', _ => _.kill, 'call', _2 => _2()]));
|
|
74
|
+
process.on("SIGTERM", () => _optionalChain([childProcess, 'optionalAccess', _3 => _3.kill, 'call', _4 => _4()]));
|
|
75
|
+
process.on("SIGINT", () => _optionalChain([childProcess, 'optionalAccess', _5 => _5.kill, 'call', _6 => _6()]));
|
|
76
|
+
childProcess.on("error", (_err) => {
|
|
77
|
+
reject({ success: false });
|
|
78
|
+
});
|
|
79
|
+
childProcess.on("exit", (code) => {
|
|
80
|
+
childProcess = exports.childProcess = null;
|
|
81
|
+
if (code === 0) {
|
|
82
|
+
resolve({ success: true });
|
|
83
|
+
} else {
|
|
84
|
+
reject({ success: false });
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function cargoCommandSync(args = "", options) {
|
|
90
|
+
const normalizedOptions = {
|
|
91
|
+
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _7 => _7.stdio]), () => ( "inherit")),
|
|
92
|
+
env: {
|
|
93
|
+
...process.env,
|
|
94
|
+
..._optionalChain([options, 'optionalAccess', _8 => _8.env])
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
try {
|
|
98
|
+
return {
|
|
99
|
+
output: _child_process.execSync.call(void 0, `cargo ${args}`, {
|
|
100
|
+
encoding: "utf8",
|
|
101
|
+
windowsHide: true,
|
|
102
|
+
stdio: normalizedOptions.stdio,
|
|
103
|
+
env: normalizedOptions.env,
|
|
104
|
+
maxBuffer: 1024 * 1024 * 10
|
|
105
|
+
}),
|
|
106
|
+
success: true
|
|
107
|
+
};
|
|
108
|
+
} catch (e) {
|
|
109
|
+
return {
|
|
110
|
+
output: e.message,
|
|
111
|
+
success: false
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function cargoMetadata() {
|
|
116
|
+
const output = cargoCommandSync("metadata --format-version=1", {
|
|
117
|
+
stdio: "pipe"
|
|
118
|
+
});
|
|
119
|
+
if (!output.success) {
|
|
120
|
+
console.error("Failed to get cargo metadata");
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
return JSON.parse(output.output);
|
|
124
|
+
}
|
|
125
|
+
function isExternal(packageOrDep, workspaceRoot) {
|
|
126
|
+
const isRegistry = _nullishCoalesce(_optionalChain([packageOrDep, 'access', _9 => _9.source, 'optionalAccess', _10 => _10.startsWith, 'call', _11 => _11("registry+")]), () => ( false));
|
|
127
|
+
const isGit = _nullishCoalesce(_optionalChain([packageOrDep, 'access', _12 => _12.source, 'optionalAccess', _13 => _13.startsWith, 'call', _14 => _14("git+")]), () => ( false));
|
|
128
|
+
const isOutsideWorkspace = "path" in packageOrDep && _path.relative.call(void 0, workspaceRoot, packageOrDep.path).startsWith("..");
|
|
129
|
+
return isRegistry || isGit || isOutsideWorkspace;
|
|
130
|
+
}
|
|
131
|
+
function runProcess(workspaceRoot, processCmd, ...args) {
|
|
132
|
+
const metadata = cargoMetadata();
|
|
133
|
+
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _15 => _15.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, workspaceRoot, "dist")));
|
|
134
|
+
return new Promise((resolve) => {
|
|
135
|
+
if (process.env.VERCEL) {
|
|
136
|
+
return resolve({ success: true });
|
|
137
|
+
}
|
|
138
|
+
_child_process.execSync.call(void 0, `${processCmd} ${args.join(" ")}`, {
|
|
139
|
+
cwd: process.cwd(),
|
|
140
|
+
env: {
|
|
141
|
+
...process.env,
|
|
142
|
+
RUSTC_WRAPPER: "",
|
|
143
|
+
CARGO_TARGET_DIR: targetDir,
|
|
144
|
+
CARGO_BUILD_TARGET_DIR: targetDir
|
|
145
|
+
},
|
|
146
|
+
windowsHide: true,
|
|
147
|
+
stdio: ["inherit", "inherit", "inherit"]
|
|
148
|
+
});
|
|
149
|
+
resolve({ success: true });
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
exports.INVALID_CARGO_ARGS = INVALID_CARGO_ARGS; exports.childProcess = childProcess; exports.buildCargoCommand = buildCargoCommand; exports.cargoCommand = cargoCommand; exports.cargoRunCommand = cargoRunCommand; exports.cargoCommandSync = cargoCommandSync; exports.cargoMetadata = cargoMetadata; exports.isExternal = isExternal; exports.runProcess = runProcess;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/base/base-generator.untyped.ts
|
|
2
|
+
import { defineUntypedSchema } from "untyped";
|
|
3
|
+
var base_generator_untyped_default = defineUntypedSchema({
|
|
4
|
+
$schema: {
|
|
5
|
+
id: "BaseGeneratorSchema",
|
|
6
|
+
title: "Base Generator",
|
|
7
|
+
description: "A type definition for the base Generator schema"
|
|
8
|
+
},
|
|
9
|
+
directory: {
|
|
10
|
+
$schema: {
|
|
11
|
+
title: "Directory",
|
|
12
|
+
type: "string",
|
|
13
|
+
description: "The directory to create the library in"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
base_generator_untyped_default
|
|
20
|
+
};
|