@storm-software/workspace-tools 1.228.1 → 1.229.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/chunk-2EGD2QSN.js +183 -0
- package/dist/chunk-2JA7WAH7.mjs +93 -0
- package/dist/chunk-34LSWMWV.mjs +20 -0
- package/dist/chunk-35B5C22H.mjs +50 -0
- package/dist/chunk-36FMHXUD.js +988 -0
- package/dist/chunk-3GQAWCBQ.js +13 -0
- package/dist/chunk-3GVBGSCQ.js +86 -0
- package/dist/chunk-3IZ3O4OK.js +30 -0
- package/dist/chunk-3J53KHVV.js +1 -0
- package/dist/chunk-3ORCJSUT.mjs +37 -0
- package/dist/chunk-45GU4HW2.js +267 -0
- package/dist/chunk-4NOLUAQN.js +43 -0
- package/dist/chunk-5CPYNJT2.js +61 -0
- package/dist/chunk-5MKQX2FE.js +82 -0
- package/dist/chunk-6267MSX4.mjs +118 -0
- package/dist/chunk-66TYTM73.mjs +102 -0
- package/dist/chunk-6B6IVIMQ.js +31 -0
- package/dist/chunk-6QO3KMZA.js +93 -0
- package/dist/chunk-6TSAUSG4.mjs +18 -0
- package/dist/chunk-6YZ3OUJB.mjs +0 -0
- package/dist/chunk-6ZQ3QYXH.mjs +93 -0
- package/dist/chunk-7AXFMX2T.js +37 -0
- package/dist/chunk-7CJRMBX3.js +20 -0
- package/dist/chunk-7MZQTO7J.js +726 -0
- package/dist/chunk-7YRW5HNX.js +102 -0
- package/dist/chunk-B3KIYNGT.mjs +88 -0
- package/dist/chunk-B7LWGAUI.js +50 -0
- package/dist/chunk-BO44O7D2.mjs +43 -0
- package/dist/chunk-BWFTYFWM.js +59 -0
- package/dist/chunk-CT7IVPJY.js +384 -0
- package/dist/chunk-CZJW5H5T.mjs +183 -0
- package/dist/chunk-DGC5L3Z7.mjs +22 -0
- package/dist/chunk-DHGZTMND.js +26 -0
- package/dist/chunk-DIODSFGH.js +1045 -0
- package/dist/chunk-DLO5NZQI.mjs +1046 -0
- package/dist/chunk-DLQLZTCZ.mjs +69 -0
- package/dist/chunk-DMUTOQCB.mjs +82 -0
- package/dist/chunk-EK75QNMS.mjs +40 -0
- package/dist/chunk-ESRRKJO5.mjs +51 -0
- package/dist/chunk-F5WI7VDM.js +42 -0
- package/dist/chunk-F7QTSVDJ.mjs +130 -0
- package/dist/chunk-FBLF4KJF.js +306 -0
- package/dist/chunk-FFBZYD6R.mjs +59 -0
- package/dist/chunk-FP4PPOO6.js +32 -0
- package/dist/chunk-GGGO542M.js +93 -0
- package/dist/chunk-GV44QHV3.mjs +32 -0
- package/dist/chunk-GZPCM2GI.mjs +413 -0
- package/dist/chunk-HAT7PSQD.mjs +509 -0
- package/dist/chunk-HI4G4OOG.js +40 -0
- package/dist/chunk-I734UVDT.js +22 -0
- package/dist/chunk-I7OZOKTH.js +65 -0
- package/dist/chunk-INAG73GE.js +69 -0
- package/dist/chunk-INERRJ6Q.js +1 -0
- package/dist/chunk-J5SXKBBU.mjs +30 -0
- package/dist/chunk-JEV3GSS7.js +51 -0
- package/dist/chunk-JGP4YWZY.js +1 -0
- package/dist/chunk-JGTW4AJ7.mjs +32 -0
- package/dist/chunk-KLEKFCL2.js +58 -0
- package/dist/chunk-LIYZBMAM.mjs +13 -0
- package/dist/chunk-MF4RRA4Q.mjs +726 -0
- package/dist/chunk-MSENNRAY.js +118 -0
- package/dist/chunk-NCVJPQSP.js +88 -0
- package/dist/chunk-NDDXQD7R.mjs +61 -0
- package/dist/chunk-OA7KWN7D.mjs +66 -0
- package/dist/chunk-OESA3G7F.mjs +31 -0
- package/dist/chunk-OJ3R7YBK.js +302 -0
- package/dist/chunk-PMDV5GKD.js +240 -0
- package/dist/chunk-PS2NPPRM.mjs +267 -0
- package/dist/chunk-PS55UN6T.mjs +59 -0
- package/dist/chunk-PVTEDLBL.mjs +26 -0
- package/dist/chunk-PY52QA2R.js +130 -0
- package/dist/chunk-QMJ7P54Z.mjs +241 -0
- package/dist/chunk-QZHIWK5Z.mjs +190 -0
- package/dist/chunk-RKOOM5R5.js +509 -0
- package/dist/chunk-RLIZVCIN.mjs +0 -0
- package/dist/chunk-RPECQQG4.mjs +288 -0
- package/dist/chunk-SFT3A33D.mjs +32 -0
- package/dist/chunk-T7IVGU7T.mjs +302 -0
- package/dist/chunk-TILR7372.js +48 -0
- package/dist/chunk-TYAPQ46X.js +353 -0
- package/dist/chunk-UDAQKEJS.mjs +384 -0
- package/dist/chunk-ULBTYC2B.js +190 -0
- package/dist/chunk-USUT2GLD.mjs +26 -0
- package/dist/chunk-V7YZ3666.mjs +0 -0
- package/dist/chunk-VYH45FO6.mjs +55 -0
- package/dist/chunk-W4QV74K2.mjs +87 -0
- package/dist/chunk-WJ5TU6JU.mjs +988 -0
- package/dist/chunk-WTHELTBU.mjs +48 -0
- package/dist/chunk-XCSSYTCU.js +26 -0
- package/dist/chunk-XID4OBY2.mjs +353 -0
- package/dist/chunk-XITP2BX2.js +13 -0
- package/dist/chunk-XONECYS4.js +413 -0
- package/dist/chunk-XSCTGWRG.mjs +42 -0
- package/dist/chunk-XSRDTQ5C.mjs +306 -0
- package/dist/chunk-XUV4U54K.mjs +21 -0
- package/dist/chunk-ZCZVVZBX.js +32 -0
- package/dist/chunk-ZFIZ5Q46.js +288 -0
- package/dist/chunk-ZMFVKBRM.js +55 -0
- package/dist/chunk-ZPWY4RXH.js +18 -0
- package/dist/chunk-ZXT33DDB.js +32 -0
- package/dist/executor-5Wog21g_.d.mts +34 -0
- package/dist/executor-B8D-FX1j.d.mts +132 -0
- package/dist/executor-B8D-FX1j.d.ts +132 -0
- package/dist/executor-B8unq_QL.d.mts +150 -0
- package/dist/executor-BD3oxCXJ.d.mts +96 -0
- package/dist/executor-BD3oxCXJ.d.ts +96 -0
- package/dist/executor-BKdjKo-J.d.mts +93 -0
- package/dist/executor-BKdjKo-J.d.ts +93 -0
- package/dist/executor-BSXWmnE3.d.mts +263 -0
- package/dist/executor-Bt8koUTv.d.mts +104 -0
- package/dist/executor-Bt8koUTv.d.ts +104 -0
- package/dist/executor-BuS0IH1B.d.mts +96 -0
- package/dist/executor-BuS0IH1B.d.ts +96 -0
- package/dist/executor-C5AtaKvj.d.mts +148 -0
- package/dist/executor-CpcXNDfG.d.mts +122 -0
- package/dist/executor-CpcXNDfG.d.ts +122 -0
- package/dist/executor-D5hcfG7B.d.ts +57 -0
- package/dist/executor-D8m1bXgk.d.mts +57 -0
- package/dist/executor-DTcKLfcw.d.mts +67 -0
- package/dist/executor-DTcKLfcw.d.ts +67 -0
- package/dist/executor-DlTSIchw.d.ts +148 -0
- package/dist/executor-U929Bp8J.d.ts +34 -0
- package/dist/executor-sYaxQf5n.d.ts +150 -0
- package/dist/executor-wWkM11v5.d.ts +263 -0
- package/dist/executors.d.mts +16 -0
- package/dist/executors.d.ts +16 -0
- package/dist/executors.js +62 -0
- package/dist/executors.mjs +62 -0
- package/dist/generator-48_WHnGL.d.mts +184 -0
- package/dist/generator-BOj8XBVt.d.mts +322 -0
- package/dist/generator-C392qNd1.d.ts +322 -0
- package/dist/generator-CNiN6sul.d.mts +322 -0
- package/dist/generator-CgdrKFcO.d.mts +108 -0
- package/dist/generator-CtMFNmXP.d.ts +108 -0
- package/dist/generator-DX0frURz.d.ts +322 -0
- package/dist/generator-Dc6RWp26.d.ts +322 -0
- package/dist/generator-DeNfAL1R.d.ts +184 -0
- package/dist/generator-DmJcSdfk.d.mts +38 -0
- package/dist/generator-VyYYXMy4.d.mts +322 -0
- package/dist/generator-WuasfjoA.d.ts +38 -0
- package/dist/generators.d.mts +13 -0
- package/dist/generators.d.ts +13 -0
- package/dist/generators.js +41 -0
- package/dist/generators.mjs +41 -0
- package/dist/index.d.mts +367 -0
- package/dist/index.d.ts +367 -0
- package/dist/index.js +259 -0
- package/dist/index.mjs +259 -0
- package/dist/init-6Nmtv8d5.d.mts +19 -0
- package/dist/init-6Nmtv8d5.d.ts +19 -0
- package/dist/schema.d-CRz8jtUC.d.mts +60 -0
- package/dist/schema.d-CRz8jtUC.d.ts +60 -0
- package/dist/src/base/base-executor.d.mts +9 -0
- package/dist/src/base/base-executor.d.ts +9 -0
- package/dist/src/base/base-executor.js +12 -0
- package/dist/src/base/base-executor.mjs +12 -0
- package/dist/src/base/base-executor.schema.md +16 -0
- package/dist/src/base/base-executor.untyped.d.mts +5 -0
- package/dist/src/base/base-executor.untyped.d.ts +5 -0
- package/dist/src/base/base-executor.untyped.js +7 -0
- package/dist/src/base/base-executor.untyped.mjs +7 -0
- package/dist/src/base/base-generator.d.mts +9 -0
- package/dist/src/base/base-generator.d.ts +9 -0
- package/dist/src/base/base-generator.js +11 -0
- package/dist/src/base/base-generator.mjs +11 -0
- package/dist/src/base/base-generator.schema.md +15 -0
- package/dist/src/base/base-generator.untyped.d.mts +5 -0
- package/dist/src/base/base-generator.untyped.d.ts +5 -0
- package/dist/src/base/base-generator.untyped.js +7 -0
- package/dist/src/base/base-generator.untyped.mjs +7 -0
- package/dist/src/base/cargo-base-executor.schema.md +90 -0
- package/dist/src/base/cargo-base-executor.untyped.d.mts +5 -0
- package/dist/src/base/cargo-base-executor.untyped.d.ts +5 -0
- package/dist/src/base/cargo-base-executor.untyped.js +8 -0
- package/dist/src/base/cargo-base-executor.untyped.mjs +8 -0
- package/dist/src/base/typescript-build-executor.schema.md +130 -0
- package/dist/src/base/typescript-build-executor.untyped.d.mts +5 -0
- package/dist/src/base/typescript-build-executor.untyped.d.ts +5 -0
- package/dist/src/base/typescript-build-executor.untyped.js +8 -0
- package/dist/src/base/typescript-build-executor.untyped.mjs +8 -0
- package/dist/src/base/typescript-library-generator.schema.md +297 -0
- package/dist/src/base/typescript-library-generator.untyped.d.mts +5 -0
- package/dist/src/base/typescript-library-generator.untyped.d.ts +5 -0
- package/dist/src/base/typescript-library-generator.untyped.js +8 -0
- package/dist/src/base/typescript-library-generator.untyped.mjs +8 -0
- package/dist/src/executors/cargo-build/executor.d.mts +2 -0
- package/dist/src/executors/cargo-build/executor.d.ts +2 -0
- package/dist/src/executors/cargo-build/executor.js +16 -0
- package/dist/src/executors/cargo-build/executor.mjs +16 -0
- package/dist/src/executors/cargo-build/schema.d.ts +86 -0
- package/dist/src/executors/cargo-build/schema.json +85 -0
- package/dist/src/executors/cargo-build/schema.md +89 -0
- package/dist/src/executors/cargo-build/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-build/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-build/untyped.js +26 -0
- package/dist/src/executors/cargo-build/untyped.mjs +26 -0
- package/dist/src/executors/cargo-check/executor.d.mts +2 -0
- package/dist/src/executors/cargo-check/executor.d.ts +2 -0
- package/dist/src/executors/cargo-check/executor.js +16 -0
- package/dist/src/executors/cargo-check/executor.mjs +16 -0
- package/dist/src/executors/cargo-check/schema.d.ts +89 -0
- package/dist/src/executors/cargo-check/schema.json +88 -0
- package/dist/src/executors/cargo-check/schema.md +90 -0
- package/dist/src/executors/cargo-check/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-check/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-check/untyped.js +19 -0
- package/dist/src/executors/cargo-check/untyped.mjs +19 -0
- package/dist/src/executors/cargo-clippy/executor.d.mts +2 -0
- package/dist/src/executors/cargo-clippy/executor.d.ts +2 -0
- package/dist/src/executors/cargo-clippy/executor.js +16 -0
- package/dist/src/executors/cargo-clippy/executor.mjs +16 -0
- package/dist/src/executors/cargo-clippy/schema.d.ts +97 -0
- package/dist/src/executors/cargo-clippy/schema.json +94 -0
- package/dist/src/executors/cargo-clippy/schema.md +99 -0
- package/dist/src/executors/cargo-clippy/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-clippy/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-clippy/untyped.js +26 -0
- package/dist/src/executors/cargo-clippy/untyped.mjs +26 -0
- package/dist/src/executors/cargo-doc/executor.d.mts +2 -0
- package/dist/src/executors/cargo-doc/executor.d.ts +2 -0
- package/dist/src/executors/cargo-doc/executor.js +16 -0
- package/dist/src/executors/cargo-doc/executor.mjs +16 -0
- package/dist/src/executors/cargo-doc/schema.d.ts +125 -0
- package/dist/src/executors/cargo-doc/schema.json +164 -0
- package/dist/src/executors/cargo-doc/schema.md +130 -0
- package/dist/src/executors/cargo-doc/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-doc/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-doc/untyped.js +51 -0
- package/dist/src/executors/cargo-doc/untyped.mjs +51 -0
- package/dist/src/executors/cargo-format/executor.d.mts +2 -0
- package/dist/src/executors/cargo-format/executor.d.ts +2 -0
- package/dist/src/executors/cargo-format/executor.js +16 -0
- package/dist/src/executors/cargo-format/executor.mjs +16 -0
- package/dist/src/executors/cargo-format/schema.d.ts +89 -0
- package/dist/src/executors/cargo-format/schema.json +88 -0
- package/dist/src/executors/cargo-format/schema.md +90 -0
- package/dist/src/executors/cargo-format/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-format/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-format/untyped.js +19 -0
- package/dist/src/executors/cargo-format/untyped.mjs +19 -0
- package/dist/src/executors/cargo-publish/executor.d.mts +2 -0
- package/dist/src/executors/cargo-publish/executor.d.ts +2 -0
- package/dist/src/executors/cargo-publish/executor.js +10 -0
- package/dist/src/executors/cargo-publish/executor.mjs +10 -0
- package/dist/src/executors/cargo-publish/schema.d.ts +115 -0
- package/dist/src/executors/cargo-publish/schema.json +107 -0
- package/dist/src/executors/cargo-publish/schema.md +117 -0
- package/dist/src/executors/cargo-publish/untyped.d.mts +5 -0
- package/dist/src/executors/cargo-publish/untyped.d.ts +5 -0
- package/dist/src/executors/cargo-publish/untyped.js +41 -0
- package/dist/src/executors/cargo-publish/untyped.mjs +41 -0
- package/dist/src/executors/clean-package/executor.d.mts +12 -0
- package/dist/src/executors/clean-package/executor.d.ts +12 -0
- package/dist/src/executors/clean-package/executor.js +303 -0
- package/dist/src/executors/clean-package/executor.mjs +303 -0
- package/dist/src/executors/clean-package/schema.d.ts +60 -0
- package/dist/src/executors/clean-package/schema.json +57 -0
- package/dist/src/executors/clean-package/schema.md +65 -0
- package/dist/src/executors/clean-package/untyped.d.mts +5 -0
- package/dist/src/executors/clean-package/untyped.d.ts +5 -0
- package/dist/src/executors/clean-package/untyped.js +68 -0
- package/dist/src/executors/clean-package/untyped.mjs +68 -0
- package/dist/src/executors/esbuild/executor.d.mts +4 -0
- package/dist/src/executors/esbuild/executor.d.ts +4 -0
- package/dist/src/executors/esbuild/executor.js +16 -0
- package/dist/src/executors/esbuild/executor.mjs +16 -0
- package/dist/src/executors/esbuild/schema.d.ts +141 -0
- package/dist/src/executors/esbuild/schema.json +173 -0
- package/dist/src/executors/esbuild/schema.md +130 -0
- package/dist/src/executors/esbuild/untyped.d.mts +5 -0
- package/dist/src/executors/esbuild/untyped.d.ts +5 -0
- package/dist/src/executors/esbuild/untyped.js +32 -0
- package/dist/src/executors/esbuild/untyped.mjs +32 -0
- package/dist/src/executors/npm-publish/executor.d.mts +2 -0
- package/dist/src/executors/npm-publish/executor.d.ts +2 -0
- package/dist/src/executors/npm-publish/executor.js +11 -0
- package/dist/src/executors/npm-publish/executor.mjs +11 -0
- package/dist/src/executors/npm-publish/schema.d.ts +60 -0
- package/dist/src/executors/npm-publish/schema.json +55 -0
- package/dist/src/executors/npm-publish/schema.md +64 -0
- package/dist/src/executors/npm-publish/untyped.d.mts +5 -0
- package/dist/src/executors/npm-publish/untyped.d.ts +5 -0
- package/dist/src/executors/npm-publish/untyped.js +61 -0
- package/dist/src/executors/npm-publish/untyped.mjs +61 -0
- package/dist/src/executors/size-limit/executor.d.mts +4 -0
- package/dist/src/executors/size-limit/executor.d.ts +4 -0
- package/dist/src/executors/size-limit/executor.js +15 -0
- package/dist/src/executors/size-limit/executor.mjs +15 -0
- package/dist/src/executors/size-limit/schema.d.ts +25 -0
- package/dist/src/executors/size-limit/schema.json +29 -0
- package/dist/src/executors/size-limit/schema.md +25 -0
- package/dist/src/executors/size-limit/untyped.d.mts +5 -0
- package/dist/src/executors/size-limit/untyped.d.ts +5 -0
- package/dist/src/executors/size-limit/untyped.js +29 -0
- package/dist/src/executors/size-limit/untyped.mjs +29 -0
- package/dist/src/executors/tsdown/executor.d.mts +4 -0
- package/dist/src/executors/tsdown/executor.d.ts +4 -0
- package/dist/src/executors/tsdown/executor.js +16 -0
- package/dist/src/executors/tsdown/executor.mjs +16 -0
- package/dist/src/executors/tsdown/schema.d.ts +139 -0
- package/dist/src/executors/tsdown/schema.json +182 -0
- package/dist/src/executors/tsdown/schema.md +130 -0
- package/dist/src/executors/tsdown/untyped.d.mts +5 -0
- package/dist/src/executors/tsdown/untyped.d.ts +5 -0
- package/dist/src/executors/tsdown/untyped.js +19 -0
- package/dist/src/executors/tsdown/untyped.mjs +19 -0
- package/dist/src/executors/typia/executor.d.mts +4 -0
- package/dist/src/executors/typia/executor.d.ts +4 -0
- package/dist/src/executors/typia/executor.js +15 -0
- package/dist/src/executors/typia/executor.mjs +15 -0
- package/dist/src/executors/typia/schema.d.ts +48 -0
- package/dist/src/executors/typia/schema.json +57 -0
- package/dist/src/executors/typia/schema.md +46 -0
- package/dist/src/executors/typia/untyped.d.mts +5 -0
- package/dist/src/executors/typia/untyped.d.ts +5 -0
- package/dist/src/executors/typia/untyped.js +63 -0
- package/dist/src/executors/typia/untyped.mjs +63 -0
- package/dist/src/executors/unbuild/executor.d.mts +4 -0
- package/dist/src/executors/unbuild/executor.d.ts +4 -0
- package/dist/src/executors/unbuild/executor.js +16 -0
- package/dist/src/executors/unbuild/executor.mjs +16 -0
- package/dist/src/executors/unbuild/schema.d.ts +254 -0
- package/dist/src/executors/unbuild/schema.json +305 -0
- package/dist/src/executors/unbuild/schema.md +220 -0
- package/dist/src/executors/unbuild/untyped.d.mts +5 -0
- package/dist/src/executors/unbuild/untyped.d.ts +5 -0
- package/dist/src/executors/unbuild/untyped.js +138 -0
- package/dist/src/executors/unbuild/untyped.mjs +138 -0
- package/dist/src/generators/browser-library/files/README.md +58 -0
- package/dist/src/generators/browser-library/files/jest.config.ts +3 -0
- package/dist/src/generators/browser-library/files/tsconfig.spec.json +13 -0
- package/dist/src/generators/browser-library/generator.d.mts +6 -0
- package/dist/src/generators/browser-library/generator.d.ts +6 -0
- package/dist/src/generators/browser-library/generator.js +17 -0
- package/dist/src/generators/browser-library/generator.mjs +17 -0
- package/dist/src/generators/browser-library/schema.d.ts +314 -0
- package/dist/src/generators/browser-library/schema.json +262 -0
- package/dist/src/generators/browser-library/schema.md +297 -0
- package/dist/src/generators/browser-library/untyped.d.mts +5 -0
- package/dist/src/generators/browser-library/untyped.d.ts +5 -0
- package/dist/src/generators/browser-library/untyped.js +43 -0
- package/dist/src/generators/browser-library/untyped.mjs +43 -0
- package/dist/src/generators/config-schema/generator.d.mts +6 -0
- package/dist/src/generators/config-schema/generator.d.ts +6 -0
- package/dist/src/generators/config-schema/generator.js +14 -0
- package/dist/src/generators/config-schema/generator.mjs +14 -0
- package/dist/src/generators/config-schema/schema.d.ts +23 -0
- package/dist/src/generators/config-schema/schema.json +24 -0
- package/dist/src/generators/config-schema/schema.md +25 -0
- package/dist/src/generators/config-schema/untyped.d.mts +5 -0
- package/dist/src/generators/config-schema/untyped.d.ts +5 -0
- package/dist/src/generators/config-schema/untyped.js +26 -0
- package/dist/src/generators/config-schema/untyped.mjs +26 -0
- package/dist/src/generators/init/init.d.mts +2 -0
- package/dist/src/generators/init/init.d.ts +2 -0
- package/dist/src/generators/init/init.js +9 -0
- package/dist/src/generators/init/init.mjs +9 -0
- package/dist/src/generators/init/schema.d.ts +14 -0
- package/dist/src/generators/init/schema.json +15 -0
- package/dist/src/generators/init/schema.md +15 -0
- package/dist/src/generators/init/untyped.d.mts +5 -0
- package/dist/src/generators/init/untyped.d.ts +5 -0
- package/dist/src/generators/init/untyped.js +21 -0
- package/dist/src/generators/init/untyped.mjs +21 -0
- package/dist/src/generators/neutral-library/files/README.md +58 -0
- package/dist/src/generators/neutral-library/files/jest.config.ts +3 -0
- package/dist/src/generators/neutral-library/files/tsconfig.spec.json +13 -0
- package/dist/src/generators/neutral-library/generator.d.mts +6 -0
- package/dist/src/generators/neutral-library/generator.d.ts +6 -0
- package/dist/src/generators/neutral-library/generator.js +17 -0
- package/dist/src/generators/neutral-library/generator.mjs +17 -0
- package/dist/src/generators/neutral-library/schema.d.ts +314 -0
- package/dist/src/generators/neutral-library/schema.json +261 -0
- package/dist/src/generators/neutral-library/schema.md +297 -0
- package/dist/src/generators/neutral-library/untyped.d.mts +5 -0
- package/dist/src/generators/neutral-library/untyped.d.ts +5 -0
- package/dist/src/generators/neutral-library/untyped.js +42 -0
- package/dist/src/generators/neutral-library/untyped.mjs +42 -0
- package/dist/src/generators/node-library/files/README.md +58 -0
- package/dist/src/generators/node-library/files/jest.config.ts +3 -0
- package/dist/src/generators/node-library/files/tsconfig.spec.json +13 -0
- package/dist/src/generators/node-library/generator.d.mts +6 -0
- package/dist/src/generators/node-library/generator.d.ts +6 -0
- package/dist/src/generators/node-library/generator.js +17 -0
- package/dist/src/generators/node-library/generator.mjs +17 -0
- package/dist/src/generators/node-library/schema.d.ts +314 -0
- package/dist/src/generators/node-library/schema.json +262 -0
- package/dist/src/generators/node-library/schema.md +297 -0
- package/dist/src/generators/node-library/untyped.d.mts +5 -0
- package/dist/src/generators/node-library/untyped.d.ts +5 -0
- package/dist/src/generators/node-library/untyped.js +43 -0
- package/dist/src/generators/node-library/untyped.mjs +43 -0
- package/dist/src/generators/preset/files/LICENSE +201 -0
- package/dist/src/generators/preset/files/README.md.template +282 -0
- package/dist/src/generators/preset/files/docs/readme-templates/README.footer.md.template +123 -0
- package/dist/src/generators/preset/files/docs/readme-templates/README.header.md.template +22 -0
- package/dist/src/generators/preset/files/eslint.config.js.template +24 -0
- package/dist/src/generators/preset/files/knip.json +20 -0
- package/dist/src/generators/preset/files/lefthook.json +106 -0
- package/dist/src/generators/preset/files/nx.json +7 -0
- package/dist/src/generators/preset/files/pnpm-workspace.yaml +6 -0
- package/dist/src/generators/preset/files/socket.yaml +20 -0
- package/dist/src/generators/preset/files/storm.json.template +12 -0
- package/dist/src/generators/preset/files/tsconfig.base.json.template +11 -0
- package/dist/src/generators/preset/generator.d.mts +6 -0
- package/dist/src/generators/preset/generator.d.ts +6 -0
- package/dist/src/generators/preset/generator.js +15 -0
- package/dist/src/generators/preset/generator.mjs +15 -0
- package/dist/src/generators/preset/schema.d.ts +101 -0
- package/dist/src/generators/preset/schema.json +96 -0
- package/dist/src/generators/preset/schema.md +110 -0
- package/dist/src/generators/preset/untyped.d.mts +5 -0
- package/dist/src/generators/preset/untyped.d.ts +5 -0
- package/dist/src/generators/preset/untyped.js +103 -0
- package/dist/src/generators/preset/untyped.mjs +103 -0
- package/dist/src/generators/release-version/generator.d.mts +5 -0
- package/dist/src/generators/release-version/generator.d.ts +5 -0
- package/dist/src/generators/release-version/generator.js +13 -0
- package/dist/src/generators/release-version/generator.mjs +13 -0
- package/dist/src/generators/release-version/schema.d.ts +178 -0
- package/dist/src/generators/release-version/schema.json +154 -0
- package/dist/src/generators/release-version/schema.md +158 -0
- package/dist/src/generators/release-version/untyped.d.mts +5 -0
- package/dist/src/generators/release-version/untyped.d.ts +5 -0
- package/dist/src/generators/release-version/untyped.js +170 -0
- package/dist/src/generators/release-version/untyped.mjs +170 -0
- package/dist/src/plugins/rust/cargo-toml.d.mts +23 -0
- package/dist/src/plugins/rust/cargo-toml.d.ts +23 -0
- package/dist/src/plugins/rust/cargo-toml.js +19 -0
- package/dist/src/plugins/rust/cargo-toml.mjs +19 -0
- package/dist/src/plugins/rust/index.d.mts +2 -0
- package/dist/src/plugins/rust/index.d.ts +2 -0
- package/dist/src/plugins/rust/index.js +19 -0
- package/dist/src/plugins/rust/index.mjs +19 -0
- package/dist/src/plugins/typescript/index.d.mts +2 -0
- package/dist/src/plugins/typescript/index.d.ts +2 -0
- package/dist/src/plugins/typescript/index.js +10 -0
- package/dist/src/plugins/typescript/index.mjs +10 -0
- package/dist/src/plugins/typescript/project-config.d.mts +9 -0
- package/dist/src/plugins/typescript/project-config.d.ts +9 -0
- package/dist/src/plugins/typescript/project-config.js +10 -0
- package/dist/src/plugins/typescript/project-config.mjs +10 -0
- package/dist/src/plugins/typescript/tsdown.d.mts +8 -0
- package/dist/src/plugins/typescript/tsdown.d.ts +8 -0
- package/dist/src/plugins/typescript/tsdown.js +142 -0
- package/dist/src/plugins/typescript/tsdown.mjs +142 -0
- package/dist/src/plugins/typescript/tsup.d.mts +8 -0
- package/dist/src/plugins/typescript/tsup.d.ts +8 -0
- package/dist/src/plugins/typescript/tsup.js +142 -0
- package/dist/src/plugins/typescript/tsup.mjs +142 -0
- package/dist/src/utils/apply-workspace-tokens.d.mts +17 -0
- package/dist/src/utils/apply-workspace-tokens.d.ts +17 -0
- package/dist/src/utils/apply-workspace-tokens.js +9 -0
- package/dist/src/utils/apply-workspace-tokens.mjs +9 -0
- package/dist/src/utils/cargo.d.mts +119 -0
- package/dist/src/utils/cargo.d.ts +119 -0
- package/dist/src/utils/cargo.js +23 -0
- package/dist/src/utils/cargo.mjs +23 -0
- package/dist/src/utils/create-cli-options.d.mts +3 -0
- package/dist/src/utils/create-cli-options.d.ts +3 -0
- package/dist/src/utils/create-cli-options.js +7 -0
- package/dist/src/utils/create-cli-options.mjs +7 -0
- package/dist/src/utils/get-project-configurations.d.mts +16 -0
- package/dist/src/utils/get-project-configurations.d.ts +16 -0
- package/dist/src/utils/get-project-configurations.js +11 -0
- package/dist/src/utils/get-project-configurations.mjs +11 -0
- package/dist/src/utils/index.d.mts +20 -0
- package/dist/src/utils/index.d.ts +20 -0
- package/dist/src/utils/index.js +146 -0
- package/dist/src/utils/index.mjs +146 -0
- package/dist/src/utils/lock-file.d.mts +26 -0
- package/dist/src/utils/lock-file.d.ts +26 -0
- package/dist/src/utils/lock-file.js +27 -0
- package/dist/src/utils/lock-file.mjs +27 -0
- package/dist/src/utils/package-helpers.d.mts +16 -0
- package/dist/src/utils/package-helpers.d.ts +16 -0
- package/dist/src/utils/package-helpers.js +11 -0
- package/dist/src/utils/package-helpers.mjs +11 -0
- package/dist/src/utils/pnpm-deps-update.d.mts +9 -0
- package/dist/src/utils/pnpm-deps-update.d.ts +9 -0
- package/dist/src/utils/pnpm-deps-update.js +8 -0
- package/dist/src/utils/pnpm-deps-update.mjs +8 -0
- package/dist/src/utils/project-tags.d.mts +54 -0
- package/dist/src/utils/project-tags.d.ts +54 -0
- package/dist/src/utils/project-tags.js +21 -0
- package/dist/src/utils/project-tags.mjs +21 -0
- package/dist/src/utils/toml.d.mts +136 -0
- package/dist/src/utils/toml.d.ts +136 -0
- package/dist/src/utils/toml.js +15 -0
- package/dist/src/utils/toml.mjs +15 -0
- package/dist/src/utils/typia-transform.d.mts +5 -0
- package/dist/src/utils/typia-transform.d.ts +5 -0
- package/dist/src/utils/typia-transform.js +7 -0
- package/dist/src/utils/typia-transform.mjs +7 -0
- package/dist/src/utils/versions.d.mts +20 -0
- package/dist/src/utils/versions.d.ts +20 -0
- package/dist/src/utils/versions.js +41 -0
- package/dist/src/utils/versions.mjs +41 -0
- package/dist/types-CMFSY9ut.d.mts +101 -0
- package/dist/types-D9vU63tt.d.mts +1185 -0
- package/dist/types-D9vU63tt.d.ts +1185 -0
- package/dist/types-Dbr7XMO3.d.ts +101 -0
- package/docs/api/executors/cargo-build/schema.md +89 -0
- package/docs/api/executors/cargo-check/schema.md +90 -0
- package/docs/api/executors/cargo-clippy/schema.md +99 -0
- package/docs/api/executors/cargo-doc/schema.md +130 -0
- package/docs/api/executors/cargo-format/schema.md +90 -0
- package/docs/api/executors/cargo-publish/schema.md +117 -0
- package/docs/api/executors/clean-package/schema.md +65 -0
- package/docs/api/executors/esbuild/schema.md +130 -0
- package/docs/api/executors/npm-publish/schema.md +64 -0
- package/docs/api/executors/size-limit/schema.md +25 -0
- package/docs/api/executors/tsdown/schema.md +130 -0
- package/docs/api/executors/typia/schema.md +46 -0
- package/docs/api/executors/unbuild/schema.md +220 -0
- package/docs/api/generators/browser-library/files/README.md +58 -0
- package/docs/api/generators/browser-library/schema.md +297 -0
- package/docs/api/generators/config-schema/schema.md +25 -0
- package/docs/api/generators/init/schema.md +15 -0
- package/docs/api/generators/neutral-library/files/README.md +58 -0
- package/docs/api/generators/neutral-library/schema.md +297 -0
- package/docs/api/generators/node-library/files/README.md +58 -0
- package/docs/api/generators/node-library/schema.md +297 -0
- package/docs/api/generators/preset/schema.md +110 -0
- package/docs/api/generators/release-version/schema.md +158 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1045 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkCT7IVPJYjs = require('./chunk-CT7IVPJY.js');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
var _chunkMSENNRAYjs = require('./chunk-MSENNRAY.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
var _chunk36FMHXUDjs = require('./chunk-36FMHXUD.js');
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
34
|
+
|
|
35
|
+
// ../esbuild/src/build.ts
|
|
36
|
+
var _node = require('@humanfs/node');
|
|
37
|
+
var _devkit = require('@nx/devkit');
|
|
38
|
+
|
|
39
|
+
// ../config-tools/src/utilities/run.ts
|
|
40
|
+
var _child_process = require('child_process');
|
|
41
|
+
var LARGE_BUFFER = 1024 * 1e6;
|
|
42
|
+
var run = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), stdio = "inherit", env = process.env) => {
|
|
43
|
+
return _child_process.execSync.call(void 0, command, {
|
|
44
|
+
cwd,
|
|
45
|
+
env: {
|
|
46
|
+
...process.env,
|
|
47
|
+
...env,
|
|
48
|
+
CLICOLOR: "true",
|
|
49
|
+
FORCE_COLOR: "true"
|
|
50
|
+
},
|
|
51
|
+
windowsHide: true,
|
|
52
|
+
stdio,
|
|
53
|
+
maxBuffer: LARGE_BUFFER,
|
|
54
|
+
killSignal: "SIGTERM"
|
|
55
|
+
});
|
|
56
|
+
}, "run");
|
|
57
|
+
|
|
58
|
+
// ../esbuild/src/build.ts
|
|
59
|
+
var _chokidar = require('chokidar');
|
|
60
|
+
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
61
|
+
var _estoolkit = require('es-toolkit');
|
|
62
|
+
var _compat = require('es-toolkit/compat');
|
|
63
|
+
var _esbuild = require('esbuild'); var esbuild2 = _interopRequireWildcard(_esbuild); var esbuild = _interopRequireWildcard(_esbuild);
|
|
64
|
+
var _globby = require('globby');
|
|
65
|
+
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
66
|
+
|
|
67
|
+
// ../esbuild/src/base/renderer-engine.ts
|
|
68
|
+
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
69
|
+
var _sourcemap = require('source-map');
|
|
70
|
+
|
|
71
|
+
// ../esbuild/src/utilities/output-file.ts
|
|
72
|
+
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
73
|
+
|
|
74
|
+
var outputFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (filepath, data, options) => {
|
|
75
|
+
await _fs2.default.promises.mkdir(_path2.default.dirname(filepath), {
|
|
76
|
+
recursive: true
|
|
77
|
+
});
|
|
78
|
+
await _fs2.default.promises.writeFile(filepath, data, options);
|
|
79
|
+
}, "outputFile");
|
|
80
|
+
|
|
81
|
+
// ../esbuild/src/base/renderer-engine.ts
|
|
82
|
+
var parseSourceMap = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (map2) => {
|
|
83
|
+
return typeof map2 === "string" ? JSON.parse(map2) : map2;
|
|
84
|
+
}, "parseSourceMap");
|
|
85
|
+
var isJS = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (path5) => /\.(js|mjs|cjs)$/.test(path5), "isJS");
|
|
86
|
+
var isCSS = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (path5) => /\.css$/.test(path5), "isCSS");
|
|
87
|
+
var getSourcemapComment = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (inline, map2, filepath, isCssFile) => {
|
|
88
|
+
if (!map2) return "";
|
|
89
|
+
const prefix = isCssFile ? "/*" : "//";
|
|
90
|
+
const suffix = isCssFile ? " */" : "";
|
|
91
|
+
const url = inline ? `data:application/json;base64,${Buffer.from(typeof map2 === "string" ? map2 : JSON.stringify(map2)).toString("base64")}` : `${_path2.default.basename(filepath)}.map`;
|
|
92
|
+
return `${prefix}# sourceMappingURL=${url}${suffix}`;
|
|
93
|
+
}, "getSourcemapComment");
|
|
94
|
+
var RendererEngine = class {
|
|
95
|
+
static {
|
|
96
|
+
_chunk3GQAWCBQjs.__name.call(void 0, this, "RendererEngine");
|
|
97
|
+
}
|
|
98
|
+
#renderers;
|
|
99
|
+
#options;
|
|
100
|
+
constructor(renderers) {
|
|
101
|
+
this.#renderers = renderers;
|
|
102
|
+
}
|
|
103
|
+
setOptions(options) {
|
|
104
|
+
this.#options = options;
|
|
105
|
+
}
|
|
106
|
+
getOptions() {
|
|
107
|
+
if (!this.#options) {
|
|
108
|
+
throw new Error(`Renderer options is not set`);
|
|
109
|
+
}
|
|
110
|
+
return this.#options;
|
|
111
|
+
}
|
|
112
|
+
modifyEsbuildOptions(options) {
|
|
113
|
+
for (const renderer of this.#renderers) {
|
|
114
|
+
if (renderer.esbuildOptions) {
|
|
115
|
+
renderer.esbuildOptions.call(this.getOptions(), options);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
async buildStarted() {
|
|
120
|
+
for (const renderer of this.#renderers) {
|
|
121
|
+
if (renderer.buildStart) {
|
|
122
|
+
await renderer.buildStart.call(this.getOptions());
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
async buildFinished({ outputFiles, metafile }) {
|
|
127
|
+
const files = outputFiles.filter((file) => !file.path.endsWith(".map")).map((file) => {
|
|
128
|
+
if (isJS(file.path) || isCSS(file.path)) {
|
|
129
|
+
let relativePath = _path2.default.relative(this.getOptions().config.workspaceRoot, file.path);
|
|
130
|
+
if (!relativePath.startsWith("\\\\?\\")) {
|
|
131
|
+
relativePath = relativePath.replace(/\\/g, "/");
|
|
132
|
+
}
|
|
133
|
+
const meta = _optionalChain([metafile, 'optionalAccess', _2 => _2.outputs, 'access', _3 => _3[relativePath]]);
|
|
134
|
+
return {
|
|
135
|
+
type: "chunk",
|
|
136
|
+
path: file.path,
|
|
137
|
+
code: file.text,
|
|
138
|
+
map: _optionalChain([outputFiles, 'access', _4 => _4.find, 'call', _5 => _5((f) => f.path === `${file.path}.map`), 'optionalAccess', _6 => _6.text]),
|
|
139
|
+
entryPoint: _optionalChain([meta, 'optionalAccess', _7 => _7.entryPoint]),
|
|
140
|
+
exports: _optionalChain([meta, 'optionalAccess', _8 => _8.exports]),
|
|
141
|
+
imports: _optionalChain([meta, 'optionalAccess', _9 => _9.imports])
|
|
142
|
+
};
|
|
143
|
+
} else {
|
|
144
|
+
return {
|
|
145
|
+
type: "asset",
|
|
146
|
+
path: file.path,
|
|
147
|
+
contents: file.contents
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
const writtenFiles = [];
|
|
152
|
+
await Promise.all(files.map(async (info) => {
|
|
153
|
+
for (const renderer of this.#renderers) {
|
|
154
|
+
if (info.type === "chunk" && renderer.renderChunk) {
|
|
155
|
+
const result = await renderer.renderChunk.call(this.getOptions(), info.code, info);
|
|
156
|
+
if (result) {
|
|
157
|
+
info.code = result.code;
|
|
158
|
+
if (result.map) {
|
|
159
|
+
const originalConsumer = await new (0, _sourcemap.SourceMapConsumer)(parseSourceMap(info.map));
|
|
160
|
+
const newConsumer = await new (0, _sourcemap.SourceMapConsumer)(parseSourceMap(result.map));
|
|
161
|
+
const generator = _sourcemap.SourceMapGenerator.fromSourceMap(newConsumer);
|
|
162
|
+
generator.applySourceMap(originalConsumer, info.path);
|
|
163
|
+
info.map = generator.toJSON();
|
|
164
|
+
originalConsumer.destroy();
|
|
165
|
+
newConsumer.destroy();
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
const inlineSourceMap = this.#options.sourcemap === "inline";
|
|
171
|
+
const contents = info.type === "chunk" ? info.code + getSourcemapComment(inlineSourceMap, info.map, info.path, isCSS(info.path)) : info.contents;
|
|
172
|
+
await outputFile(info.path, contents, {
|
|
173
|
+
mode: info.type === "chunk" ? info.mode : void 0
|
|
174
|
+
});
|
|
175
|
+
writtenFiles.push({
|
|
176
|
+
get name() {
|
|
177
|
+
return _path2.default.relative(process.cwd(), info.path);
|
|
178
|
+
},
|
|
179
|
+
get size() {
|
|
180
|
+
return contents.length;
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
if (info.type === "chunk" && info.map && !inlineSourceMap) {
|
|
184
|
+
const map2 = typeof info.map === "string" ? JSON.parse(info.map) : info.map;
|
|
185
|
+
const outPath = `${info.path}.map`;
|
|
186
|
+
const contents2 = JSON.stringify(map2);
|
|
187
|
+
await outputFile(outPath, contents2);
|
|
188
|
+
writtenFiles.push({
|
|
189
|
+
get name() {
|
|
190
|
+
return _path2.default.relative(process.cwd(), outPath);
|
|
191
|
+
},
|
|
192
|
+
get size() {
|
|
193
|
+
return contents2.length;
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
}));
|
|
198
|
+
for (const renderer of this.#renderers) {
|
|
199
|
+
if (renderer.buildEnd) {
|
|
200
|
+
await renderer.buildEnd.call(this.getOptions(), {
|
|
201
|
+
writtenFiles
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
// ../esbuild/src/clean.ts
|
|
209
|
+
|
|
210
|
+
async function clean(name = "ESBuild", directory, config) {
|
|
211
|
+
_chunk36FMHXUDjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
212
|
+
const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
213
|
+
await _node.hfs.deleteAll(directory);
|
|
214
|
+
stopwatch();
|
|
215
|
+
}
|
|
216
|
+
_chunk3GQAWCBQjs.__name.call(void 0, clean, "clean");
|
|
217
|
+
|
|
218
|
+
// ../esbuild/src/plugins/esm-split-code-to-cjs.ts
|
|
219
|
+
|
|
220
|
+
var esmSplitCodeToCjsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
221
|
+
name: "storm:esm-split-code-to-cjs",
|
|
222
|
+
setup(build4) {
|
|
223
|
+
build4.onEnd(async (result) => {
|
|
224
|
+
const outFiles = Object.keys(_nullishCoalesce(_optionalChain([result, 'access', _10 => _10.metafile, 'optionalAccess', _11 => _11.outputs]), () => ( {})));
|
|
225
|
+
const jsFiles = outFiles.filter((f) => f.endsWith("js"));
|
|
226
|
+
await esbuild.build({
|
|
227
|
+
outdir: resolvedOptions.outdir,
|
|
228
|
+
entryPoints: jsFiles,
|
|
229
|
+
allowOverwrite: true,
|
|
230
|
+
format: "cjs",
|
|
231
|
+
logLevel: "error",
|
|
232
|
+
packages: "external"
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}), "esmSplitCodeToCjsPlugin");
|
|
237
|
+
|
|
238
|
+
// ../esbuild/src/plugins/fix-imports.ts
|
|
239
|
+
var fixImportsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
240
|
+
name: "storm:fix-imports",
|
|
241
|
+
setup(build4) {
|
|
242
|
+
build4.onResolve({
|
|
243
|
+
filter: /^spdx-exceptions/
|
|
244
|
+
}, () => {
|
|
245
|
+
return {
|
|
246
|
+
path: _chunk3GQAWCBQjs.__require.resolve("spdx-exceptions")
|
|
247
|
+
};
|
|
248
|
+
});
|
|
249
|
+
build4.onResolve({
|
|
250
|
+
filter: /^spdx-license-ids/
|
|
251
|
+
}, () => {
|
|
252
|
+
return {
|
|
253
|
+
path: _chunk3GQAWCBQjs.__require.resolve("spdx-license-ids")
|
|
254
|
+
};
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
}), "fixImportsPlugin");
|
|
258
|
+
|
|
259
|
+
// ../esbuild/src/plugins/native-node-module.ts
|
|
260
|
+
|
|
261
|
+
var nativeNodeModulesPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => {
|
|
262
|
+
return {
|
|
263
|
+
name: "native-node-modules",
|
|
264
|
+
setup(build4) {
|
|
265
|
+
build4.onResolve({
|
|
266
|
+
filter: /\.node$/,
|
|
267
|
+
namespace: "file"
|
|
268
|
+
}, (args) => {
|
|
269
|
+
const resolvedId = _chunk3GQAWCBQjs.__require.resolve(args.path, {
|
|
270
|
+
paths: [
|
|
271
|
+
args.resolveDir
|
|
272
|
+
]
|
|
273
|
+
});
|
|
274
|
+
if (resolvedId.endsWith(".node")) {
|
|
275
|
+
return {
|
|
276
|
+
path: resolvedId,
|
|
277
|
+
namespace: "node-file"
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
return {
|
|
281
|
+
path: resolvedId
|
|
282
|
+
};
|
|
283
|
+
});
|
|
284
|
+
build4.onLoad({
|
|
285
|
+
filter: /.*/,
|
|
286
|
+
namespace: "node-file"
|
|
287
|
+
}, (args) => {
|
|
288
|
+
return {
|
|
289
|
+
contents: `
|
|
290
|
+
import path from ${JSON.stringify(args.path)}
|
|
291
|
+
try { module.exports = require(path) }
|
|
292
|
+
catch {}
|
|
293
|
+
`,
|
|
294
|
+
resolveDir: _path.dirname.call(void 0, args.path)
|
|
295
|
+
};
|
|
296
|
+
});
|
|
297
|
+
build4.onResolve({
|
|
298
|
+
filter: /\.node$/,
|
|
299
|
+
namespace: "node-file"
|
|
300
|
+
}, (args) => ({
|
|
301
|
+
path: args.path,
|
|
302
|
+
namespace: "file"
|
|
303
|
+
}));
|
|
304
|
+
const opts = build4.initialOptions;
|
|
305
|
+
opts.loader = opts.loader || {};
|
|
306
|
+
opts.loader[".node"] = "file";
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
}, "nativeNodeModulesPlugin");
|
|
310
|
+
|
|
311
|
+
// ../esbuild/src/plugins/node-protocol.ts
|
|
312
|
+
var nodeProtocolPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => {
|
|
313
|
+
const nodeProtocol = "node:";
|
|
314
|
+
return {
|
|
315
|
+
name: "node-protocol-plugin",
|
|
316
|
+
setup({ onResolve }) {
|
|
317
|
+
onResolve({
|
|
318
|
+
filter: /^node:/
|
|
319
|
+
}, ({ path: path5 }) => ({
|
|
320
|
+
path: path5.slice(nodeProtocol.length),
|
|
321
|
+
external: true
|
|
322
|
+
}));
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
}, "nodeProtocolPlugin");
|
|
326
|
+
|
|
327
|
+
// ../esbuild/src/plugins/on-error.ts
|
|
328
|
+
var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
329
|
+
name: "storm:on-error",
|
|
330
|
+
setup(build4) {
|
|
331
|
+
build4.onEnd((result) => {
|
|
332
|
+
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
333
|
+
_chunk36FMHXUDjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
334
|
+
${result.errors.map((error) => error.text).join("\n")}
|
|
335
|
+
|
|
336
|
+
`, resolvedOptions.config);
|
|
337
|
+
throw new Error("Storm esbuild process failed with errors.");
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
}), "onErrorPlugin");
|
|
342
|
+
|
|
343
|
+
// ../esbuild/src/plugins/resolve-paths.ts
|
|
344
|
+
|
|
345
|
+
function resolvePathsConfig(options, cwd) {
|
|
346
|
+
if (_optionalChain([options, 'optionalAccess', _12 => _12.compilerOptions, 'optionalAccess', _13 => _13.paths])) {
|
|
347
|
+
const paths = Object.entries(options.compilerOptions.paths);
|
|
348
|
+
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
349
|
+
return [
|
|
350
|
+
key,
|
|
351
|
+
paths2.map((v) => _path2.default.resolve(cwd, v))
|
|
352
|
+
];
|
|
353
|
+
});
|
|
354
|
+
return Object.fromEntries(resolvedPaths);
|
|
355
|
+
}
|
|
356
|
+
if (options.extends) {
|
|
357
|
+
const extendsPath = _path2.default.resolve(cwd, options.extends);
|
|
358
|
+
const extendsDir = _path2.default.dirname(extendsPath);
|
|
359
|
+
const extendsConfig = _chunk3GQAWCBQjs.__require.call(void 0, extendsPath);
|
|
360
|
+
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
361
|
+
}
|
|
362
|
+
return [];
|
|
363
|
+
}
|
|
364
|
+
_chunk3GQAWCBQjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
365
|
+
var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
366
|
+
name: "storm:resolve-paths",
|
|
367
|
+
setup(build4) {
|
|
368
|
+
const parentTsConfig = build4.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build4.initialOptions.tsconfig)) : _chunk3GQAWCBQjs.__require.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
|
|
369
|
+
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
|
|
370
|
+
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
371
|
+
build4.onResolve({
|
|
372
|
+
filter: packagesRegex
|
|
373
|
+
}, (args) => {
|
|
374
|
+
if (_optionalChain([build4, 'access', _14 => _14.initialOptions, 'access', _15 => _15.external, 'optionalAccess', _16 => _16.includes, 'call', _17 => _17(args.path)])) {
|
|
375
|
+
return {
|
|
376
|
+
path: args.path,
|
|
377
|
+
external: true
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
return {
|
|
381
|
+
path: `${resolvedTsPaths[args.path][0]}/index.ts`
|
|
382
|
+
};
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
}), "resolvePathsPlugin");
|
|
386
|
+
|
|
387
|
+
// ../esbuild/src/plugins/tsc.ts
|
|
388
|
+
|
|
389
|
+
var _apiextractor = require('@microsoft/api-extractor');
|
|
390
|
+
function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
391
|
+
const { dependencies, peerDependencies, devDependencies } = _chunk3GQAWCBQjs.__require.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
|
|
392
|
+
const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
|
|
393
|
+
p,
|
|
394
|
+
getTypeDependencyPackageName(p)
|
|
395
|
+
]);
|
|
396
|
+
const peerDependenciesKeys = Object.keys(_nullishCoalesce(peerDependencies, () => ( {}))).flatMap((p) => [
|
|
397
|
+
p,
|
|
398
|
+
getTypeDependencyPackageName(p)
|
|
399
|
+
]);
|
|
400
|
+
const devDependenciesKeys = Object.keys(_nullishCoalesce(devDependencies, () => ( {}))).flatMap((p) => [
|
|
401
|
+
p,
|
|
402
|
+
getTypeDependencyPackageName(p)
|
|
403
|
+
]);
|
|
404
|
+
const includeDeps = devDependenciesKeys;
|
|
405
|
+
const excludeDeps = /* @__PURE__ */ new Set([
|
|
406
|
+
...dependenciesKeys,
|
|
407
|
+
...peerDependenciesKeys,
|
|
408
|
+
...externals
|
|
409
|
+
]);
|
|
410
|
+
const bundledPackages = includeDeps.filter((dep) => !excludeDeps.has(dep));
|
|
411
|
+
const extractorConfig = _apiextractor.ExtractorConfig.prepare({
|
|
412
|
+
configObject: {
|
|
413
|
+
projectFolder: options.projectRoot,
|
|
414
|
+
mainEntryPointFilePath: filename,
|
|
415
|
+
bundledPackages,
|
|
416
|
+
compiler: {
|
|
417
|
+
tsconfigFilePath: options.tsconfig,
|
|
418
|
+
overrideTsconfig: {
|
|
419
|
+
compilerOptions: {
|
|
420
|
+
paths: {}
|
|
421
|
+
// bug with api extract + paths
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
dtsRollup: {
|
|
426
|
+
enabled: true,
|
|
427
|
+
untrimmedFilePath: _chunkXCSSYTCUjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
|
|
428
|
+
},
|
|
429
|
+
tsdocMetadata: {
|
|
430
|
+
enabled: false
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
packageJsonFullPath: _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
|
|
434
|
+
configObjectFullPath: void 0
|
|
435
|
+
});
|
|
436
|
+
const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
|
|
437
|
+
showVerboseMessages: true,
|
|
438
|
+
localBuild: true
|
|
439
|
+
});
|
|
440
|
+
if (extractorResult.succeeded === false) {
|
|
441
|
+
_chunk36FMHXUDjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
442
|
+
throw new Error("API Extractor completed with errors");
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
_chunk3GQAWCBQjs.__name.call(void 0, bundleTypeDefinitions, "bundleTypeDefinitions");
|
|
446
|
+
var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
447
|
+
name: "storm:tsc",
|
|
448
|
+
setup(build4) {
|
|
449
|
+
if (options.emitTypes === false) {
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
build4.onStart(async () => {
|
|
453
|
+
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
454
|
+
await run(resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
|
|
455
|
+
}
|
|
456
|
+
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0] && resolvedOptions.entryPoints[0].endsWith(".ts")) {
|
|
457
|
+
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
458
|
+
const typeOutDir = resolvedOptions.outdir;
|
|
459
|
+
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
460
|
+
const bundlePath = _chunkXCSSYTCUjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
|
|
461
|
+
let dtsPath;
|
|
462
|
+
if (await _node.hfs.isFile(_chunkXCSSYTCUjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
463
|
+
dtsPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
|
|
464
|
+
} else if (await _node.hfs.isFile(_chunkXCSSYTCUjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
465
|
+
dtsPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
466
|
+
}
|
|
467
|
+
const ext = resolvedOptions.outExtension.dts || resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
468
|
+
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
469
|
+
bundleTypeDefinitions(dtsPath, bundlePath, _nullishCoalesce(resolvedOptions.external, () => ( [])), resolvedOptions);
|
|
470
|
+
const dtsContents = await _node.hfs.text(`${bundlePath}.d.ts`);
|
|
471
|
+
await _node.hfs.write(`${bundlePath}.${ext}`, dtsContents);
|
|
472
|
+
} else {
|
|
473
|
+
await _node.hfs.write(`${bundlePath}.${ext}`, `export * from './${entryPoint}'`);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
}), "tscPlugin");
|
|
479
|
+
function getTypeDependencyPackageName(npmPackage) {
|
|
480
|
+
if (npmPackage.startsWith("@")) {
|
|
481
|
+
const [scope, name] = npmPackage.split("/");
|
|
482
|
+
return `@types/${_optionalChain([scope, 'optionalAccess', _18 => _18.slice, 'call', _19 => _19(1)])}__${name}`;
|
|
483
|
+
}
|
|
484
|
+
return `@types/${npmPackage}`;
|
|
485
|
+
}
|
|
486
|
+
_chunk3GQAWCBQjs.__name.call(void 0, getTypeDependencyPackageName, "getTypeDependencyPackageName");
|
|
487
|
+
|
|
488
|
+
// ../esbuild/src/config.ts
|
|
489
|
+
var getOutputExtensionMap = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, pkgType) => {
|
|
490
|
+
return options.outExtension ? options.outExtension(options.format, pkgType) : _chunkCT7IVPJYjs.getOutExtension.call(void 0, options.format, pkgType);
|
|
491
|
+
}, "getOutputExtensionMap");
|
|
492
|
+
var getDefaultBuildPlugins = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => [
|
|
493
|
+
nodeProtocolPlugin(options, resolvedOptions),
|
|
494
|
+
resolvePathsPlugin(options, resolvedOptions),
|
|
495
|
+
fixImportsPlugin(options, resolvedOptions),
|
|
496
|
+
nativeNodeModulesPlugin(options, resolvedOptions),
|
|
497
|
+
esmSplitCodeToCjsPlugin(options, resolvedOptions),
|
|
498
|
+
tscPlugin(options, resolvedOptions),
|
|
499
|
+
onErrorPlugin(options, resolvedOptions)
|
|
500
|
+
], "getDefaultBuildPlugins");
|
|
501
|
+
var DEFAULT_BUILD_OPTIONS = {
|
|
502
|
+
platform: "node",
|
|
503
|
+
target: "node22",
|
|
504
|
+
format: "cjs",
|
|
505
|
+
external: [],
|
|
506
|
+
logLevel: "error",
|
|
507
|
+
tsconfig: "tsconfig.json",
|
|
508
|
+
envName: "production",
|
|
509
|
+
keepNames: true,
|
|
510
|
+
metafile: true,
|
|
511
|
+
injectShims: true,
|
|
512
|
+
color: true,
|
|
513
|
+
watch: false,
|
|
514
|
+
bundle: true,
|
|
515
|
+
clean: true,
|
|
516
|
+
debug: false,
|
|
517
|
+
loader: {
|
|
518
|
+
".aac": "file",
|
|
519
|
+
".css": "file",
|
|
520
|
+
".eot": "file",
|
|
521
|
+
".flac": "file",
|
|
522
|
+
".gif": "file",
|
|
523
|
+
".jpeg": "file",
|
|
524
|
+
".jpg": "file",
|
|
525
|
+
".mp3": "file",
|
|
526
|
+
".mp4": "file",
|
|
527
|
+
".ogg": "file",
|
|
528
|
+
".otf": "file",
|
|
529
|
+
".png": "file",
|
|
530
|
+
".svg": "file",
|
|
531
|
+
".ttf": "file",
|
|
532
|
+
".wav": "file",
|
|
533
|
+
".webm": "file",
|
|
534
|
+
".webp": "file",
|
|
535
|
+
".woff": "file",
|
|
536
|
+
".woff2": "file"
|
|
537
|
+
},
|
|
538
|
+
banner: _chunkCT7IVPJYjs.DEFAULT_COMPILED_BANNER
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
// ../esbuild/src/plugins/deps-check.ts
|
|
542
|
+
var _module = require('module');
|
|
543
|
+
|
|
544
|
+
var unusedIgnore = [
|
|
545
|
+
// these are our dev dependencies
|
|
546
|
+
/@types\/.*?/,
|
|
547
|
+
/@typescript-eslint.*?/,
|
|
548
|
+
/eslint.*?/,
|
|
549
|
+
"esbuild",
|
|
550
|
+
"husky",
|
|
551
|
+
"is-ci",
|
|
552
|
+
"lint-staged",
|
|
553
|
+
"prettier",
|
|
554
|
+
"typescript",
|
|
555
|
+
"ts-node",
|
|
556
|
+
"ts-jest",
|
|
557
|
+
"@swc/core",
|
|
558
|
+
"@swc/jest",
|
|
559
|
+
"jest",
|
|
560
|
+
// these are missing 3rd party deps
|
|
561
|
+
"spdx-exceptions",
|
|
562
|
+
"spdx-license-ids",
|
|
563
|
+
// type-only, so it is not detected
|
|
564
|
+
"ts-toolbelt",
|
|
565
|
+
// these are indirectly used by build
|
|
566
|
+
"buffer"
|
|
567
|
+
];
|
|
568
|
+
var missingIgnore = [
|
|
569
|
+
".prisma",
|
|
570
|
+
"@prisma/client",
|
|
571
|
+
"ts-toolbelt"
|
|
572
|
+
];
|
|
573
|
+
var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bundle) => ({
|
|
574
|
+
name: "storm:deps-check",
|
|
575
|
+
setup(build4) {
|
|
576
|
+
const pkgJsonPath = _path2.default.join(process.cwd(), "package.json");
|
|
577
|
+
const pkgContents = _chunk3GQAWCBQjs.__require.call(void 0, pkgJsonPath);
|
|
578
|
+
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
579
|
+
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
580
|
+
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
581
|
+
const dependencies = [
|
|
582
|
+
...regDependencies,
|
|
583
|
+
...bundle ? devDependencies : []
|
|
584
|
+
];
|
|
585
|
+
const collectedDependencies = /* @__PURE__ */ new Set();
|
|
586
|
+
const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
|
|
587
|
+
build4.onResolve({
|
|
588
|
+
filter: onlyPackages
|
|
589
|
+
}, (args) => {
|
|
590
|
+
if (args.importer.includes(process.cwd())) {
|
|
591
|
+
if (args.path[0] === "@") {
|
|
592
|
+
const [org, pkg] = args.path.split("/");
|
|
593
|
+
collectedDependencies.add(`${org}/${pkg}`);
|
|
594
|
+
} else {
|
|
595
|
+
const [pkg] = args.path.split("/");
|
|
596
|
+
collectedDependencies.add(pkg);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return {
|
|
600
|
+
external: true
|
|
601
|
+
};
|
|
602
|
+
});
|
|
603
|
+
build4.onEnd(() => {
|
|
604
|
+
const unusedDependencies = [
|
|
605
|
+
...dependencies
|
|
606
|
+
].filter((dep) => {
|
|
607
|
+
return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
|
|
608
|
+
});
|
|
609
|
+
const missingDependencies = [
|
|
610
|
+
...collectedDependencies
|
|
611
|
+
].filter((dep) => {
|
|
612
|
+
return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
|
|
613
|
+
});
|
|
614
|
+
const filteredUnusedDeps = unusedDependencies.filter((dep) => {
|
|
615
|
+
return !unusedIgnore.some((pattern) => dep.match(pattern));
|
|
616
|
+
});
|
|
617
|
+
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
618
|
+
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
619
|
+
});
|
|
620
|
+
_chunk36FMHXUDjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
621
|
+
_chunk36FMHXUDjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
622
|
+
if (filteredMissingDeps.length > 0) {
|
|
623
|
+
throw new Error(`Missing dependencies detected - please install them:
|
|
624
|
+
${JSON.stringify(filteredMissingDeps)}
|
|
625
|
+
`);
|
|
626
|
+
}
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
}), "depsCheckPlugin");
|
|
630
|
+
|
|
631
|
+
// ../esbuild/src/renderers/shebang.ts
|
|
632
|
+
var shebangRenderer = {
|
|
633
|
+
name: "shebang",
|
|
634
|
+
renderChunk(_, __, info) {
|
|
635
|
+
if (info.type === "chunk" && /\.(cjs|js|mjs)$/.test(info.path) && info.code.startsWith("#!")) {
|
|
636
|
+
info.mode = 493;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
// ../esbuild/src/utilities/helpers.ts
|
|
642
|
+
function handleSync(fn) {
|
|
643
|
+
try {
|
|
644
|
+
return fn();
|
|
645
|
+
} catch (error_) {
|
|
646
|
+
return error_;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
_chunk3GQAWCBQjs.__name.call(void 0, handleSync, "handleSync");
|
|
650
|
+
async function handleAsync(fn) {
|
|
651
|
+
try {
|
|
652
|
+
return await fn();
|
|
653
|
+
} catch (error_) {
|
|
654
|
+
return error_;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
_chunk3GQAWCBQjs.__name.call(void 0, handleAsync, "handleAsync");
|
|
658
|
+
var handle = handleSync;
|
|
659
|
+
handle.async = handleAsync;
|
|
660
|
+
var skip = Symbol("skip");
|
|
661
|
+
function transduceSync(list, transformer) {
|
|
662
|
+
const transduced = [];
|
|
663
|
+
for (const [i, element_] of list.entries()) {
|
|
664
|
+
const transformed = transformer(element_, i);
|
|
665
|
+
if (transformed !== skip) {
|
|
666
|
+
transduced[transduced.length] = transformed;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
return transduced;
|
|
670
|
+
}
|
|
671
|
+
_chunk3GQAWCBQjs.__name.call(void 0, transduceSync, "transduceSync");
|
|
672
|
+
async function transduceAsync(list, transformer) {
|
|
673
|
+
const transduced = [];
|
|
674
|
+
await Promise.all(list.entries().map(async ([i, element_]) => {
|
|
675
|
+
const transformed = await transformer(element_, i);
|
|
676
|
+
if (transformed !== skip) {
|
|
677
|
+
transduced[transduced.length] = transformed;
|
|
678
|
+
}
|
|
679
|
+
}));
|
|
680
|
+
return transduced;
|
|
681
|
+
}
|
|
682
|
+
_chunk3GQAWCBQjs.__name.call(void 0, transduceAsync, "transduceAsync");
|
|
683
|
+
var transduce = transduceSync;
|
|
684
|
+
transduce.async = transduceAsync;
|
|
685
|
+
function pipeSync(fn, ...fns) {
|
|
686
|
+
return (...args) => {
|
|
687
|
+
let result = fn(...args);
|
|
688
|
+
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
689
|
+
result = _optionalChain([fns, 'access', _20 => _20[i], 'optionalCall', _21 => _21(result)]);
|
|
690
|
+
}
|
|
691
|
+
return result;
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
_chunk3GQAWCBQjs.__name.call(void 0, pipeSync, "pipeSync");
|
|
695
|
+
function pipeAsync(fn, ...fns) {
|
|
696
|
+
return async (...args) => {
|
|
697
|
+
let result = await fn(...args);
|
|
698
|
+
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
699
|
+
result = await _optionalChain([fns, 'access', _22 => _22[i], 'optionalCall', _23 => _23(result)]);
|
|
700
|
+
}
|
|
701
|
+
return result;
|
|
702
|
+
};
|
|
703
|
+
}
|
|
704
|
+
_chunk3GQAWCBQjs.__name.call(void 0, pipeAsync, "pipeAsync");
|
|
705
|
+
var pipe = pipeSync;
|
|
706
|
+
pipe.async = pipeAsync;
|
|
707
|
+
|
|
708
|
+
// ../esbuild/src/build.ts
|
|
709
|
+
var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (userOptions) => {
|
|
710
|
+
const projectRoot = userOptions.projectRoot;
|
|
711
|
+
const workspaceRoot = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
|
|
712
|
+
if (!workspaceRoot) {
|
|
713
|
+
throw new Error("Cannot find Nx workspace root");
|
|
714
|
+
}
|
|
715
|
+
const config = await _chunk36FMHXUDjs.loadStormConfig.call(void 0, workspaceRoot.dir);
|
|
716
|
+
_chunk36FMHXUDjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
717
|
+
const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, "Build options resolution");
|
|
718
|
+
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
719
|
+
exitOnError: true
|
|
720
|
+
});
|
|
721
|
+
const projectJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
|
|
722
|
+
if (!await _node.hfs.isFile(projectJsonPath)) {
|
|
723
|
+
throw new Error("Cannot find project.json configuration");
|
|
724
|
+
}
|
|
725
|
+
const projectJson = await _node.hfs.json(projectJsonPath);
|
|
726
|
+
const projectName = projectJson.name;
|
|
727
|
+
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
728
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _24 => _24.projects, 'optionalAccess', _25 => _25[projectName]])) {
|
|
729
|
+
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
730
|
+
}
|
|
731
|
+
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
732
|
+
options.name ??= `${projectName}-${options.format}`;
|
|
733
|
+
options.target ??= _chunkCT7IVPJYjs.DEFAULT_TARGET;
|
|
734
|
+
const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
735
|
+
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
736
|
+
throw new Error("Cannot find package.json configuration");
|
|
737
|
+
}
|
|
738
|
+
const packageJson = await _node.hfs.json(packageJsonPath);
|
|
739
|
+
const outExtension = getOutputExtensionMap(options, packageJson.type);
|
|
740
|
+
const env = _chunkCT7IVPJYjs.getEnv.call(void 0, "esbuild", options);
|
|
741
|
+
const result = {
|
|
742
|
+
...options,
|
|
743
|
+
config,
|
|
744
|
+
mainFields: options.platform === "node" ? [
|
|
745
|
+
"module",
|
|
746
|
+
"main"
|
|
747
|
+
] : [
|
|
748
|
+
"browser",
|
|
749
|
+
"module",
|
|
750
|
+
"main"
|
|
751
|
+
],
|
|
752
|
+
resolveExtensions: [
|
|
753
|
+
".ts",
|
|
754
|
+
".js",
|
|
755
|
+
".node"
|
|
756
|
+
],
|
|
757
|
+
...userOptions,
|
|
758
|
+
tsconfig: _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
759
|
+
format: options.format || "cjs",
|
|
760
|
+
entryPoints: await _chunkCT7IVPJYjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
761
|
+
"./src/index.ts"
|
|
762
|
+
], userOptions.emitOnAll),
|
|
763
|
+
outdir: userOptions.outputPath || _chunkXCSSYTCUjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
764
|
+
plugins: [],
|
|
765
|
+
name: userOptions.name || projectName,
|
|
766
|
+
projectConfigurations,
|
|
767
|
+
projectName,
|
|
768
|
+
projectGraph,
|
|
769
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
770
|
+
minify: userOptions.minify || !userOptions.debug,
|
|
771
|
+
verbose: userOptions.verbose || _chunk36FMHXUDjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
772
|
+
includeSrc: userOptions.includeSrc === true,
|
|
773
|
+
metafile: userOptions.metafile !== false,
|
|
774
|
+
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
775
|
+
clean: userOptions.clean !== false,
|
|
776
|
+
emitOnAll: userOptions.emitOnAll === true,
|
|
777
|
+
assets: _nullishCoalesce(userOptions.assets, () => ( [])),
|
|
778
|
+
injectShims: userOptions.injectShims !== true,
|
|
779
|
+
bundle: userOptions.bundle !== false,
|
|
780
|
+
keepNames: true,
|
|
781
|
+
watch: userOptions.watch === true,
|
|
782
|
+
outExtension,
|
|
783
|
+
footer: userOptions.footer,
|
|
784
|
+
banner: {
|
|
785
|
+
js: options.banner || _chunkCT7IVPJYjs.DEFAULT_COMPILED_BANNER,
|
|
786
|
+
css: options.banner || _chunkCT7IVPJYjs.DEFAULT_COMPILED_BANNER
|
|
787
|
+
},
|
|
788
|
+
splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
|
|
789
|
+
treeShaking: options.format === "esm",
|
|
790
|
+
env,
|
|
791
|
+
define: {
|
|
792
|
+
STORM_FORMAT: JSON.stringify(options.format || "cjs"),
|
|
793
|
+
...options.format === "cjs" && options.injectShims ? {
|
|
794
|
+
"import.meta.url": "importMetaUrl"
|
|
795
|
+
} : {},
|
|
796
|
+
...options.define,
|
|
797
|
+
...Object.keys(env || {}).reduce((res, key) => {
|
|
798
|
+
const value = JSON.stringify(env[key]);
|
|
799
|
+
return {
|
|
800
|
+
...res,
|
|
801
|
+
[`process.env.${key}`]: value,
|
|
802
|
+
[`import.meta.env.${key}`]: value
|
|
803
|
+
};
|
|
804
|
+
}, {})
|
|
805
|
+
},
|
|
806
|
+
inject: [
|
|
807
|
+
options.format === "cjs" && options.injectShims ? _chunkXCSSYTCUjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : "",
|
|
808
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkXCSSYTCUjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : "",
|
|
809
|
+
..._nullishCoalesce(options.inject, () => ( []))
|
|
810
|
+
].filter(Boolean)
|
|
811
|
+
};
|
|
812
|
+
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
|
|
813
|
+
stopwatch();
|
|
814
|
+
return result;
|
|
815
|
+
}, "resolveOptions");
|
|
816
|
+
async function generatePackageJson(context2) {
|
|
817
|
+
if (context2.options.generatePackageJson !== false && await _node.hfs.isFile(_chunkXCSSYTCUjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
818
|
+
_chunk36FMHXUDjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
819
|
+
const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, "Write package.json file");
|
|
820
|
+
const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
821
|
+
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
822
|
+
throw new Error("Cannot find package.json configuration");
|
|
823
|
+
}
|
|
824
|
+
let packageJson = await _node.hfs.json(_chunkXCSSYTCUjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"));
|
|
825
|
+
if (!packageJson) {
|
|
826
|
+
throw new Error("Cannot find package.json configuration file");
|
|
827
|
+
}
|
|
828
|
+
packageJson = await _chunkCT7IVPJYjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
829
|
+
packageJson = await _chunkCT7IVPJYjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
830
|
+
packageJson.exports ??= {};
|
|
831
|
+
packageJson.exports["./package.json"] ??= "./package.json";
|
|
832
|
+
packageJson.exports["."] ??= _chunkCT7IVPJYjs.addPackageJsonExport.call(void 0, "index", packageJson.type, context2.options.sourceRoot);
|
|
833
|
+
let entryPoints = [
|
|
834
|
+
{
|
|
835
|
+
in: "./src/index.ts",
|
|
836
|
+
out: "./src/index.ts"
|
|
837
|
+
}
|
|
838
|
+
];
|
|
839
|
+
if (context2.options.entryPoints) {
|
|
840
|
+
if (Array.isArray(context2.options.entryPoints)) {
|
|
841
|
+
entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
|
|
842
|
+
in: entryPoint,
|
|
843
|
+
out: entryPoint
|
|
844
|
+
} : entryPoint);
|
|
845
|
+
}
|
|
846
|
+
for (const entryPoint of entryPoints) {
|
|
847
|
+
const split = entryPoint.out.split(".");
|
|
848
|
+
split.pop();
|
|
849
|
+
const entry = split.join(".").replaceAll("\\", "/");
|
|
850
|
+
packageJson.exports[`./${entry}`] ??= _chunkCT7IVPJYjs.addPackageJsonExport.call(void 0, entry, packageJson.type, context2.options.sourceRoot);
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
854
|
+
packageJson.module = packageJson.type === "module" ? "./dist/index.js" : "./dist/index.mjs";
|
|
855
|
+
packageJson.types = "./dist/index.d.ts";
|
|
856
|
+
packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
|
|
857
|
+
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
858
|
+
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
859
|
+
}
|
|
860
|
+
return ret;
|
|
861
|
+
}, packageJson.exports);
|
|
862
|
+
await _devkit.writeJsonFile.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
|
|
863
|
+
stopwatch();
|
|
864
|
+
}
|
|
865
|
+
return context2;
|
|
866
|
+
}
|
|
867
|
+
_chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
868
|
+
async function createOptions(options) {
|
|
869
|
+
return _estoolkit.flatten.call(void 0, await Promise.all(_compat.map.call(void 0, options, (opt) => [
|
|
870
|
+
// we defer it so that we don't trigger glob immediately
|
|
871
|
+
() => resolveOptions(opt)
|
|
872
|
+
])));
|
|
873
|
+
}
|
|
874
|
+
_chunk3GQAWCBQjs.__name.call(void 0, createOptions, "createOptions");
|
|
875
|
+
async function generateContext(getOptions) {
|
|
876
|
+
const options = await getOptions();
|
|
877
|
+
const rendererEngine = new RendererEngine([
|
|
878
|
+
shebangRenderer,
|
|
879
|
+
...options.renderers || []
|
|
880
|
+
]);
|
|
881
|
+
return {
|
|
882
|
+
options,
|
|
883
|
+
rendererEngine
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
_chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
|
|
887
|
+
async function executeEsBuild(context2) {
|
|
888
|
+
_chunk36FMHXUDjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
889
|
+
const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
890
|
+
if (process.env.WATCH === "true") {
|
|
891
|
+
const ctx = await esbuild2.context(context2.options);
|
|
892
|
+
watch(ctx, context2.options);
|
|
893
|
+
}
|
|
894
|
+
const result = await esbuild2.build(context2.options);
|
|
895
|
+
if (result.metafile) {
|
|
896
|
+
const metafilePath = `${context2.options.outdir}/${context2.options.name}.meta.json`;
|
|
897
|
+
await _node.hfs.write(metafilePath, JSON.stringify(result.metafile));
|
|
898
|
+
}
|
|
899
|
+
stopwatch();
|
|
900
|
+
return context2;
|
|
901
|
+
}
|
|
902
|
+
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
903
|
+
async function copyBuildAssets(context2) {
|
|
904
|
+
if (_optionalChain([context2, 'access', _26 => _26.result, 'optionalAccess', _27 => _27.errors, 'access', _28 => _28.length]) === 0) {
|
|
905
|
+
_chunk36FMHXUDjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
906
|
+
const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
907
|
+
await _chunkCT7IVPJYjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.projectName, context2.options.sourceRoot, true, false);
|
|
908
|
+
stopwatch();
|
|
909
|
+
}
|
|
910
|
+
return context2;
|
|
911
|
+
}
|
|
912
|
+
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
913
|
+
async function reportResults(context2) {
|
|
914
|
+
if (_optionalChain([context2, 'access', _29 => _29.result, 'optionalAccess', _30 => _30.errors, 'access', _31 => _31.length]) === 0) {
|
|
915
|
+
if (context2.result.warnings.length > 0) {
|
|
916
|
+
_chunk36FMHXUDjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
917
|
+
}
|
|
918
|
+
_chunk36FMHXUDjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
922
|
+
async function dependencyCheck(options) {
|
|
923
|
+
if (process.env.DEV === "true") {
|
|
924
|
+
return void 0;
|
|
925
|
+
}
|
|
926
|
+
if (process.env.CI && !process.env.BUILDKITE) {
|
|
927
|
+
return void 0;
|
|
928
|
+
}
|
|
929
|
+
const buildPromise = esbuild2.build({
|
|
930
|
+
entryPoints: _globby.globbySync.call(void 0, "**/*.{j,t}s", {
|
|
931
|
+
// We don't check dependencies in ecosystem tests because tests are isolated from the build.
|
|
932
|
+
ignore: [
|
|
933
|
+
"./src/__tests__/**/*",
|
|
934
|
+
"./tests/e2e/**/*",
|
|
935
|
+
"./dist/**/*"
|
|
936
|
+
],
|
|
937
|
+
gitignore: true
|
|
938
|
+
}),
|
|
939
|
+
logLevel: "silent",
|
|
940
|
+
bundle: true,
|
|
941
|
+
write: false,
|
|
942
|
+
outdir: "out",
|
|
943
|
+
plugins: [
|
|
944
|
+
depsCheckPlugin(options.bundle)
|
|
945
|
+
]
|
|
946
|
+
});
|
|
947
|
+
await buildPromise.catch(() => {
|
|
948
|
+
});
|
|
949
|
+
return void 0;
|
|
950
|
+
}
|
|
951
|
+
_chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
952
|
+
async function cleanOutputPath(context2) {
|
|
953
|
+
if (context2.options.clean !== false && context2.options.outdir) {
|
|
954
|
+
await clean(context2.options.name, context2.options.outdir, context2.options.config);
|
|
955
|
+
}
|
|
956
|
+
return context2;
|
|
957
|
+
}
|
|
958
|
+
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
959
|
+
async function build3(options) {
|
|
960
|
+
_chunk36FMHXUDjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
961
|
+
const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
962
|
+
try {
|
|
963
|
+
const opts = Array.isArray(options) ? options : [
|
|
964
|
+
options
|
|
965
|
+
];
|
|
966
|
+
if (opts.length === 0) {
|
|
967
|
+
throw new Error("No build options were provided");
|
|
968
|
+
}
|
|
969
|
+
void transduce.async(opts, dependencyCheck);
|
|
970
|
+
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
971
|
+
_chunk36FMHXUDjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
972
|
+
} catch (error) {
|
|
973
|
+
_chunk36FMHXUDjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
974
|
+
throw error;
|
|
975
|
+
} finally {
|
|
976
|
+
stopwatch();
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
_chunk3GQAWCBQjs.__name.call(void 0, build3, "build");
|
|
980
|
+
var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, options) => {
|
|
981
|
+
if (!options.watch) {
|
|
982
|
+
return context2;
|
|
983
|
+
}
|
|
984
|
+
const config = {
|
|
985
|
+
ignoreInitial: true,
|
|
986
|
+
useFsEvents: true,
|
|
987
|
+
ignored: [
|
|
988
|
+
"./src/__tests__/**/*",
|
|
989
|
+
"./package.json"
|
|
990
|
+
]
|
|
991
|
+
};
|
|
992
|
+
const changeWatcher = _chokidar.watch.call(void 0, [
|
|
993
|
+
"./src/**/*"
|
|
994
|
+
], config);
|
|
995
|
+
const fastRebuild = _estoolkit.debounce.call(void 0, async () => {
|
|
996
|
+
const timeBefore = Date.now();
|
|
997
|
+
const rebuildResult = await handle.async(() => {
|
|
998
|
+
return context2.rebuild();
|
|
999
|
+
});
|
|
1000
|
+
if (rebuildResult instanceof Error) {
|
|
1001
|
+
_chunk36FMHXUDjs.writeError.call(void 0, rebuildResult.message);
|
|
1002
|
+
}
|
|
1003
|
+
_chunk36FMHXUDjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1004
|
+
}, 10);
|
|
1005
|
+
changeWatcher.on("change", fastRebuild);
|
|
1006
|
+
return void 0;
|
|
1007
|
+
}, "watch");
|
|
1008
|
+
|
|
1009
|
+
// src/executors/esbuild/executor.ts
|
|
1010
|
+
async function esbuildExecutorFn(options, context2, config) {
|
|
1011
|
+
_chunk36FMHXUDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1012
|
+
if (!_optionalChain([context2, 'access', _32 => _32.projectsConfigurations, 'optionalAccess', _33 => _33.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _34 => _34.projectsConfigurations, 'access', _35 => _35.projects, 'access', _36 => _36[context2.projectName], 'optionalAccess', _37 => _37.root])) {
|
|
1013
|
+
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1014
|
+
}
|
|
1015
|
+
await build3({
|
|
1016
|
+
...options,
|
|
1017
|
+
projectRoot: _optionalChain([context2, 'access', _38 => _38.projectsConfigurations, 'access', _39 => _39.projects, 'optionalAccess', _40 => _40[context2.projectName], 'access', _41 => _41.root]),
|
|
1018
|
+
projectName: context2.projectName,
|
|
1019
|
+
sourceRoot: _optionalChain([context2, 'access', _42 => _42.projectsConfigurations, 'access', _43 => _43.projects, 'optionalAccess', _44 => _44[context2.projectName], 'optionalAccess', _45 => _45.sourceRoot]),
|
|
1020
|
+
format: options.format,
|
|
1021
|
+
platform: options.format
|
|
1022
|
+
});
|
|
1023
|
+
return {
|
|
1024
|
+
success: true
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1027
|
+
_chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
1028
|
+
var executor_default = _chunkMSENNRAYjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
|
|
1029
|
+
skipReadingConfig: false,
|
|
1030
|
+
hooks: {
|
|
1031
|
+
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
1032
|
+
options.entry ??= [
|
|
1033
|
+
"src/index.ts"
|
|
1034
|
+
];
|
|
1035
|
+
options.outputPath ??= "dist/{projectRoot}";
|
|
1036
|
+
options.tsconfig ??= "{projectRoot}/tsconfig.json";
|
|
1037
|
+
return options;
|
|
1038
|
+
}, "applyDefaultOptions")
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
exports.esbuildExecutorFn = esbuildExecutorFn; exports.executor_default = executor_default;
|