@storm-software/workspace-tools 1.295.86 → 1.296.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-3WCWA5OH.mjs +105 -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-54BBSJHK.mjs +40 -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-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-C3NYIWL4.mjs +10 -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-DO2X7OZO.js +1 -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-FQX7ZBQS.mjs +32 -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-GZA2CV3C.js +402 -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-J4MHHL63.mjs +253 -0
- package/dist/chunk-JDDKEYTF.js +469 -0
- package/dist/chunk-JIWQM3MH.mjs +77 -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-MKJITWLN.js +40 -0
- package/dist/chunk-MNA3AU4B.mjs +49 -0
- package/dist/chunk-NIETCJS4.mjs +82 -0
- package/dist/chunk-NUGNYGBF.js +105 -0
- package/dist/chunk-O7Z2YGFU.js +52 -0
- package/dist/chunk-OKSECMVK.js +32 -0
- package/dist/chunk-OL6ZWI4R.mjs +514 -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-RLJFRJ2F.js +514 -0
- package/dist/chunk-S2KOD2HL.mjs +128 -0
- package/dist/chunk-SAIDGUHG.mjs +0 -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-XCVH63OO.mjs +0 -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-BAeunL4c.d.mts +143 -0
- package/dist/executor-BF7_LjrR.d.mts +75 -0
- package/dist/executor-BF7_LjrR.d.ts +75 -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 +67 -0
- package/dist/executors.mjs +68 -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 +62 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +303 -0
- package/dist/index.mjs +304 -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 +16 -0
- package/dist/src/executors/npm-publish/executor.mjs +17 -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/github.d.mts +19 -0
- package/dist/src/utils/github.d.ts +19 -0
- package/dist/src/utils/github.js +7 -0
- package/dist/src/utils/github.mjs +8 -0
- package/dist/src/utils/index.d.mts +23 -0
- package/dist/src/utils/index.d.ts +23 -0
- package/dist/src/utils/index.js +157 -0
- package/dist/src/utils/index.mjs +158 -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 +25 -15
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_CSS_BANNER,
|
|
3
|
+
DEFAULT_JS_BANNER,
|
|
4
|
+
addPackageDependencies,
|
|
5
|
+
addWorkspacePackageJsonFields,
|
|
6
|
+
copyAssets,
|
|
7
|
+
getEnv
|
|
8
|
+
} from "./chunk-BAYA5SVP.mjs";
|
|
9
|
+
import {
|
|
10
|
+
withRunExecutor
|
|
11
|
+
} from "./chunk-35ERFW7I.mjs";
|
|
12
|
+
import {
|
|
13
|
+
getWorkspaceConfig
|
|
14
|
+
} from "./chunk-35G4LHK2.mjs";
|
|
15
|
+
import {
|
|
16
|
+
brandIcon,
|
|
17
|
+
formatLogMessage,
|
|
18
|
+
getStopwatch,
|
|
19
|
+
writeDebug,
|
|
20
|
+
writeError,
|
|
21
|
+
writeFatal,
|
|
22
|
+
writeInfo,
|
|
23
|
+
writeSuccess,
|
|
24
|
+
writeWarning
|
|
25
|
+
} from "./chunk-4AR5RJMF.mjs";
|
|
26
|
+
import {
|
|
27
|
+
joinPaths
|
|
28
|
+
} from "./chunk-TBW5MCN6.mjs";
|
|
29
|
+
|
|
30
|
+
// ../esbuild/src/assets.ts
|
|
31
|
+
async function copyBuildAssets(context) {
|
|
32
|
+
if (!context.result?.errors.length && context.options.assets?.length) {
|
|
33
|
+
writeDebug(
|
|
34
|
+
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
35
|
+
context.workspaceConfig
|
|
36
|
+
);
|
|
37
|
+
const stopwatch = getStopwatch(`${context.options.name} asset copy`);
|
|
38
|
+
await copyAssets(
|
|
39
|
+
context.workspaceConfig,
|
|
40
|
+
context.options.assets ?? [],
|
|
41
|
+
context.outputPath,
|
|
42
|
+
context.options.projectRoot,
|
|
43
|
+
context.sourceRoot,
|
|
44
|
+
true,
|
|
45
|
+
false
|
|
46
|
+
);
|
|
47
|
+
stopwatch();
|
|
48
|
+
}
|
|
49
|
+
return context;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// ../esbuild/src/clean.ts
|
|
53
|
+
import { rm } from "node:fs/promises";
|
|
54
|
+
async function cleanDirectories(directory) {
|
|
55
|
+
await rm(directory, { recursive: true, force: true });
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// ../esbuild/src/context.ts
|
|
59
|
+
import {
|
|
60
|
+
createProjectGraphAsync,
|
|
61
|
+
readProjectsConfigurationFromProjectGraph
|
|
62
|
+
} from "@nx/devkit";
|
|
63
|
+
import defu from "defu";
|
|
64
|
+
import { existsSync } from "node:fs";
|
|
65
|
+
import hf from "node:fs/promises";
|
|
66
|
+
import { findWorkspaceRoot } from "nx/src/utils/find-workspace-root";
|
|
67
|
+
|
|
68
|
+
// ../esbuild/src/config.ts
|
|
69
|
+
var DEFAULT_BUILD_OPTIONS = {
|
|
70
|
+
platform: "node",
|
|
71
|
+
target: "node22",
|
|
72
|
+
format: "esm",
|
|
73
|
+
mode: "production",
|
|
74
|
+
generatePackageJson: true,
|
|
75
|
+
includeSrc: false,
|
|
76
|
+
keepNames: true,
|
|
77
|
+
metafile: false,
|
|
78
|
+
treeshake: true,
|
|
79
|
+
splitting: true,
|
|
80
|
+
shims: false,
|
|
81
|
+
watch: false,
|
|
82
|
+
bundle: true,
|
|
83
|
+
distDir: "dist",
|
|
84
|
+
loader: {
|
|
85
|
+
".aac": "file",
|
|
86
|
+
".css": "file",
|
|
87
|
+
".eot": "file",
|
|
88
|
+
".flac": "file",
|
|
89
|
+
".gif": "file",
|
|
90
|
+
".jpeg": "file",
|
|
91
|
+
".jpg": "file",
|
|
92
|
+
".mp3": "file",
|
|
93
|
+
".mp4": "file",
|
|
94
|
+
".ogg": "file",
|
|
95
|
+
".otf": "file",
|
|
96
|
+
".png": "file",
|
|
97
|
+
".svg": "file",
|
|
98
|
+
".ttf": "file",
|
|
99
|
+
".wav": "file",
|
|
100
|
+
".webm": "file",
|
|
101
|
+
".webp": "file",
|
|
102
|
+
".woff": "file",
|
|
103
|
+
".woff2": "file"
|
|
104
|
+
},
|
|
105
|
+
banner: {
|
|
106
|
+
js: DEFAULT_JS_BANNER,
|
|
107
|
+
css: DEFAULT_CSS_BANNER
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// ../esbuild/src/context.ts
|
|
112
|
+
async function resolveContext(userOptions) {
|
|
113
|
+
const projectRoot = userOptions.projectRoot;
|
|
114
|
+
const workspaceRoot = findWorkspaceRoot(projectRoot);
|
|
115
|
+
if (!workspaceRoot) {
|
|
116
|
+
throw new Error("Cannot find Nx workspace root");
|
|
117
|
+
}
|
|
118
|
+
const workspaceConfig = await getWorkspaceConfig(true, {
|
|
119
|
+
workspaceRoot: workspaceRoot.dir
|
|
120
|
+
});
|
|
121
|
+
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
122
|
+
const stopwatch = getStopwatch("Build options resolution");
|
|
123
|
+
const projectGraph = await createProjectGraphAsync({
|
|
124
|
+
exitOnError: true
|
|
125
|
+
});
|
|
126
|
+
const projectJsonPath = joinPaths(
|
|
127
|
+
workspaceRoot.dir,
|
|
128
|
+
projectRoot,
|
|
129
|
+
"project.json"
|
|
130
|
+
);
|
|
131
|
+
if (!existsSync(projectJsonPath)) {
|
|
132
|
+
throw new Error("Cannot find project.json configuration");
|
|
133
|
+
}
|
|
134
|
+
const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
|
|
135
|
+
const projectJson = JSON.parse(projectJsonFile);
|
|
136
|
+
const projectName = projectJson.name || userOptions.name;
|
|
137
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
138
|
+
if (!projectConfigurations?.projects?.[projectName]) {
|
|
139
|
+
throw new Error(
|
|
140
|
+
"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."
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
const options = defu(userOptions, DEFAULT_BUILD_OPTIONS);
|
|
144
|
+
options.name ??= projectName;
|
|
145
|
+
const packageJsonPath = joinPaths(
|
|
146
|
+
workspaceRoot.dir,
|
|
147
|
+
options.projectRoot,
|
|
148
|
+
"package.json"
|
|
149
|
+
);
|
|
150
|
+
if (!existsSync(packageJsonPath)) {
|
|
151
|
+
throw new Error("Cannot find package.json configuration");
|
|
152
|
+
}
|
|
153
|
+
const env = getEnv("esbuild", options);
|
|
154
|
+
const define = defu(options.define ?? {}, env ?? {});
|
|
155
|
+
const resolvedOptions = {
|
|
156
|
+
...options,
|
|
157
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths(workspaceRoot.dir, projectRoot, "tsconfig.json"),
|
|
158
|
+
metafile: userOptions.mode === "development",
|
|
159
|
+
clean: false,
|
|
160
|
+
env,
|
|
161
|
+
define: {
|
|
162
|
+
STORM_FORMAT: JSON.stringify(options.format),
|
|
163
|
+
...Object.keys(define).filter((key) => define[key] !== void 0).reduce((res, key) => {
|
|
164
|
+
const value = JSON.stringify(define[key]);
|
|
165
|
+
const safeKey = key.replaceAll("(", "").replaceAll(")", "");
|
|
166
|
+
return {
|
|
167
|
+
...res,
|
|
168
|
+
[`process.env.${safeKey}`]: value,
|
|
169
|
+
[`import.meta.env.${safeKey}`]: value
|
|
170
|
+
};
|
|
171
|
+
}, {})
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
stopwatch();
|
|
175
|
+
const context = {
|
|
176
|
+
options: resolvedOptions,
|
|
177
|
+
clean: userOptions.clean !== false,
|
|
178
|
+
workspaceConfig,
|
|
179
|
+
projectConfigurations,
|
|
180
|
+
projectName,
|
|
181
|
+
projectGraph,
|
|
182
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || joinPaths(resolvedOptions.projectRoot, "src"),
|
|
183
|
+
outputPath: resolvedOptions.outputPath || joinPaths(
|
|
184
|
+
workspaceConfig.workspaceRoot,
|
|
185
|
+
"dist",
|
|
186
|
+
resolvedOptions.projectRoot
|
|
187
|
+
),
|
|
188
|
+
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
189
|
+
};
|
|
190
|
+
context.options.esbuildPlugins = [...context.options.esbuildPlugins ?? []];
|
|
191
|
+
if (context.options.verbose) {
|
|
192
|
+
writeDebug(
|
|
193
|
+
` \u2699\uFE0F Build options resolved:
|
|
194
|
+
|
|
195
|
+
${formatLogMessage(context.options)}`,
|
|
196
|
+
workspaceConfig
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
return context;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// ../esbuild/src/package-json.ts
|
|
203
|
+
import { writeJsonFile } from "@nx/devkit";
|
|
204
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
205
|
+
import hf2 from "node:fs/promises";
|
|
206
|
+
async function generatePackageJson(context) {
|
|
207
|
+
if (context.options.generatePackageJson !== false && existsSync2(joinPaths(context.options.projectRoot, "package.json"))) {
|
|
208
|
+
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
209
|
+
const stopwatch = getStopwatch("Write package.json file");
|
|
210
|
+
const packageJsonPath = joinPaths(
|
|
211
|
+
context.options.projectRoot,
|
|
212
|
+
"project.json"
|
|
213
|
+
);
|
|
214
|
+
if (!existsSync2(packageJsonPath)) {
|
|
215
|
+
throw new Error("Cannot find package.json configuration");
|
|
216
|
+
}
|
|
217
|
+
const packageJsonFile = await hf2.readFile(
|
|
218
|
+
joinPaths(
|
|
219
|
+
context.workspaceConfig.workspaceRoot,
|
|
220
|
+
context.options.projectRoot,
|
|
221
|
+
"package.json"
|
|
222
|
+
),
|
|
223
|
+
"utf8"
|
|
224
|
+
);
|
|
225
|
+
let packageJson = JSON.parse(packageJsonFile);
|
|
226
|
+
if (!packageJson) {
|
|
227
|
+
throw new Error("Cannot find package.json configuration file");
|
|
228
|
+
}
|
|
229
|
+
packageJson = await addPackageDependencies(
|
|
230
|
+
context.workspaceConfig.workspaceRoot,
|
|
231
|
+
context.options.projectRoot,
|
|
232
|
+
context.projectName,
|
|
233
|
+
packageJson
|
|
234
|
+
);
|
|
235
|
+
packageJson = await addWorkspacePackageJsonFields(
|
|
236
|
+
context.workspaceConfig,
|
|
237
|
+
context.options.projectRoot,
|
|
238
|
+
context.sourceRoot,
|
|
239
|
+
context.projectName,
|
|
240
|
+
false,
|
|
241
|
+
packageJson
|
|
242
|
+
);
|
|
243
|
+
if (context.options.entry) {
|
|
244
|
+
packageJson.exports ??= {};
|
|
245
|
+
packageJson.exports["./package.json"] ??= "./package.json";
|
|
246
|
+
const entryPoints = Array.isArray(context.options.entry) ? context.options.entry : Object.keys(context.options.entry);
|
|
247
|
+
if (entryPoints.length > 0) {
|
|
248
|
+
const defaultEntry = entryPoints.includes("index") ? `.${context.options.distDir ? `/${context.options.distDir}` : ""}/index` : `.${context.options.distDir ? `/${context.options.distDir}` : ""}/${entryPoints[0]}`;
|
|
249
|
+
const isEsm = Array.isArray(context.options.format) ? context.options.format.includes("esm") : context.options.format === "esm";
|
|
250
|
+
const isCjs = Array.isArray(context.options.format) ? context.options.format.includes("cjs") : context.options.format === "cjs";
|
|
251
|
+
const isDts = context.options.dts || context.options.experimentalDts;
|
|
252
|
+
packageJson.exports["."] ??= `${defaultEntry}.${isEsm ? "mjs" : isCjs ? "cjs" : "js"}`;
|
|
253
|
+
for (const entryPoint of entryPoints) {
|
|
254
|
+
packageJson.exports[`./${entryPoint}`] ??= {};
|
|
255
|
+
if (isEsm) {
|
|
256
|
+
if (isDts) {
|
|
257
|
+
packageJson.exports[`./${entryPoint}`].import = {
|
|
258
|
+
types: `./dist/${entryPoint}.d.mts`,
|
|
259
|
+
default: `./dist/${entryPoint}.mjs`
|
|
260
|
+
};
|
|
261
|
+
} else {
|
|
262
|
+
packageJson.exports[`./${entryPoint}`].import = `./dist/${entryPoint}.mjs`;
|
|
263
|
+
}
|
|
264
|
+
if (isDts) {
|
|
265
|
+
packageJson.exports[`./${entryPoint}`].default = {
|
|
266
|
+
types: `./dist/${entryPoint}.d.mts`,
|
|
267
|
+
default: `./dist/${entryPoint}.mjs`
|
|
268
|
+
};
|
|
269
|
+
} else {
|
|
270
|
+
packageJson.exports[`./${entryPoint}`].default = `./dist/${entryPoint}.mjs`;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
if (isCjs) {
|
|
274
|
+
if (isDts) {
|
|
275
|
+
packageJson.exports[`./${entryPoint}`].require = {
|
|
276
|
+
types: `./dist/${entryPoint}.d.cts`,
|
|
277
|
+
default: `./dist/${entryPoint}.cjs`
|
|
278
|
+
};
|
|
279
|
+
} else {
|
|
280
|
+
packageJson.exports[`./${entryPoint}`].require = `./dist/${entryPoint}.cjs`;
|
|
281
|
+
}
|
|
282
|
+
if (!isEsm) {
|
|
283
|
+
if (isDts) {
|
|
284
|
+
packageJson.exports[`./${entryPoint}`].default = {
|
|
285
|
+
types: `./dist/${entryPoint}.d.cts`,
|
|
286
|
+
default: `./dist/${entryPoint}.cjs`
|
|
287
|
+
};
|
|
288
|
+
} else {
|
|
289
|
+
packageJson.exports[`./${entryPoint}`].default = `./dist/${entryPoint}.cjs`;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
if (!isEsm && !isCjs) {
|
|
294
|
+
if (isDts) {
|
|
295
|
+
packageJson.exports[`./${entryPoint}`].default = {
|
|
296
|
+
types: `./dist/${entryPoint}.d.ts`,
|
|
297
|
+
default: `./dist/${entryPoint}.js`
|
|
298
|
+
};
|
|
299
|
+
} else {
|
|
300
|
+
packageJson.exports[`./${entryPoint}`].default = `./dist/${entryPoint}.js`;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
if (isEsm) {
|
|
305
|
+
packageJson.module = `${defaultEntry}.mjs`;
|
|
306
|
+
} else {
|
|
307
|
+
packageJson.main = `${defaultEntry}.cjs`;
|
|
308
|
+
}
|
|
309
|
+
if (isDts) {
|
|
310
|
+
packageJson.types = `${defaultEntry}.d.${isEsm ? "mts" : isCjs ? "cts" : "ts"}`;
|
|
311
|
+
}
|
|
312
|
+
packageJson.exports = Object.keys(packageJson.exports).reduce(
|
|
313
|
+
(ret, key) => {
|
|
314
|
+
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
315
|
+
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
316
|
+
}
|
|
317
|
+
return ret;
|
|
318
|
+
},
|
|
319
|
+
packageJson.exports
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
await writeJsonFile(
|
|
324
|
+
joinPaths(context.outputPath, "package.json"),
|
|
325
|
+
packageJson
|
|
326
|
+
);
|
|
327
|
+
stopwatch();
|
|
328
|
+
}
|
|
329
|
+
return context;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// ../tsup/src/index.ts
|
|
333
|
+
import { build as tsup } from "tsup";
|
|
334
|
+
async function build(options) {
|
|
335
|
+
if (!options.silent) {
|
|
336
|
+
writeDebug(
|
|
337
|
+
` \u{1F680} Running ${options.name || "tsup"} build`,
|
|
338
|
+
options.workspaceConfig
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
const stopwatch = getStopwatch(`${options.name || "tsup"} build`);
|
|
342
|
+
await tsup(options);
|
|
343
|
+
if (!options.silent) {
|
|
344
|
+
stopwatch();
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
// ../esbuild/src/tsup.ts
|
|
349
|
+
async function executeTsup(context) {
|
|
350
|
+
writeDebug(
|
|
351
|
+
` \u{1F680} Running ${context.options.name} build`,
|
|
352
|
+
context.workspaceConfig
|
|
353
|
+
);
|
|
354
|
+
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
355
|
+
await build({
|
|
356
|
+
...context.options,
|
|
357
|
+
outDir: context.options.distDir ? joinPaths(context.outputPath, context.options.distDir) : context.outputPath,
|
|
358
|
+
workspaceConfig: context.workspaceConfig
|
|
359
|
+
});
|
|
360
|
+
stopwatch();
|
|
361
|
+
return context;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
// ../esbuild/src/build.ts
|
|
365
|
+
async function reportResults(context) {
|
|
366
|
+
if (context.result?.errors.length === 0) {
|
|
367
|
+
if (context.result.warnings.length > 0) {
|
|
368
|
+
writeWarning(
|
|
369
|
+
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
370
|
+
context.workspaceConfig
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
writeSuccess(
|
|
374
|
+
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
375
|
+
context.workspaceConfig
|
|
376
|
+
);
|
|
377
|
+
} else if (context.result?.errors && context.result?.errors.length > 0) {
|
|
378
|
+
writeError(
|
|
379
|
+
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
380
|
+
context.workspaceConfig
|
|
381
|
+
);
|
|
382
|
+
throw new Error(
|
|
383
|
+
`The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
async function cleanOutputPath(context) {
|
|
388
|
+
if (context.clean !== false && context.outputPath) {
|
|
389
|
+
writeDebug(
|
|
390
|
+
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
391
|
+
context.workspaceConfig
|
|
392
|
+
);
|
|
393
|
+
const stopwatch = getStopwatch(`${context.options.name} output clean`);
|
|
394
|
+
await cleanDirectories(context.outputPath);
|
|
395
|
+
stopwatch();
|
|
396
|
+
}
|
|
397
|
+
return context;
|
|
398
|
+
}
|
|
399
|
+
async function build2(options) {
|
|
400
|
+
writeDebug(` ${brandIcon()} Executing Storm ESBuild pipeline`);
|
|
401
|
+
const stopwatch = getStopwatch("ESBuild pipeline");
|
|
402
|
+
try {
|
|
403
|
+
const opts = Array.isArray(options) ? options : [options];
|
|
404
|
+
if (opts.length === 0) {
|
|
405
|
+
throw new Error("No build options were provided");
|
|
406
|
+
}
|
|
407
|
+
const context = await resolveContext(options);
|
|
408
|
+
await cleanOutputPath(context);
|
|
409
|
+
await Promise.all([
|
|
410
|
+
// dependencyCheck(context.options),
|
|
411
|
+
generatePackageJson(context),
|
|
412
|
+
copyBuildAssets(context),
|
|
413
|
+
executeTsup(context)
|
|
414
|
+
]);
|
|
415
|
+
await reportResults(context);
|
|
416
|
+
writeSuccess(" \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
417
|
+
} catch (error) {
|
|
418
|
+
writeFatal(
|
|
419
|
+
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
420
|
+
);
|
|
421
|
+
throw error;
|
|
422
|
+
} finally {
|
|
423
|
+
stopwatch();
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
// src/executors/esbuild/executor.ts
|
|
428
|
+
async function esbuildExecutorFn(options, context, config) {
|
|
429
|
+
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
430
|
+
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) {
|
|
431
|
+
throw new Error(
|
|
432
|
+
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
433
|
+
);
|
|
434
|
+
}
|
|
435
|
+
await build2({
|
|
436
|
+
...options,
|
|
437
|
+
projectRoot: (
|
|
438
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
439
|
+
context.projectsConfigurations.projects?.[context.projectName].root
|
|
440
|
+
),
|
|
441
|
+
name: context.projectName,
|
|
442
|
+
sourceRoot: context.projectsConfigurations.projects?.[context.projectName]?.sourceRoot,
|
|
443
|
+
format: options.format,
|
|
444
|
+
platform: options.platform
|
|
445
|
+
});
|
|
446
|
+
return {
|
|
447
|
+
success: true
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
var executor_default = withRunExecutor(
|
|
451
|
+
"Storm ESBuild build",
|
|
452
|
+
esbuildExecutorFn,
|
|
453
|
+
{
|
|
454
|
+
skipReadingConfig: false,
|
|
455
|
+
hooks: {
|
|
456
|
+
applyDefaultOptions: async (options) => {
|
|
457
|
+
options.entry ??= ["src/index.ts"];
|
|
458
|
+
options.outputPath ??= "dist/{projectRoot}";
|
|
459
|
+
options.tsconfig ??= "{projectRoot}/tsconfig.json";
|
|
460
|
+
return options;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
);
|
|
465
|
+
|
|
466
|
+
export {
|
|
467
|
+
esbuildExecutorFn,
|
|
468
|
+
executor_default
|
|
469
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/base/base-executor.untyped.ts
|
|
2
|
+
import { defineUntypedSchema } from "untyped";
|
|
3
|
+
var base_executor_untyped_default = defineUntypedSchema({
|
|
4
|
+
$schema: {
|
|
5
|
+
id: "baseExecutor",
|
|
6
|
+
title: "Base Executor",
|
|
7
|
+
description: "A base type definition for an executor schema"
|
|
8
|
+
},
|
|
9
|
+
outputPath: {
|
|
10
|
+
$schema: {
|
|
11
|
+
title: "Output Path",
|
|
12
|
+
type: "string",
|
|
13
|
+
format: "path",
|
|
14
|
+
description: "The output path for the build"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
base_executor_untyped_default
|
|
21
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk32KQVUCFjs = require('./chunk-32KQVUCF.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkCBVZ57E6js = require('./chunk-CBVZ57E6.js');
|
|
8
|
+
|
|
9
|
+
// src/executors/cargo-clippy/executor.ts
|
|
10
|
+
async function cargoClippyExecutor(options, context) {
|
|
11
|
+
const command = _chunk32KQVUCFjs.buildCargoCommand.call(void 0, "clippy", options, context);
|
|
12
|
+
return await _chunk32KQVUCFjs.cargoCommand.call(void 0, context.root, ...command);
|
|
13
|
+
}
|
|
14
|
+
var executor_default = _chunkCBVZ57E6js.withRunExecutor.call(void 0,
|
|
15
|
+
"Cargo - Clippy",
|
|
16
|
+
cargoClippyExecutor,
|
|
17
|
+
{
|
|
18
|
+
skipReadingConfig: false,
|
|
19
|
+
hooks: {
|
|
20
|
+
applyDefaultOptions: (options) => {
|
|
21
|
+
options.toolchain ??= "stable";
|
|
22
|
+
options.fix ??= false;
|
|
23
|
+
return options;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.cargoClippyExecutor = cargoClippyExecutor; exports.executor_default = executor_default;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import * as _nx_devkit from '@nx/devkit';
|
|
2
|
+
import { ExecutorContext } from '@nx/devkit';
|
|
3
|
+
import { S as StormWorkspaceConfig } from './types-Dug-2iKz.mjs';
|
|
4
|
+
|
|
5
|
+
// Generated by @storm-software/untyped
|
|
6
|
+
// Do not edit this file directly
|
|
7
|
+
|
|
8
|
+
interface TSDownExecutorSchema {
|
|
9
|
+
/**
|
|
10
|
+
* Output Path
|
|
11
|
+
*
|
|
12
|
+
* The output path for the build
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* @format path
|
|
16
|
+
*/
|
|
17
|
+
outputPath?: string,
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Entry File(s)
|
|
21
|
+
*
|
|
22
|
+
* The entry file or files to build
|
|
23
|
+
*
|
|
24
|
+
* @default ["{sourceRoot}/index.ts"]
|
|
25
|
+
*
|
|
26
|
+
* @format path
|
|
27
|
+
*/
|
|
28
|
+
entry?: Array<string>,
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* TSConfig Path
|
|
32
|
+
*
|
|
33
|
+
* The path to the tsconfig file
|
|
34
|
+
*
|
|
35
|
+
* @default "{projectRoot}/tsconfig.json"
|
|
36
|
+
*
|
|
37
|
+
* @format path
|
|
38
|
+
*/
|
|
39
|
+
tsconfig?: string,
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Bundle
|
|
43
|
+
*
|
|
44
|
+
* Bundle the output
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
bundle?: boolean,
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Minify
|
|
51
|
+
*
|
|
52
|
+
* Minify the output
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
minify?: boolean,
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Debug
|
|
59
|
+
*
|
|
60
|
+
* Debug the output
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
debug?: boolean,
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Sourcemap
|
|
67
|
+
*
|
|
68
|
+
* Generate a sourcemap
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
sourcemap?: boolean,
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Silent
|
|
75
|
+
*
|
|
76
|
+
* Should the build run silently - only report errors back to the user
|
|
77
|
+
*
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
silent?: boolean,
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Target
|
|
84
|
+
*
|
|
85
|
+
* The target to build
|
|
86
|
+
*
|
|
87
|
+
* @default "esnext"
|
|
88
|
+
*
|
|
89
|
+
* @enum es3,es5,es6,es2015,es2016,es2017,es2018,es2019,es2020,es2021,es2022,es2023,es2024,esnext,node12,node14,node16,node18,node20,node22,browser,chrome58,chrome59,chrome60
|
|
90
|
+
*/
|
|
91
|
+
target?: string,
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Format
|
|
95
|
+
*
|
|
96
|
+
* The format to build
|
|
97
|
+
*
|
|
98
|
+
* @default ["cjs","esm"]
|
|
99
|
+
*/
|
|
100
|
+
format?: Array<string>,
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Platform
|
|
104
|
+
*
|
|
105
|
+
* The platform to build
|
|
106
|
+
*
|
|
107
|
+
* @default "neutral"
|
|
108
|
+
*
|
|
109
|
+
* @enum neutral,node,browser
|
|
110
|
+
*/
|
|
111
|
+
platform?: string,
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* External
|
|
115
|
+
*
|
|
116
|
+
* The external dependencies
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
external?: Array<any>,
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Define
|
|
123
|
+
*
|
|
124
|
+
* The define values
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
define?: Record<string, string>,
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Environment Variables
|
|
131
|
+
*
|
|
132
|
+
* The environment variable values
|
|
133
|
+
*
|
|
134
|
+
*/
|
|
135
|
+
env?: Record<string, string>,
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
declare function tsdownExecutorFn(options: TSDownExecutorSchema, context: ExecutorContext, config?: StormWorkspaceConfig): Promise<{
|
|
139
|
+
success: boolean;
|
|
140
|
+
}>;
|
|
141
|
+
declare const _default: _nx_devkit.PromiseExecutor<TSDownExecutorSchema>;
|
|
142
|
+
|
|
143
|
+
export { type TSDownExecutorSchema as T, _default as _, tsdownExecutorFn as t };
|