@storm-software/workspace-tools 1.228.1 → 1.229.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/CHANGELOG.md +16 -0
- package/dist/chunk-2EGD2QSN.js +183 -0
- package/dist/chunk-2JA7WAH7.mjs +93 -0
- package/dist/chunk-34LSWMWV.mjs +20 -0
- package/dist/chunk-35B5C22H.mjs +50 -0
- package/dist/chunk-36FMHXUD.js +988 -0
- package/dist/chunk-3GQAWCBQ.js +13 -0
- package/dist/chunk-3GVBGSCQ.js +86 -0
- package/dist/chunk-3IZ3O4OK.js +30 -0
- package/dist/chunk-3J53KHVV.js +1 -0
- package/dist/chunk-3ORCJSUT.mjs +37 -0
- package/dist/chunk-45GU4HW2.js +267 -0
- package/dist/chunk-4NOLUAQN.js +43 -0
- package/dist/chunk-5CPYNJT2.js +61 -0
- package/dist/chunk-5MKQX2FE.js +82 -0
- package/dist/chunk-6267MSX4.mjs +118 -0
- package/dist/chunk-66TYTM73.mjs +102 -0
- package/dist/chunk-6B6IVIMQ.js +31 -0
- package/dist/chunk-6QO3KMZA.js +93 -0
- package/dist/chunk-6TSAUSG4.mjs +18 -0
- package/dist/chunk-6YZ3OUJB.mjs +0 -0
- package/dist/chunk-6ZQ3QYXH.mjs +93 -0
- package/dist/chunk-7AXFMX2T.js +37 -0
- package/dist/chunk-7CJRMBX3.js +20 -0
- package/dist/chunk-7MZQTO7J.js +726 -0
- package/dist/chunk-7YRW5HNX.js +102 -0
- package/dist/chunk-B3KIYNGT.mjs +88 -0
- package/dist/chunk-B7LWGAUI.js +50 -0
- package/dist/chunk-BO44O7D2.mjs +43 -0
- package/dist/chunk-BWFTYFWM.js +59 -0
- package/dist/chunk-CT7IVPJY.js +384 -0
- package/dist/chunk-CZJW5H5T.mjs +183 -0
- package/dist/chunk-DGC5L3Z7.mjs +22 -0
- package/dist/chunk-DHGZTMND.js +26 -0
- package/dist/chunk-DIODSFGH.js +1045 -0
- package/dist/chunk-DLO5NZQI.mjs +1046 -0
- package/dist/chunk-DLQLZTCZ.mjs +69 -0
- package/dist/chunk-DMUTOQCB.mjs +82 -0
- package/dist/chunk-EK75QNMS.mjs +40 -0
- package/dist/chunk-ESRRKJO5.mjs +51 -0
- package/dist/chunk-F5WI7VDM.js +42 -0
- package/dist/chunk-F7QTSVDJ.mjs +130 -0
- package/dist/chunk-FBLF4KJF.js +306 -0
- package/dist/chunk-FFBZYD6R.mjs +59 -0
- package/dist/chunk-FP4PPOO6.js +32 -0
- package/dist/chunk-GGGO542M.js +93 -0
- package/dist/chunk-GV44QHV3.mjs +32 -0
- package/dist/chunk-GZPCM2GI.mjs +413 -0
- package/dist/chunk-HAT7PSQD.mjs +509 -0
- package/dist/chunk-HI4G4OOG.js +40 -0
- package/dist/chunk-I734UVDT.js +22 -0
- package/dist/chunk-I7OZOKTH.js +65 -0
- package/dist/chunk-INAG73GE.js +69 -0
- package/dist/chunk-INERRJ6Q.js +1 -0
- package/dist/chunk-J5SXKBBU.mjs +30 -0
- package/dist/chunk-JEV3GSS7.js +51 -0
- package/dist/chunk-JGP4YWZY.js +1 -0
- package/dist/chunk-JGTW4AJ7.mjs +32 -0
- package/dist/chunk-KBJ7IEXI.js +1 -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-P5P43FOZ.mjs +0 -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-BLYdn00o.d.mts +108 -0
- package/dist/generator-BqzpDHpv.d.mts +322 -0
- package/dist/generator-BufhnJev.d.ts +322 -0
- package/dist/generator-CC8n6BWL.d.mts +38 -0
- package/dist/generator-CtpgcwxE.d.ts +38 -0
- package/dist/generator-DeKyhxAj.d.mts +322 -0
- package/dist/generator-DeNfAL1R.d.ts +184 -0
- package/dist/generator-Dyq3mgZU.d.mts +322 -0
- package/dist/generator-OLytwpdD.d.ts +322 -0
- package/dist/generator-T2p5gT0C.d.ts +322 -0
- package/dist/generator-noL-xIjx.d.ts +108 -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 +51 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +280 -0
- package/dist/index.mjs +280 -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/index.d.mts +337 -0
- package/dist/src/base/index.d.ts +337 -0
- package/dist/src/base/index.js +49 -0
- package/dist/src/base/index.mjs +49 -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/types.d.mts +1 -1
- package/dist/src/types.d.ts +1 -1
- 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-BmsLBqaq.d.ts +101 -0
- package/dist/types-CQzaS20Q.d.mts +101 -0
- package/dist/types-D9vU63tt.d.mts +1185 -0
- package/dist/types-D9vU63tt.d.ts +1185 -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,988 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
11
|
+
|
|
12
|
+
// ../config/src/schema.ts
|
|
13
|
+
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
14
|
+
|
|
15
|
+
// ../config/src/constants.ts
|
|
16
|
+
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
17
|
+
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
18
|
+
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
19
|
+
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
20
|
+
|
|
21
|
+
// ../config/src/schema.ts
|
|
22
|
+
var DarkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
23
|
+
var LightColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
24
|
+
var BrandColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
25
|
+
var AlternateColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
26
|
+
var AccentColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
27
|
+
var LinkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
28
|
+
var HelpColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
29
|
+
var SuccessColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
30
|
+
var InfoColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
31
|
+
var WarningColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
32
|
+
var DangerColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
33
|
+
var FatalColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
34
|
+
var PositiveColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
35
|
+
var NegativeColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
36
|
+
var DarkThemeColorConfigSchema = _zod2.default.object({
|
|
37
|
+
foreground: LightColorSchema,
|
|
38
|
+
background: DarkColorSchema,
|
|
39
|
+
brand: BrandColorSchema,
|
|
40
|
+
alternate: AlternateColorSchema,
|
|
41
|
+
accent: AccentColorSchema,
|
|
42
|
+
link: LinkColorSchema,
|
|
43
|
+
help: HelpColorSchema,
|
|
44
|
+
success: SuccessColorSchema,
|
|
45
|
+
info: InfoColorSchema,
|
|
46
|
+
warning: WarningColorSchema,
|
|
47
|
+
danger: DangerColorSchema,
|
|
48
|
+
fatal: FatalColorSchema,
|
|
49
|
+
positive: PositiveColorSchema,
|
|
50
|
+
negative: NegativeColorSchema
|
|
51
|
+
});
|
|
52
|
+
var LightThemeColorConfigSchema = _zod2.default.object({
|
|
53
|
+
foreground: DarkColorSchema,
|
|
54
|
+
background: LightColorSchema,
|
|
55
|
+
brand: BrandColorSchema,
|
|
56
|
+
alternate: AlternateColorSchema,
|
|
57
|
+
accent: AccentColorSchema,
|
|
58
|
+
link: LinkColorSchema,
|
|
59
|
+
help: HelpColorSchema,
|
|
60
|
+
success: SuccessColorSchema,
|
|
61
|
+
info: InfoColorSchema,
|
|
62
|
+
warning: WarningColorSchema,
|
|
63
|
+
danger: DangerColorSchema,
|
|
64
|
+
fatal: FatalColorSchema,
|
|
65
|
+
positive: PositiveColorSchema,
|
|
66
|
+
negative: NegativeColorSchema
|
|
67
|
+
});
|
|
68
|
+
var MultiThemeColorConfigSchema = _zod2.default.object({
|
|
69
|
+
dark: DarkThemeColorConfigSchema,
|
|
70
|
+
light: LightThemeColorConfigSchema
|
|
71
|
+
});
|
|
72
|
+
var SingleThemeColorConfigSchema = _zod2.default.object({
|
|
73
|
+
dark: DarkColorSchema,
|
|
74
|
+
light: LightColorSchema,
|
|
75
|
+
brand: BrandColorSchema,
|
|
76
|
+
alternate: AlternateColorSchema,
|
|
77
|
+
accent: AccentColorSchema,
|
|
78
|
+
link: LinkColorSchema,
|
|
79
|
+
help: HelpColorSchema,
|
|
80
|
+
success: SuccessColorSchema,
|
|
81
|
+
info: InfoColorSchema,
|
|
82
|
+
warning: WarningColorSchema,
|
|
83
|
+
danger: DangerColorSchema,
|
|
84
|
+
fatal: FatalColorSchema,
|
|
85
|
+
positive: PositiveColorSchema,
|
|
86
|
+
negative: NegativeColorSchema
|
|
87
|
+
});
|
|
88
|
+
var RegistryUrlConfigSchema = _zod2.default.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
89
|
+
var RegistryConfigSchema = _zod2.default.object({
|
|
90
|
+
github: RegistryUrlConfigSchema,
|
|
91
|
+
npm: RegistryUrlConfigSchema,
|
|
92
|
+
cargo: RegistryUrlConfigSchema,
|
|
93
|
+
cyclone: RegistryUrlConfigSchema,
|
|
94
|
+
container: RegistryUrlConfigSchema
|
|
95
|
+
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
96
|
+
var ColorConfigSchema = SingleThemeColorConfigSchema.or(MultiThemeColorConfigSchema).describe("Colors used for various workspace elements");
|
|
97
|
+
var ColorConfigMapSchema = _zod2.default.union([
|
|
98
|
+
_zod2.default.object({
|
|
99
|
+
"base": ColorConfigSchema
|
|
100
|
+
}),
|
|
101
|
+
_zod2.default.record(_zod2.default.string(), ColorConfigSchema)
|
|
102
|
+
]);
|
|
103
|
+
var WorkspaceBotConfigSchema = _zod2.default.object({
|
|
104
|
+
name: _zod2.default.string().trim().default("Stormie-Bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
|
|
105
|
+
email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
106
|
+
}).describe("The workspace's bot user's config used to automated various operations tasks");
|
|
107
|
+
var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
108
|
+
cache: _zod2.default.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
109
|
+
data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
110
|
+
config: _zod2.default.string().trim().optional().describe("The directory used to store the environment's configuration files"),
|
|
111
|
+
temp: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
112
|
+
log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
113
|
+
build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
114
|
+
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
115
|
+
var StormConfigSchema = _zod2.default.object({
|
|
116
|
+
$schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
117
|
+
extends: _zod2.default.string().trim().optional().describe("The path to a base JSON file to use as a configuration preset file"),
|
|
118
|
+
name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
119
|
+
namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
120
|
+
organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
121
|
+
repository: _zod2.default.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
122
|
+
license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
123
|
+
homepage: _zod2.default.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
|
|
124
|
+
docs: _zod2.default.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
|
|
125
|
+
licensing: _zod2.default.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
126
|
+
branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
|
|
127
|
+
preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
128
|
+
owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
129
|
+
bot: WorkspaceBotConfigSchema,
|
|
130
|
+
env: _zod2.default.enum([
|
|
131
|
+
"development",
|
|
132
|
+
"staging",
|
|
133
|
+
"production"
|
|
134
|
+
]).default("production").describe("The current runtime environment name for the package"),
|
|
135
|
+
workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
|
|
136
|
+
externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
137
|
+
skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
138
|
+
directories: WorkspaceDirectoryConfigSchema,
|
|
139
|
+
packageManager: _zod2.default.enum([
|
|
140
|
+
"npm",
|
|
141
|
+
"yarn",
|
|
142
|
+
"pnpm",
|
|
143
|
+
"bun"
|
|
144
|
+
]).default("npm").describe("The JavaScript/TypeScript package manager used by the repository"),
|
|
145
|
+
timezone: _zod2.default.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
146
|
+
locale: _zod2.default.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
147
|
+
logLevel: _zod2.default.enum([
|
|
148
|
+
"silent",
|
|
149
|
+
"fatal",
|
|
150
|
+
"error",
|
|
151
|
+
"warn",
|
|
152
|
+
"success",
|
|
153
|
+
"info",
|
|
154
|
+
"debug",
|
|
155
|
+
"trace",
|
|
156
|
+
"all"
|
|
157
|
+
]).default("info").describe("The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."),
|
|
158
|
+
registry: RegistryConfigSchema,
|
|
159
|
+
configFile: _zod2.default.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
|
|
160
|
+
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
|
|
161
|
+
extensions: _zod2.default.record(_zod2.default.any()).optional().default({}).describe("Configuration of each used extension")
|
|
162
|
+
}).describe("Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo.");
|
|
163
|
+
|
|
164
|
+
// ../config/src/types.ts
|
|
165
|
+
var COLOR_KEYS = [
|
|
166
|
+
"dark",
|
|
167
|
+
"light",
|
|
168
|
+
"base",
|
|
169
|
+
"brand",
|
|
170
|
+
"alternate",
|
|
171
|
+
"accent",
|
|
172
|
+
"link",
|
|
173
|
+
"success",
|
|
174
|
+
"help",
|
|
175
|
+
"info",
|
|
176
|
+
"warning",
|
|
177
|
+
"danger",
|
|
178
|
+
"fatal",
|
|
179
|
+
"positive",
|
|
180
|
+
"negative"
|
|
181
|
+
];
|
|
182
|
+
|
|
183
|
+
// ../config-tools/src/types.ts
|
|
184
|
+
var LogLevel = {
|
|
185
|
+
SILENT: 0,
|
|
186
|
+
FATAL: 10,
|
|
187
|
+
ERROR: 20,
|
|
188
|
+
WARN: 30,
|
|
189
|
+
SUCCESS: 35,
|
|
190
|
+
INFO: 40,
|
|
191
|
+
DEBUG: 60,
|
|
192
|
+
TRACE: 70,
|
|
193
|
+
ALL: 100
|
|
194
|
+
};
|
|
195
|
+
var LogLevelLabel = {
|
|
196
|
+
SILENT: "silent",
|
|
197
|
+
FATAL: "fatal",
|
|
198
|
+
ERROR: "error",
|
|
199
|
+
WARN: "warn",
|
|
200
|
+
SUCCESS: "success",
|
|
201
|
+
INFO: "info",
|
|
202
|
+
DEBUG: "debug",
|
|
203
|
+
TRACE: "trace",
|
|
204
|
+
ALL: "all"
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
// ../config-tools/src/utilities/get-default-config.ts
|
|
208
|
+
var _fs = require('fs');
|
|
209
|
+
var _path = require('path');
|
|
210
|
+
var DEFAULT_COLOR_CONFIG = {
|
|
211
|
+
"light": {
|
|
212
|
+
"background": "#fafafa",
|
|
213
|
+
"foreground": "#1d1e22",
|
|
214
|
+
"brand": "#1fb2a6",
|
|
215
|
+
"alternate": "#db2777",
|
|
216
|
+
"help": "#5C4EE5",
|
|
217
|
+
"success": "#087f5b",
|
|
218
|
+
"info": "#0550ae",
|
|
219
|
+
"warning": "#e3b341",
|
|
220
|
+
"danger": "#D8314A",
|
|
221
|
+
"positive": "#22c55e",
|
|
222
|
+
"negative": "#dc2626"
|
|
223
|
+
},
|
|
224
|
+
"dark": {
|
|
225
|
+
"background": "#1d1e22",
|
|
226
|
+
"foreground": "#cbd5e1",
|
|
227
|
+
"brand": "#2dd4bf",
|
|
228
|
+
"alternate": "#db2777",
|
|
229
|
+
"help": "#818cf8",
|
|
230
|
+
"success": "#10b981",
|
|
231
|
+
"info": "#58a6ff",
|
|
232
|
+
"warning": "#f3d371",
|
|
233
|
+
"danger": "#D8314A",
|
|
234
|
+
"positive": "#22c55e",
|
|
235
|
+
"negative": "#dc2626"
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (root) => {
|
|
239
|
+
let license = STORM_DEFAULT_LICENSE;
|
|
240
|
+
let homepage = STORM_DEFAULT_HOMEPAGE;
|
|
241
|
+
let name;
|
|
242
|
+
let namespace;
|
|
243
|
+
let repository;
|
|
244
|
+
const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, root);
|
|
245
|
+
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
|
|
246
|
+
const file = _fs.readFileSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"), {
|
|
247
|
+
encoding: "utf8"
|
|
248
|
+
});
|
|
249
|
+
if (file) {
|
|
250
|
+
const packageJson = JSON.parse(file);
|
|
251
|
+
if (packageJson.name) {
|
|
252
|
+
name = packageJson.name;
|
|
253
|
+
}
|
|
254
|
+
if (packageJson.namespace) {
|
|
255
|
+
namespace = packageJson.namespace;
|
|
256
|
+
}
|
|
257
|
+
if (_optionalChain([packageJson, 'access', _2 => _2.repository, 'optionalAccess', _3 => _3.url])) {
|
|
258
|
+
repository = _optionalChain([packageJson, 'access', _4 => _4.repository, 'optionalAccess', _5 => _5.url]);
|
|
259
|
+
}
|
|
260
|
+
if (packageJson.license) {
|
|
261
|
+
license = packageJson.license;
|
|
262
|
+
}
|
|
263
|
+
if (packageJson.homepage) {
|
|
264
|
+
homepage = packageJson.homepage;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return {
|
|
269
|
+
workspaceRoot,
|
|
270
|
+
name,
|
|
271
|
+
namespace,
|
|
272
|
+
repository,
|
|
273
|
+
license,
|
|
274
|
+
homepage,
|
|
275
|
+
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
276
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`
|
|
277
|
+
};
|
|
278
|
+
}, "getDefaultConfig");
|
|
279
|
+
|
|
280
|
+
// ../config-tools/src/logger/chalk.ts
|
|
281
|
+
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
282
|
+
var chalkDefault = {
|
|
283
|
+
hex: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
284
|
+
bgHex: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (_) => ({
|
|
285
|
+
whiteBright: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
286
|
+
}), "bgHex"),
|
|
287
|
+
whiteBright: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message) => message, "whiteBright"),
|
|
288
|
+
gray: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message) => message, "gray"),
|
|
289
|
+
bold: {
|
|
290
|
+
hex: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
291
|
+
bgHex: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (_) => ({
|
|
292
|
+
whiteBright: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
293
|
+
}), "bgHex"),
|
|
294
|
+
whiteBright: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
295
|
+
},
|
|
296
|
+
dim: {
|
|
297
|
+
hex: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
298
|
+
gray: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message) => message, "gray")
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
var getChalk = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
302
|
+
let _chalk = _chalk3.default;
|
|
303
|
+
if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright])) {
|
|
304
|
+
_chalk = chalkDefault;
|
|
305
|
+
}
|
|
306
|
+
return _chalk;
|
|
307
|
+
}, "getChalk");
|
|
308
|
+
|
|
309
|
+
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
310
|
+
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
311
|
+
function isUnicodeSupported() {
|
|
312
|
+
const { env } = _process2.default;
|
|
313
|
+
const { TERM, TERM_PROGRAM } = env;
|
|
314
|
+
if (_process2.default.platform !== "win32") {
|
|
315
|
+
return TERM !== "linux";
|
|
316
|
+
}
|
|
317
|
+
return Boolean(env.WT_SESSION) || // Windows Terminal
|
|
318
|
+
Boolean(env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
|
|
319
|
+
env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
320
|
+
TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
321
|
+
}
|
|
322
|
+
_chunk3GQAWCBQjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
|
|
323
|
+
|
|
324
|
+
// ../config-tools/src/logger/console-icons.ts
|
|
325
|
+
var useIcon = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
|
|
326
|
+
var CONSOLE_ICONS = {
|
|
327
|
+
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
328
|
+
[LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
|
|
329
|
+
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
330
|
+
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
331
|
+
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
332
|
+
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
333
|
+
[LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
|
|
334
|
+
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
// ../config-tools/src/logger/format-timestamp.ts
|
|
338
|
+
var formatTimestamp = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
|
|
339
|
+
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
340
|
+
}, "formatTimestamp");
|
|
341
|
+
|
|
342
|
+
// ../config-tools/src/logger/get-log-level.ts
|
|
343
|
+
var getLogLevel = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (label) => {
|
|
344
|
+
switch (label) {
|
|
345
|
+
case "all":
|
|
346
|
+
return LogLevel.ALL;
|
|
347
|
+
case "trace":
|
|
348
|
+
return LogLevel.TRACE;
|
|
349
|
+
case "debug":
|
|
350
|
+
return LogLevel.DEBUG;
|
|
351
|
+
case "info":
|
|
352
|
+
return LogLevel.INFO;
|
|
353
|
+
case "warn":
|
|
354
|
+
return LogLevel.WARN;
|
|
355
|
+
case "error":
|
|
356
|
+
return LogLevel.ERROR;
|
|
357
|
+
case "fatal":
|
|
358
|
+
return LogLevel.FATAL;
|
|
359
|
+
case "silent":
|
|
360
|
+
return LogLevel.SILENT;
|
|
361
|
+
default:
|
|
362
|
+
return LogLevel.INFO;
|
|
363
|
+
}
|
|
364
|
+
}, "getLogLevel");
|
|
365
|
+
var getLogLevelLabel = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (logLevel = LogLevel.INFO) => {
|
|
366
|
+
if (logLevel >= LogLevel.ALL) {
|
|
367
|
+
return LogLevelLabel.ALL;
|
|
368
|
+
}
|
|
369
|
+
if (logLevel >= LogLevel.TRACE) {
|
|
370
|
+
return LogLevelLabel.TRACE;
|
|
371
|
+
}
|
|
372
|
+
if (logLevel >= LogLevel.DEBUG) {
|
|
373
|
+
return LogLevelLabel.DEBUG;
|
|
374
|
+
}
|
|
375
|
+
if (logLevel >= LogLevel.INFO) {
|
|
376
|
+
return LogLevelLabel.INFO;
|
|
377
|
+
}
|
|
378
|
+
if (logLevel >= LogLevel.WARN) {
|
|
379
|
+
return LogLevelLabel.WARN;
|
|
380
|
+
}
|
|
381
|
+
if (logLevel >= LogLevel.ERROR) {
|
|
382
|
+
return LogLevelLabel.ERROR;
|
|
383
|
+
}
|
|
384
|
+
if (logLevel >= LogLevel.FATAL) {
|
|
385
|
+
return LogLevelLabel.FATAL;
|
|
386
|
+
}
|
|
387
|
+
if (logLevel <= LogLevel.SILENT) {
|
|
388
|
+
return LogLevelLabel.SILENT;
|
|
389
|
+
}
|
|
390
|
+
return LogLevelLabel.INFO;
|
|
391
|
+
}, "getLogLevelLabel");
|
|
392
|
+
var isVerbose = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (label = LogLevelLabel.SILENT) => {
|
|
393
|
+
const logLevel = typeof label === "string" ? getLogLevel(label) : label;
|
|
394
|
+
return logLevel >= LogLevel.DEBUG;
|
|
395
|
+
}, "isVerbose");
|
|
396
|
+
|
|
397
|
+
// ../config-tools/src/logger/console.ts
|
|
398
|
+
var getLogFn = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}) => {
|
|
399
|
+
const _chalk = getChalk();
|
|
400
|
+
const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
401
|
+
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
402
|
+
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
403
|
+
return (_) => {
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
407
|
+
return (message) => {
|
|
408
|
+
console.error(`
|
|
409
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
410
|
+
`);
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
414
|
+
return (message) => {
|
|
415
|
+
console.error(`
|
|
416
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
417
|
+
`);
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
421
|
+
return (message) => {
|
|
422
|
+
console.warn(`
|
|
423
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
424
|
+
`);
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
428
|
+
return (message) => {
|
|
429
|
+
console.info(`
|
|
430
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
431
|
+
`);
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
435
|
+
return (message) => {
|
|
436
|
+
console.info(`
|
|
437
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
438
|
+
`);
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
442
|
+
return (message) => {
|
|
443
|
+
console.debug(`
|
|
444
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
445
|
+
`);
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
return (message) => {
|
|
449
|
+
console.log(`
|
|
450
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
451
|
+
`);
|
|
452
|
+
};
|
|
453
|
+
}, "getLogFn");
|
|
454
|
+
var writeFatal = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.FATAL, config)(message), "writeFatal");
|
|
455
|
+
var writeError = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ERROR, config)(message), "writeError");
|
|
456
|
+
var writeWarning = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.WARN, config)(message), "writeWarning");
|
|
457
|
+
var writeInfo = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.INFO, config)(message), "writeInfo");
|
|
458
|
+
var writeSuccess = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.SUCCESS, config)(message), "writeSuccess");
|
|
459
|
+
var writeDebug = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
|
|
460
|
+
var writeTrace = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
|
|
461
|
+
var writeSystem = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ALL, config)(message), "writeSystem");
|
|
462
|
+
var getStopwatch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name) => {
|
|
463
|
+
const start = process.hrtime();
|
|
464
|
+
return () => {
|
|
465
|
+
const end = process.hrtime(start);
|
|
466
|
+
console.info(`
|
|
467
|
+
> \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(end[0] * 1e3 + end[1] / 1e6)}ms to complete
|
|
468
|
+
|
|
469
|
+
`);
|
|
470
|
+
};
|
|
471
|
+
}, "getStopwatch");
|
|
472
|
+
var MAX_DEPTH = 4;
|
|
473
|
+
var formatLogMessage = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (message, options = {}, depth = 0) => {
|
|
474
|
+
if (depth > MAX_DEPTH) {
|
|
475
|
+
return "<max depth>";
|
|
476
|
+
}
|
|
477
|
+
const prefix = _nullishCoalesce(options.prefix, () => ( "-"));
|
|
478
|
+
const skip = _nullishCoalesce(options.skip, () => ( []));
|
|
479
|
+
return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
|
|
480
|
+
${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, {
|
|
481
|
+
prefix: `${prefix}-`,
|
|
482
|
+
skip
|
|
483
|
+
}, depth + 1)}`).join("\n")}` : typeof message === "object" ? `
|
|
484
|
+
${Object.keys(message).filter((key) => !skip.includes(key)).map((key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], {
|
|
485
|
+
prefix: `${prefix}-`,
|
|
486
|
+
skip
|
|
487
|
+
}, depth + 1) : message[key]}`).join("\n")}` : message;
|
|
488
|
+
}, "formatLogMessage");
|
|
489
|
+
var _isFunction = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (value) => {
|
|
490
|
+
try {
|
|
491
|
+
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _27 => _27.constructor]) && _optionalChain([value, 'optionalAccess', _28 => _28.call]) && _optionalChain([value, 'optionalAccess', _29 => _29.apply]));
|
|
492
|
+
} catch (e) {
|
|
493
|
+
return false;
|
|
494
|
+
}
|
|
495
|
+
}, "_isFunction");
|
|
496
|
+
|
|
497
|
+
// ../config-tools/src/create-storm-config.ts
|
|
498
|
+
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
499
|
+
|
|
500
|
+
// ../config-tools/src/config-file/get-config-file.ts
|
|
501
|
+
var _c12 = require('c12');
|
|
502
|
+
|
|
503
|
+
var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
504
|
+
const workspacePath = filePath || _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, filePath);
|
|
505
|
+
let config = _c12.loadConfig.call(void 0, {
|
|
506
|
+
cwd: workspacePath,
|
|
507
|
+
packageJson: true,
|
|
508
|
+
name: fileName,
|
|
509
|
+
envName: _optionalChain([fileName, 'optionalAccess', _30 => _30.toUpperCase, 'call', _31 => _31()]),
|
|
510
|
+
jitiOptions: {
|
|
511
|
+
debug: false,
|
|
512
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkXCSSYTCUjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
|
|
513
|
+
},
|
|
514
|
+
...options
|
|
515
|
+
});
|
|
516
|
+
if (!config || Object.keys(config).length === 0) {
|
|
517
|
+
config = _c12.loadConfig.call(void 0, {
|
|
518
|
+
cwd: workspacePath,
|
|
519
|
+
packageJson: true,
|
|
520
|
+
name: fileName,
|
|
521
|
+
envName: _optionalChain([fileName, 'optionalAccess', _32 => _32.toUpperCase, 'call', _33 => _33()]),
|
|
522
|
+
jitiOptions: {
|
|
523
|
+
debug: false,
|
|
524
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkXCSSYTCUjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache", "storm")
|
|
525
|
+
},
|
|
526
|
+
configFile: fileName,
|
|
527
|
+
...options
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
return config;
|
|
531
|
+
}, "getConfigFileByName");
|
|
532
|
+
var getConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
533
|
+
const workspacePath = filePath ? filePath : _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, filePath);
|
|
534
|
+
const result = await getConfigFileByName("storm", workspacePath);
|
|
535
|
+
let config = result.config;
|
|
536
|
+
const configFile = result.configFile;
|
|
537
|
+
if (config && configFile && Object.keys(config).length > 0) {
|
|
538
|
+
writeSystem(`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
539
|
+
logLevel: "all"
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
if (additionalFileNames && additionalFileNames.length > 0) {
|
|
543
|
+
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
544
|
+
for (const result2 of results) {
|
|
545
|
+
if (_optionalChain([result2, 'optionalAccess', _34 => _34.config]) && _optionalChain([result2, 'optionalAccess', _35 => _35.configFile]) && Object.keys(result2.config).length > 0) {
|
|
546
|
+
writeSystem(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
547
|
+
logLevel: "all"
|
|
548
|
+
});
|
|
549
|
+
config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
if (!config) {
|
|
554
|
+
return void 0;
|
|
555
|
+
}
|
|
556
|
+
config.configFile = configFile;
|
|
557
|
+
return config;
|
|
558
|
+
}, "getConfigFile");
|
|
559
|
+
|
|
560
|
+
// ../config-tools/src/env/get-env.ts
|
|
561
|
+
var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
562
|
+
const prefix = "STORM_";
|
|
563
|
+
let config = {
|
|
564
|
+
extends: process.env[`${prefix}EXTENDS`] || void 0,
|
|
565
|
+
name: process.env[`${prefix}NAME`] || void 0,
|
|
566
|
+
namespace: process.env[`${prefix}NAMESPACE`] || void 0,
|
|
567
|
+
owner: process.env[`${prefix}OWNER`] || void 0,
|
|
568
|
+
bot: {
|
|
569
|
+
name: process.env[`${prefix}BOT_NAME`] || void 0,
|
|
570
|
+
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
571
|
+
},
|
|
572
|
+
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
573
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
574
|
+
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
575
|
+
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
576
|
+
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
577
|
+
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
578
|
+
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
579
|
+
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
580
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkXCSSYTCUjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
581
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkXCSSYTCUjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
582
|
+
directories: {
|
|
583
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkXCSSYTCUjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
584
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkXCSSYTCUjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
585
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkXCSSYTCUjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
586
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkXCSSYTCUjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
587
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkXCSSYTCUjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
588
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkXCSSYTCUjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
589
|
+
},
|
|
590
|
+
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
591
|
+
env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
592
|
+
// ci:
|
|
593
|
+
// process.env[`${prefix}CI`] !== undefined
|
|
594
|
+
// ? Boolean(
|
|
595
|
+
// process.env[`${prefix}CI`] ??
|
|
596
|
+
// process.env.CI ??
|
|
597
|
+
// process.env.CONTINUOUS_INTEGRATION
|
|
598
|
+
// )
|
|
599
|
+
// : undefined,
|
|
600
|
+
repository: process.env[`${prefix}REPOSITORY`] || void 0,
|
|
601
|
+
branch: process.env[`${prefix}BRANCH`] || void 0,
|
|
602
|
+
preid: process.env[`${prefix}PRE_ID`] || void 0,
|
|
603
|
+
externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
|
|
604
|
+
registry: {
|
|
605
|
+
github: process.env[`${prefix}REGISTRY_GITHUB`] || void 0,
|
|
606
|
+
npm: process.env[`${prefix}REGISTRY_NPM`] || void 0,
|
|
607
|
+
cargo: process.env[`${prefix}REGISTRY_CARGO`] || void 0,
|
|
608
|
+
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
609
|
+
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
610
|
+
},
|
|
611
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
612
|
+
};
|
|
613
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
614
|
+
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
615
|
+
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
616
|
+
return ret;
|
|
617
|
+
}, {}) : getThemeColorConfigEnv(prefix);
|
|
618
|
+
if (config.docs === STORM_DEFAULT_DOCS) {
|
|
619
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
620
|
+
config.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
621
|
+
} else {
|
|
622
|
+
config.docs = `${config.homepage}/docs`;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
if (config.licensing === STORM_DEFAULT_LICENSING) {
|
|
626
|
+
if (config.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
627
|
+
config.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
628
|
+
} else {
|
|
629
|
+
config.licensing = `${config.homepage}/docs`;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
633
|
+
if (serializedConfig) {
|
|
634
|
+
const parsed = JSON.parse(serializedConfig);
|
|
635
|
+
config = {
|
|
636
|
+
...config,
|
|
637
|
+
...parsed,
|
|
638
|
+
colors: {
|
|
639
|
+
...config.colors,
|
|
640
|
+
...parsed.colors
|
|
641
|
+
},
|
|
642
|
+
extensions: {
|
|
643
|
+
...config.extensions,
|
|
644
|
+
...parsed.extensions
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
return config;
|
|
649
|
+
}, "getConfigEnv");
|
|
650
|
+
var getThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix, theme) => {
|
|
651
|
+
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
652
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
653
|
+
}, "getThemeColorConfigEnv");
|
|
654
|
+
var getSingleThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix) => {
|
|
655
|
+
return {
|
|
656
|
+
dark: process.env[`${prefix}DARK`],
|
|
657
|
+
light: process.env[`${prefix}LIGHT`],
|
|
658
|
+
brand: process.env[`${prefix}BRAND`],
|
|
659
|
+
alternate: process.env[`${prefix}ALTERNATE`],
|
|
660
|
+
accent: process.env[`${prefix}ACCENT`],
|
|
661
|
+
link: process.env[`${prefix}LINK`],
|
|
662
|
+
help: process.env[`${prefix}HELP`],
|
|
663
|
+
success: process.env[`${prefix}SUCCESS`],
|
|
664
|
+
info: process.env[`${prefix}INFO`],
|
|
665
|
+
warning: process.env[`${prefix}WARNING`],
|
|
666
|
+
danger: process.env[`${prefix}DANGER`],
|
|
667
|
+
fatal: process.env[`${prefix}FATAL`],
|
|
668
|
+
positive: process.env[`${prefix}POSITIVE`],
|
|
669
|
+
negative: process.env[`${prefix}NEGATIVE`]
|
|
670
|
+
};
|
|
671
|
+
}, "getSingleThemeColorConfigEnv");
|
|
672
|
+
var getMultiThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix) => {
|
|
673
|
+
return {
|
|
674
|
+
light: getBaseThemeColorConfigEnv(`${prefix}_LIGHT_`),
|
|
675
|
+
dark: getBaseThemeColorConfigEnv(`${prefix}_DARK_`)
|
|
676
|
+
};
|
|
677
|
+
}, "getMultiThemeColorConfigEnv");
|
|
678
|
+
var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix) => {
|
|
679
|
+
return {
|
|
680
|
+
foreground: process.env[`${prefix}FOREGROUND`],
|
|
681
|
+
background: process.env[`${prefix}BACKGROUND`],
|
|
682
|
+
brand: process.env[`${prefix}BRAND`],
|
|
683
|
+
alternate: process.env[`${prefix}ALTERNATE`],
|
|
684
|
+
accent: process.env[`${prefix}ACCENT`],
|
|
685
|
+
link: process.env[`${prefix}LINK`],
|
|
686
|
+
help: process.env[`${prefix}HELP`],
|
|
687
|
+
success: process.env[`${prefix}SUCCESS`],
|
|
688
|
+
info: process.env[`${prefix}INFO`],
|
|
689
|
+
warning: process.env[`${prefix}WARNING`],
|
|
690
|
+
danger: process.env[`${prefix}DANGER`],
|
|
691
|
+
fatal: process.env[`${prefix}FATAL`],
|
|
692
|
+
positive: process.env[`${prefix}POSITIVE`],
|
|
693
|
+
negative: process.env[`${prefix}NEGATIVE`]
|
|
694
|
+
};
|
|
695
|
+
}, "getBaseThemeColorConfigEnv");
|
|
696
|
+
|
|
697
|
+
// ../config-tools/src/env/set-env.ts
|
|
698
|
+
var setExtensionEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (extensionName, extension) => {
|
|
699
|
+
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
700
|
+
if (extension[key]) {
|
|
701
|
+
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _36 => _36.replace, 'call', _37 => _37(/([A-Z])+/g, (input) => input ? _optionalChain([input, 'access', _38 => _38[0], 'optionalAccess', _39 => _39.toUpperCase, 'call', _40 => _40()]) + input.slice(1) : ""), 'access', _41 => _41.split, 'call', _42 => _42(/(?=[A-Z])|[.\-\s_]/), 'access', _43 => _43.map, 'call', _44 => _44((x) => x.toLowerCase())]), () => ( []));
|
|
702
|
+
let extensionKey;
|
|
703
|
+
if (result.length === 0) {
|
|
704
|
+
return;
|
|
705
|
+
}
|
|
706
|
+
if (result.length === 1) {
|
|
707
|
+
extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _45 => _45[0], 'optionalAccess', _46 => _46.toUpperCase, 'call', _47 => _47()]), () => ( ""));
|
|
708
|
+
} else {
|
|
709
|
+
extensionKey = result.reduce((ret, part) => {
|
|
710
|
+
return `${ret}_${part.toLowerCase()}`;
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}, "setExtensionEnv");
|
|
717
|
+
var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config) => {
|
|
718
|
+
const prefix = "STORM_";
|
|
719
|
+
if (config.extends) {
|
|
720
|
+
process.env[`${prefix}EXTENDS`] = config.extends;
|
|
721
|
+
}
|
|
722
|
+
if (config.name) {
|
|
723
|
+
process.env[`${prefix}NAME`] = config.name;
|
|
724
|
+
}
|
|
725
|
+
if (config.namespace) {
|
|
726
|
+
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
727
|
+
}
|
|
728
|
+
if (config.owner) {
|
|
729
|
+
process.env[`${prefix}OWNER`] = config.owner;
|
|
730
|
+
}
|
|
731
|
+
if (config.bot) {
|
|
732
|
+
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
733
|
+
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
734
|
+
}
|
|
735
|
+
if (config.organization) {
|
|
736
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
737
|
+
}
|
|
738
|
+
if (config.packageManager) {
|
|
739
|
+
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
|
740
|
+
}
|
|
741
|
+
if (config.license) {
|
|
742
|
+
process.env[`${prefix}LICENSE`] = config.license;
|
|
743
|
+
}
|
|
744
|
+
if (config.homepage) {
|
|
745
|
+
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
746
|
+
}
|
|
747
|
+
if (config.docs) {
|
|
748
|
+
process.env[`${prefix}DOCS`] = config.docs;
|
|
749
|
+
}
|
|
750
|
+
if (config.licensing) {
|
|
751
|
+
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
752
|
+
}
|
|
753
|
+
if (config.timezone) {
|
|
754
|
+
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
755
|
+
process.env.TZ = config.timezone;
|
|
756
|
+
process.env.DEFAULT_TIMEZONE = config.timezone;
|
|
757
|
+
}
|
|
758
|
+
if (config.locale) {
|
|
759
|
+
process.env[`${prefix}LOCALE`] = config.locale;
|
|
760
|
+
process.env.LOCALE = config.locale;
|
|
761
|
+
process.env.DEFAULT_LOCALE = config.locale;
|
|
762
|
+
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
763
|
+
}
|
|
764
|
+
if (config.configFile) {
|
|
765
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkXCSSYTCUjs.correctPaths.call(void 0, config.configFile);
|
|
766
|
+
}
|
|
767
|
+
if (config.workspaceRoot) {
|
|
768
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkXCSSYTCUjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
769
|
+
process.env.NX_WORKSPACE_ROOT = _chunkXCSSYTCUjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
770
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkXCSSYTCUjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
771
|
+
}
|
|
772
|
+
if (config.directories) {
|
|
773
|
+
if (!config.skipCache && config.directories.cache) {
|
|
774
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkXCSSYTCUjs.correctPaths.call(void 0, config.directories.cache);
|
|
775
|
+
}
|
|
776
|
+
if (config.directories.data) {
|
|
777
|
+
process.env[`${prefix}DATA_DIR`] = _chunkXCSSYTCUjs.correctPaths.call(void 0, config.directories.data);
|
|
778
|
+
}
|
|
779
|
+
if (config.directories.config) {
|
|
780
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkXCSSYTCUjs.correctPaths.call(void 0, config.directories.config);
|
|
781
|
+
}
|
|
782
|
+
if (config.directories.temp) {
|
|
783
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkXCSSYTCUjs.correctPaths.call(void 0, config.directories.temp);
|
|
784
|
+
}
|
|
785
|
+
if (config.directories.log) {
|
|
786
|
+
process.env[`${prefix}LOG_DIR`] = _chunkXCSSYTCUjs.correctPaths.call(void 0, config.directories.log);
|
|
787
|
+
}
|
|
788
|
+
if (config.directories.build) {
|
|
789
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkXCSSYTCUjs.correctPaths.call(void 0, config.directories.build);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
if (config.skipCache !== void 0) {
|
|
793
|
+
process.env[`${prefix}SKIP_CACHE`] = String(config.skipCache);
|
|
794
|
+
if (config.skipCache) {
|
|
795
|
+
process.env.NX_SKIP_NX_CACHE ??= String(config.skipCache);
|
|
796
|
+
process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
if (config.env) {
|
|
800
|
+
process.env[`${prefix}ENV`] = config.env;
|
|
801
|
+
process.env.NODE_ENV = config.env;
|
|
802
|
+
process.env.ENVIRONMENT = config.env;
|
|
803
|
+
}
|
|
804
|
+
if (_optionalChain([config, 'access', _48 => _48.colors, 'optionalAccess', _49 => _49.base, 'optionalAccess', _50 => _50.light]) || _optionalChain([config, 'access', _51 => _51.colors, 'optionalAccess', _52 => _52.base, 'optionalAccess', _53 => _53.dark])) {
|
|
805
|
+
for (const key of Object.keys(config.colors)) {
|
|
806
|
+
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
807
|
+
}
|
|
808
|
+
} else {
|
|
809
|
+
setThemeColorConfigEnv(`${prefix}COLOR_`, config.colors);
|
|
810
|
+
}
|
|
811
|
+
if (config.repository) {
|
|
812
|
+
process.env[`${prefix}REPOSITORY`] = config.repository;
|
|
813
|
+
}
|
|
814
|
+
if (config.branch) {
|
|
815
|
+
process.env[`${prefix}BRANCH`] = config.branch;
|
|
816
|
+
}
|
|
817
|
+
if (config.preid) {
|
|
818
|
+
process.env[`${prefix}PRE_ID`] = String(config.preid);
|
|
819
|
+
}
|
|
820
|
+
if (config.externalPackagePatterns) {
|
|
821
|
+
process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] = JSON.stringify(config.externalPackagePatterns);
|
|
822
|
+
}
|
|
823
|
+
if (config.registry) {
|
|
824
|
+
if (config.registry.github) {
|
|
825
|
+
process.env[`${prefix}REGISTRY_GITHUB`] = String(config.registry.github);
|
|
826
|
+
}
|
|
827
|
+
if (config.registry.npm) {
|
|
828
|
+
process.env[`${prefix}REGISTRY_NPM`] = String(config.registry.npm);
|
|
829
|
+
}
|
|
830
|
+
if (config.registry.cargo) {
|
|
831
|
+
process.env[`${prefix}REGISTRY_CARGO`] = String(config.registry.cargo);
|
|
832
|
+
}
|
|
833
|
+
if (config.registry.cyclone) {
|
|
834
|
+
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
835
|
+
}
|
|
836
|
+
if (config.registry.container) {
|
|
837
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.cyclone);
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
if (config.logLevel) {
|
|
841
|
+
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
842
|
+
process.env.LOG_LEVEL = String(config.logLevel);
|
|
843
|
+
process.env.NX_VERBOSE_LOGGING = String(getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false);
|
|
844
|
+
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
845
|
+
}
|
|
846
|
+
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
847
|
+
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
848
|
+
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
849
|
+
}
|
|
850
|
+
}, "setConfigEnv");
|
|
851
|
+
var setThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix, config) => {
|
|
852
|
+
return _optionalChain([config, 'optionalAccess', _54 => _54.light, 'optionalAccess', _55 => _55.brand]) || _optionalChain([config, 'optionalAccess', _56 => _56.dark, 'optionalAccess', _57 => _57.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
853
|
+
}, "setThemeColorConfigEnv");
|
|
854
|
+
var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix, config) => {
|
|
855
|
+
if (config.dark) {
|
|
856
|
+
process.env[`${prefix}DARK`] = config.dark;
|
|
857
|
+
}
|
|
858
|
+
if (config.light) {
|
|
859
|
+
process.env[`${prefix}LIGHT`] = config.light;
|
|
860
|
+
}
|
|
861
|
+
if (config.brand) {
|
|
862
|
+
process.env[`${prefix}BRAND`] = config.brand;
|
|
863
|
+
}
|
|
864
|
+
if (config.alternate) {
|
|
865
|
+
process.env[`${prefix}ALTERNATE`] = config.alternate;
|
|
866
|
+
}
|
|
867
|
+
if (config.accent) {
|
|
868
|
+
process.env[`${prefix}ACCENT`] = config.accent;
|
|
869
|
+
}
|
|
870
|
+
if (config.link) {
|
|
871
|
+
process.env[`${prefix}LINK`] = config.link;
|
|
872
|
+
}
|
|
873
|
+
if (config.help) {
|
|
874
|
+
process.env[`${prefix}HELP`] = config.help;
|
|
875
|
+
}
|
|
876
|
+
if (config.success) {
|
|
877
|
+
process.env[`${prefix}SUCCESS`] = config.success;
|
|
878
|
+
}
|
|
879
|
+
if (config.info) {
|
|
880
|
+
process.env[`${prefix}INFO`] = config.info;
|
|
881
|
+
}
|
|
882
|
+
if (config.warning) {
|
|
883
|
+
process.env[`${prefix}WARNING`] = config.warning;
|
|
884
|
+
}
|
|
885
|
+
if (config.danger) {
|
|
886
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
887
|
+
}
|
|
888
|
+
if (config.fatal) {
|
|
889
|
+
process.env[`${prefix}FATAL`] = config.fatal;
|
|
890
|
+
}
|
|
891
|
+
if (config.positive) {
|
|
892
|
+
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
893
|
+
}
|
|
894
|
+
if (config.negative) {
|
|
895
|
+
process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
896
|
+
}
|
|
897
|
+
}, "setSingleThemeColorConfigEnv");
|
|
898
|
+
var setMultiThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix, config) => {
|
|
899
|
+
return {
|
|
900
|
+
light: setBaseThemeColorConfigEnv(`${prefix}LIGHT_`, config.light),
|
|
901
|
+
dark: setBaseThemeColorConfigEnv(`${prefix}DARK_`, config.dark)
|
|
902
|
+
};
|
|
903
|
+
}, "setMultiThemeColorConfigEnv");
|
|
904
|
+
var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (prefix, config) => {
|
|
905
|
+
if (config.foreground) {
|
|
906
|
+
process.env[`${prefix}FOREGROUND`] = config.foreground;
|
|
907
|
+
}
|
|
908
|
+
if (config.background) {
|
|
909
|
+
process.env[`${prefix}BACKGROUND`] = config.background;
|
|
910
|
+
}
|
|
911
|
+
if (config.brand) {
|
|
912
|
+
process.env[`${prefix}BRAND`] = config.brand;
|
|
913
|
+
}
|
|
914
|
+
if (config.alternate) {
|
|
915
|
+
process.env[`${prefix}ALTERNATE`] = config.alternate;
|
|
916
|
+
}
|
|
917
|
+
if (config.accent) {
|
|
918
|
+
process.env[`${prefix}ACCENT`] = config.accent;
|
|
919
|
+
}
|
|
920
|
+
if (config.link) {
|
|
921
|
+
process.env[`${prefix}LINK`] = config.link;
|
|
922
|
+
}
|
|
923
|
+
if (config.help) {
|
|
924
|
+
process.env[`${prefix}HELP`] = config.help;
|
|
925
|
+
}
|
|
926
|
+
if (config.success) {
|
|
927
|
+
process.env[`${prefix}SUCCESS`] = config.success;
|
|
928
|
+
}
|
|
929
|
+
if (config.info) {
|
|
930
|
+
process.env[`${prefix}INFO`] = config.info;
|
|
931
|
+
}
|
|
932
|
+
if (config.warning) {
|
|
933
|
+
process.env[`${prefix}WARNING`] = config.warning;
|
|
934
|
+
}
|
|
935
|
+
if (config.danger) {
|
|
936
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
937
|
+
}
|
|
938
|
+
if (config.fatal) {
|
|
939
|
+
process.env[`${prefix}FATAL`] = config.fatal;
|
|
940
|
+
}
|
|
941
|
+
if (config.positive) {
|
|
942
|
+
process.env[`${prefix}POSITIVE`] = config.positive;
|
|
943
|
+
}
|
|
944
|
+
if (config.negative) {
|
|
945
|
+
process.env[`${prefix}NEGATIVE`] = config.negative;
|
|
946
|
+
}
|
|
947
|
+
}, "setBaseThemeColorConfigEnv");
|
|
948
|
+
|
|
949
|
+
// ../config-tools/src/create-storm-config.ts
|
|
950
|
+
var _static_cache = void 0;
|
|
951
|
+
var loadStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot) => {
|
|
952
|
+
let config = {};
|
|
953
|
+
if (_optionalChain([_static_cache, 'optionalAccess', _58 => _58.data]) && _optionalChain([_static_cache, 'optionalAccess', _59 => _59.timestamp]) && _static_cache.timestamp >= Date.now() + 3e4) {
|
|
954
|
+
writeTrace(`Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
|
|
955
|
+
return _static_cache.data;
|
|
956
|
+
}
|
|
957
|
+
let _workspaceRoot = workspaceRoot;
|
|
958
|
+
if (!_workspaceRoot) {
|
|
959
|
+
_workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
|
|
960
|
+
}
|
|
961
|
+
const configFile = await getConfigFile(_workspaceRoot);
|
|
962
|
+
if (!configFile) {
|
|
963
|
+
writeWarning("No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
|
|
964
|
+
logLevel: "all"
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
config = _defu2.default.call(void 0, getConfigEnv(), configFile, getDefaultConfig(_workspaceRoot));
|
|
968
|
+
setConfigEnv(config);
|
|
969
|
+
writeTrace(`\u2699\uFE0F Using Storm configuration:
|
|
970
|
+
${formatLogMessage(config)}`, config);
|
|
971
|
+
return config;
|
|
972
|
+
}, "loadStormConfig");
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
exports.LogLevelLabel = LogLevelLabel; exports.StormConfigSchema = StormConfigSchema; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage; exports.loadStormConfig = loadStormConfig;
|