@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,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
+
}) : x)(function(x) {
|
|
6
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.__name = __name; exports.__require = __require;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkNCVJPQSPjs = require('./chunk-NCVJPQSP.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
11
|
+
|
|
12
|
+
// src/generators/browser-library/generator.ts
|
|
13
|
+
var _devkit = require('@nx/devkit');
|
|
14
|
+
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
15
|
+
const filesDir = _devkit.joinPathFragments.call(void 0, __dirname, "./files");
|
|
16
|
+
const tsLibraryGeneratorOptions = {
|
|
17
|
+
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
18
|
+
platform: "browser",
|
|
19
|
+
devDependencies: {
|
|
20
|
+
"@types/react": "^18.3.6",
|
|
21
|
+
"@types/react-dom": "^18.3.0"
|
|
22
|
+
},
|
|
23
|
+
peerDependencies: {
|
|
24
|
+
react: "^18.3.0",
|
|
25
|
+
"react-dom": "^18.3.0",
|
|
26
|
+
"react-native": "*"
|
|
27
|
+
},
|
|
28
|
+
peerDependenciesMeta: {
|
|
29
|
+
"react-dom": {
|
|
30
|
+
optional: true
|
|
31
|
+
},
|
|
32
|
+
"react-native": {
|
|
33
|
+
optional: true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
...schema,
|
|
37
|
+
description: schema.description,
|
|
38
|
+
directory: schema.directory
|
|
39
|
+
};
|
|
40
|
+
const options = await _chunkFBLF4KJFjs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
|
|
41
|
+
const { className, name, propertyName } = _devkit.names.call(void 0, options.projectNames.projectFileName);
|
|
42
|
+
_devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
|
|
43
|
+
...schema,
|
|
44
|
+
dot: ".",
|
|
45
|
+
className,
|
|
46
|
+
name,
|
|
47
|
+
namespace: _nullishCoalesce(process.env.STORM_NAMESPACE, () => ( "storm-software")),
|
|
48
|
+
description: _nullishCoalesce(schema.description, () => ( "")),
|
|
49
|
+
propertyName,
|
|
50
|
+
js: !!options.js,
|
|
51
|
+
cliCommand: "nx",
|
|
52
|
+
strict: void 0,
|
|
53
|
+
tmpl: "",
|
|
54
|
+
offsetFromRoot: _devkit.offsetFromRoot.call(void 0, options.projectRoot),
|
|
55
|
+
buildable: options.bundler && options.bundler !== "none",
|
|
56
|
+
hasUnitTestRunner: options.unitTestRunner !== "none",
|
|
57
|
+
tsConfigOptions: {
|
|
58
|
+
compilerOptions: {
|
|
59
|
+
jsx: "react",
|
|
60
|
+
types: [
|
|
61
|
+
"node",
|
|
62
|
+
"@nx/react/typings/cssmodule.d.ts",
|
|
63
|
+
"@nx/react/typings/image.d.ts"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
await _chunkFBLF4KJFjs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
|
|
69
|
+
await _devkit.formatFiles.call(void 0, tree);
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
_chunk3GQAWCBQjs.__name.call(void 0, browserLibraryGeneratorFn, "browserLibraryGeneratorFn");
|
|
73
|
+
var generator_default = _chunkNCVJPQSPjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Browser Platform)", browserLibraryGeneratorFn, {
|
|
74
|
+
hooks: {
|
|
75
|
+
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
76
|
+
options.description ??= "A library used by Storm Software to support browser applications";
|
|
77
|
+
options.platform ??= "browser";
|
|
78
|
+
return options;
|
|
79
|
+
}, "applyDefaultOptions")
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
exports.browserLibraryGeneratorFn = browserLibraryGeneratorFn; exports.generator_default = generator_default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
4
|
+
|
|
5
|
+
// src/generators/init/init.ts
|
|
6
|
+
var _devkit = require('@nx/devkit');
|
|
7
|
+
async function initGenerator(tree, schema) {
|
|
8
|
+
const task = _devkit.addDependenciesToPackageJson.call(void 0, tree, {
|
|
9
|
+
nx: "^19.6.2",
|
|
10
|
+
"@nx/workspace": "^19.6.2",
|
|
11
|
+
"@nx/js": "^19.6.2",
|
|
12
|
+
"@storm-software/eslint": "latest",
|
|
13
|
+
"@storm-software/prettier": "latest",
|
|
14
|
+
"@storm-software/config-tools": "latest",
|
|
15
|
+
"@storm-software/testing-tools": "latest",
|
|
16
|
+
"@storm-software/git-tools": "latest",
|
|
17
|
+
"@storm-software/linting-tools": "latest"
|
|
18
|
+
}, {});
|
|
19
|
+
if (!schema.skipFormat) {
|
|
20
|
+
await _devkit.formatFiles.call(void 0, tree);
|
|
21
|
+
}
|
|
22
|
+
return task;
|
|
23
|
+
}
|
|
24
|
+
_chunk3GQAWCBQjs.__name.call(void 0, initGenerator, "initGenerator");
|
|
25
|
+
var init_default = initGenerator;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
exports.initGenerator = initGenerator; exports.init_default = init_default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ProjectTagConstants,
|
|
3
|
+
isEqualProjectTag
|
|
4
|
+
} from "./chunk-66TYTM73.mjs";
|
|
5
|
+
import {
|
|
6
|
+
parseCargoToml
|
|
7
|
+
} from "./chunk-VYH45FO6.mjs";
|
|
8
|
+
import {
|
|
9
|
+
__name
|
|
10
|
+
} from "./chunk-XUV4U54K.mjs";
|
|
11
|
+
|
|
12
|
+
// src/utils/package-helpers.ts
|
|
13
|
+
import { joinPathFragments, readJsonFile } from "@nx/devkit";
|
|
14
|
+
import { existsSync } from "node:fs";
|
|
15
|
+
var PackageManagerTypes = {
|
|
16
|
+
PackageJson: "package.json",
|
|
17
|
+
CargoToml: "Cargo.toml"
|
|
18
|
+
};
|
|
19
|
+
var getPackageInfo = /* @__PURE__ */ __name((project) => {
|
|
20
|
+
if (isEqualProjectTag(project, ProjectTagConstants.Language.TAG_ID, ProjectTagConstants.Language.RUST) && existsSync(joinPathFragments(project.root, "Cargo.toml"))) {
|
|
21
|
+
return {
|
|
22
|
+
type: "Cargo.toml",
|
|
23
|
+
content: parseCargoToml(joinPathFragments(project.root, "Cargo.toml"))
|
|
24
|
+
};
|
|
25
|
+
} else if (isEqualProjectTag(project, ProjectTagConstants.Language.TAG_ID, ProjectTagConstants.Language.TYPESCRIPT) && existsSync(joinPathFragments(project.root, "package.json"))) {
|
|
26
|
+
return {
|
|
27
|
+
type: "package.json",
|
|
28
|
+
content: readJsonFile(joinPathFragments(project.root, "package.json"))
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}, "getPackageInfo");
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
PackageManagerTypes,
|
|
36
|
+
getPackageInfo
|
|
37
|
+
};
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkINAG73GEjs = require('./chunk-INAG73GE.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
10
|
+
|
|
11
|
+
// src/executors/npm-publish/executor.ts
|
|
12
|
+
var _child_process = require('child_process');
|
|
13
|
+
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
14
|
+
var LARGE_BUFFER = 1024 * 1e6;
|
|
15
|
+
async function npmPublishExecutorFn(options, context) {
|
|
16
|
+
const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
|
|
17
|
+
if (!context.projectName) {
|
|
18
|
+
throw new Error("The `npm-publish` executor requires a `projectName`.");
|
|
19
|
+
}
|
|
20
|
+
const projectConfig = _optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects, 'optionalAccess', _3 => _3[context.projectName]]);
|
|
21
|
+
if (!projectConfig) {
|
|
22
|
+
throw new Error(`Could not find project configuration for \`${context.projectName}\``);
|
|
23
|
+
}
|
|
24
|
+
const packageRoot = _chunkXCSSYTCUjs.joinPaths.call(void 0, context.root, options.packageRoot || _chunkXCSSYTCUjs.joinPaths.call(void 0, "dist", projectConfig.root));
|
|
25
|
+
const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, packageRoot, "package.json");
|
|
26
|
+
const packageJsonFile = await _promises2.default.readFile(packageJsonPath, "utf8");
|
|
27
|
+
if (!packageJsonFile) {
|
|
28
|
+
throw new Error(`Could not find \`package.json\` at ${packageJsonPath}`);
|
|
29
|
+
}
|
|
30
|
+
const packageJson = JSON.parse(packageJsonFile);
|
|
31
|
+
const packageName = packageJson.name;
|
|
32
|
+
console.info(`\u{1F680} Running Storm NPM Publish executor on the ${packageName} package`);
|
|
33
|
+
const packageTxt = packageName === context.projectName ? `package "${packageName}"` : `package "${packageName}" from project "${context.projectName}"`;
|
|
34
|
+
if (packageJson.private === true) {
|
|
35
|
+
console.warn(`Skipped ${packageTxt}, because it has \`"private": true\` in ${packageJsonPath}`);
|
|
36
|
+
return {
|
|
37
|
+
success: true
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
await _chunkINAG73GEjs.pnpmCatalogUpdate.call(void 0, packageRoot, context.root);
|
|
41
|
+
const npmPublishCommandSegments = [
|
|
42
|
+
`npm publish --json`
|
|
43
|
+
];
|
|
44
|
+
const npmViewCommandSegments = [
|
|
45
|
+
`npm view ${packageName} versions dist-tags --json`
|
|
46
|
+
];
|
|
47
|
+
const registry = options.registry ? options.registry : _child_process.execSync.call(void 0, "npm config get registry", {
|
|
48
|
+
cwd: packageRoot,
|
|
49
|
+
env: {
|
|
50
|
+
...process.env,
|
|
51
|
+
FORCE_COLOR: "true"
|
|
52
|
+
},
|
|
53
|
+
maxBuffer: LARGE_BUFFER,
|
|
54
|
+
killSignal: "SIGTERM"
|
|
55
|
+
}).toString().trim();
|
|
56
|
+
if (registry) {
|
|
57
|
+
npmPublishCommandSegments.push(`--registry="${registry}" `);
|
|
58
|
+
npmViewCommandSegments.push(`--registry="${registry}" `);
|
|
59
|
+
}
|
|
60
|
+
if (options.otp) {
|
|
61
|
+
npmPublishCommandSegments.push(`--otp="${options.otp}" `);
|
|
62
|
+
}
|
|
63
|
+
if (isDryRun) {
|
|
64
|
+
npmPublishCommandSegments.push("--dry-run");
|
|
65
|
+
}
|
|
66
|
+
npmPublishCommandSegments.push("--provenance --access=public ");
|
|
67
|
+
const tag = options.tag || _child_process.execSync.call(void 0, "npm config get tag", {
|
|
68
|
+
cwd: packageRoot,
|
|
69
|
+
env: {
|
|
70
|
+
...process.env,
|
|
71
|
+
FORCE_COLOR: "true"
|
|
72
|
+
},
|
|
73
|
+
maxBuffer: LARGE_BUFFER,
|
|
74
|
+
killSignal: "SIGTERM"
|
|
75
|
+
}).toString().trim();
|
|
76
|
+
if (tag) {
|
|
77
|
+
npmPublishCommandSegments.push(`--tag="${tag}" `);
|
|
78
|
+
}
|
|
79
|
+
if (!isDryRun) {
|
|
80
|
+
const currentVersion = packageJson.version;
|
|
81
|
+
try {
|
|
82
|
+
try {
|
|
83
|
+
const result = _child_process.execSync.call(void 0, npmViewCommandSegments.join(" "), {
|
|
84
|
+
cwd: packageRoot,
|
|
85
|
+
env: {
|
|
86
|
+
...process.env,
|
|
87
|
+
FORCE_COLOR: "true"
|
|
88
|
+
},
|
|
89
|
+
maxBuffer: LARGE_BUFFER,
|
|
90
|
+
killSignal: "SIGTERM"
|
|
91
|
+
});
|
|
92
|
+
const resultJson = JSON.parse(result.toString());
|
|
93
|
+
const distTags = resultJson["dist-tags"] || {};
|
|
94
|
+
if (distTags[tag] === currentVersion) {
|
|
95
|
+
console.warn(`Skipped ${packageTxt} because v${currentVersion} already exists in ${registry} with tag "${tag}"`);
|
|
96
|
+
return {
|
|
97
|
+
success: true
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
} catch (err) {
|
|
101
|
+
console.warn("\n ********************** \n");
|
|
102
|
+
console.warn(`An error occurred while checking for existing dist-tags
|
|
103
|
+
${JSON.stringify(err)}
|
|
104
|
+
|
|
105
|
+
Note: If this is the first time this package has been published to NPM, this can be ignored.
|
|
106
|
+
|
|
107
|
+
`);
|
|
108
|
+
console.info("");
|
|
109
|
+
}
|
|
110
|
+
try {
|
|
111
|
+
if (!isDryRun) {
|
|
112
|
+
const command = `npm dist-tag add ${packageName}@${currentVersion} ${tag} --registry="${registry}" `;
|
|
113
|
+
console.info(`Adding the dist-tag ${tag} - preparing to run the following:
|
|
114
|
+
${command}
|
|
115
|
+
`);
|
|
116
|
+
const result = _child_process.execSync.call(void 0, command, {
|
|
117
|
+
cwd: packageRoot,
|
|
118
|
+
env: {
|
|
119
|
+
...process.env,
|
|
120
|
+
FORCE_COLOR: "true"
|
|
121
|
+
},
|
|
122
|
+
maxBuffer: LARGE_BUFFER,
|
|
123
|
+
killSignal: "SIGTERM"
|
|
124
|
+
});
|
|
125
|
+
console.info(`Added the dist-tag ${tag} to v${currentVersion} for registry "${registry}"
|
|
126
|
+
|
|
127
|
+
Execution response: ${result.toString()}
|
|
128
|
+
`);
|
|
129
|
+
} else {
|
|
130
|
+
console.info(`Would add the dist-tag ${tag} to v${currentVersion} for registry "${registry}", but [dry-run] was set.
|
|
131
|
+
`);
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
success: true
|
|
135
|
+
};
|
|
136
|
+
} catch (err) {
|
|
137
|
+
try {
|
|
138
|
+
console.warn("\n ********************** \n");
|
|
139
|
+
let error = err;
|
|
140
|
+
if (Buffer.isBuffer(error)) {
|
|
141
|
+
error = error.toString();
|
|
142
|
+
}
|
|
143
|
+
console.warn(`An error occurred while adding dist-tags:
|
|
144
|
+
${error}
|
|
145
|
+
|
|
146
|
+
Note: If this is the first time this package has been published to NPM, this can be ignored.
|
|
147
|
+
|
|
148
|
+
`);
|
|
149
|
+
console.info("");
|
|
150
|
+
const stdoutData = JSON.parse(_optionalChain([err, 'access', _4 => _4.stdout, 'optionalAccess', _5 => _5.toString, 'call', _6 => _6()]) || "{}");
|
|
151
|
+
if (_optionalChain([stdoutData, 'optionalAccess', _7 => _7.error]) && !(_optionalChain([stdoutData, 'access', _8 => _8.error, 'optionalAccess', _9 => _9.code, 'optionalAccess', _10 => _10.includes, 'call', _11 => _11("E404")]) && _optionalChain([stdoutData, 'access', _12 => _12.error, 'optionalAccess', _13 => _13.summary, 'optionalAccess', _14 => _14.includes, 'call', _15 => _15("no such package available")])) && !(_optionalChain([err, 'access', _16 => _16.stderr, 'optionalAccess', _17 => _17.toString, 'call', _18 => _18(), 'access', _19 => _19.includes, 'call', _20 => _20("E404")]) && _optionalChain([err, 'access', _21 => _21.stderr, 'optionalAccess', _22 => _22.toString, 'call', _23 => _23(), 'access', _24 => _24.includes, 'call', _25 => _25("no such package available")]))) {
|
|
152
|
+
console.error("npm dist-tag add error please see below for more information:");
|
|
153
|
+
if (stdoutData.error.summary) {
|
|
154
|
+
console.error(_optionalChain([stdoutData, 'access', _26 => _26.error, 'optionalAccess', _27 => _27.summary]));
|
|
155
|
+
}
|
|
156
|
+
if (stdoutData.error.detail) {
|
|
157
|
+
console.error(_optionalChain([stdoutData, 'access', _28 => _28.error, 'optionalAccess', _29 => _29.detail]));
|
|
158
|
+
}
|
|
159
|
+
if (context.isVerbose) {
|
|
160
|
+
console.error(`npm dist-tag add stdout: ${JSON.stringify(stdoutData, null, 2)}`);
|
|
161
|
+
}
|
|
162
|
+
return {
|
|
163
|
+
success: false
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
} catch (err2) {
|
|
167
|
+
console.error(`Something unexpected went wrong when processing the npm dist-tag add output
|
|
168
|
+
${JSON.stringify(err2)}`);
|
|
169
|
+
return {
|
|
170
|
+
success: false
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
} catch (err) {
|
|
175
|
+
let error = err;
|
|
176
|
+
if (Buffer.isBuffer(error)) {
|
|
177
|
+
error = error.toString();
|
|
178
|
+
}
|
|
179
|
+
console.error("\n ********************** \n");
|
|
180
|
+
console.info("");
|
|
181
|
+
console.error("An error occured trying to run the npm dist-tag add command.");
|
|
182
|
+
console.error(error);
|
|
183
|
+
console.info("");
|
|
184
|
+
const stdoutData = JSON.parse(_optionalChain([err, 'access', _30 => _30.stdout, 'optionalAccess', _31 => _31.toString, 'call', _32 => _32()]) || "{}");
|
|
185
|
+
if (!(_optionalChain([stdoutData, 'access', _33 => _33.error, 'optionalAccess', _34 => _34.code, 'optionalAccess', _35 => _35.includes, 'call', _36 => _36("E404")]) && _optionalChain([stdoutData, 'access', _37 => _37.error, 'optionalAccess', _38 => _38.summary, 'optionalAccess', _39 => _39.toLowerCase, 'call', _40 => _40(), 'access', _41 => _41.includes, 'call', _42 => _42("not found")])) && !(_optionalChain([err, 'access', _43 => _43.stderr, 'optionalAccess', _44 => _44.toString, 'call', _45 => _45(), 'access', _46 => _46.includes, 'call', _47 => _47("E404")]) && _optionalChain([err, 'access', _48 => _48.stderr, 'optionalAccess', _49 => _49.toString, 'call', _50 => _50(), 'access', _51 => _51.toLowerCase, 'call', _52 => _52(), 'access', _53 => _53.includes, 'call', _54 => _54("not found")]))) {
|
|
186
|
+
console.error(`Something unexpected went wrong when checking for existing dist-tags.
|
|
187
|
+
|
|
188
|
+
Error: ${JSON.stringify(err)}
|
|
189
|
+
`);
|
|
190
|
+
return {
|
|
191
|
+
success: false
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
try {
|
|
197
|
+
const cwd = packageRoot;
|
|
198
|
+
const command = npmPublishCommandSegments.join(" ");
|
|
199
|
+
console.info(`Running publish command "${command}" in current working directory: "${cwd}" `);
|
|
200
|
+
const result = _child_process.execSync.call(void 0, command, {
|
|
201
|
+
cwd,
|
|
202
|
+
env: {
|
|
203
|
+
...process.env,
|
|
204
|
+
FORCE_COLOR: "true"
|
|
205
|
+
},
|
|
206
|
+
maxBuffer: LARGE_BUFFER,
|
|
207
|
+
killSignal: "SIGTERM"
|
|
208
|
+
});
|
|
209
|
+
if (isDryRun) {
|
|
210
|
+
console.info(`Would publish to ${registry} with tag "${tag}", but [dry-run] was set ${result ? `
|
|
211
|
+
|
|
212
|
+
Execution response: ${result.toString()}` : ""}
|
|
213
|
+
`);
|
|
214
|
+
} else {
|
|
215
|
+
console.info(`Published to ${registry} with tag "${tag}" ${result ? `
|
|
216
|
+
|
|
217
|
+
Execution response: ${result.toString()}` : ""}
|
|
218
|
+
`);
|
|
219
|
+
}
|
|
220
|
+
return {
|
|
221
|
+
success: true
|
|
222
|
+
};
|
|
223
|
+
} catch (err) {
|
|
224
|
+
try {
|
|
225
|
+
console.error("\n ********************** \n");
|
|
226
|
+
console.info("");
|
|
227
|
+
console.error("An error occured running pnpm publish.");
|
|
228
|
+
console.error("Please see below for more information:");
|
|
229
|
+
console.info("");
|
|
230
|
+
const stdoutData = JSON.parse(_optionalChain([err, 'access', _55 => _55.stdout, 'optionalAccess', _56 => _56.toString, 'call', _57 => _57()]) || "{}");
|
|
231
|
+
if (stdoutData.error.summary) {
|
|
232
|
+
console.error(stdoutData.error.summary);
|
|
233
|
+
console.error(stdoutData.error.summary);
|
|
234
|
+
}
|
|
235
|
+
if (stdoutData.error.detail) {
|
|
236
|
+
console.error(stdoutData.error.detail);
|
|
237
|
+
}
|
|
238
|
+
if (context.isVerbose) {
|
|
239
|
+
console.error(`npm publish stdout:
|
|
240
|
+
${JSON.stringify(stdoutData, null, 2)}`);
|
|
241
|
+
}
|
|
242
|
+
console.error("\n ********************** \n");
|
|
243
|
+
return {
|
|
244
|
+
success: false
|
|
245
|
+
};
|
|
246
|
+
} catch (err2) {
|
|
247
|
+
let error = err2;
|
|
248
|
+
if (Buffer.isBuffer(error)) {
|
|
249
|
+
error = error.toString();
|
|
250
|
+
}
|
|
251
|
+
console.error(`Something unexpected went wrong when processing the npm publish output
|
|
252
|
+
|
|
253
|
+
Error: ${JSON.stringify(error)}
|
|
254
|
+
`);
|
|
255
|
+
console.error("\n ********************** \n");
|
|
256
|
+
return {
|
|
257
|
+
success: false
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
_chunk3GQAWCBQjs.__name.call(void 0, npmPublishExecutorFn, "npmPublishExecutorFn");
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
exports.LARGE_BUFFER = LARGE_BUFFER; exports.npmPublishExecutorFn = npmPublishExecutorFn;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/types.ts
|
|
2
|
+
var ProjectTagVariant = {
|
|
3
|
+
LANGUAGE: "language",
|
|
4
|
+
TYPE: "type",
|
|
5
|
+
DIST_STYLE: "dist-style",
|
|
6
|
+
PROVIDER: "provider",
|
|
7
|
+
PLATFORM: "platform",
|
|
8
|
+
REGISTRY: "registry",
|
|
9
|
+
PLUGIN: "plugin"
|
|
10
|
+
};
|
|
11
|
+
var ProjectTagLanguageValue = {
|
|
12
|
+
TYPESCRIPT: "typescript",
|
|
13
|
+
RUST: "rust"
|
|
14
|
+
};
|
|
15
|
+
var ProjectTagTypeValue = {
|
|
16
|
+
LIBRARY: "library",
|
|
17
|
+
APPLICATION: "application"
|
|
18
|
+
};
|
|
19
|
+
var ProjectTagDistStyleValue = {
|
|
20
|
+
NORMAL: "normal",
|
|
21
|
+
CLEAN: "clean"
|
|
22
|
+
};
|
|
23
|
+
var ProjectTagPlatformValue = {
|
|
24
|
+
NODE: "node",
|
|
25
|
+
BROWSER: "browser",
|
|
26
|
+
NEUTRAL: "neutral",
|
|
27
|
+
WORKER: "worker"
|
|
28
|
+
};
|
|
29
|
+
var ProjectTagRegistryValue = {
|
|
30
|
+
CARGO: "cargo",
|
|
31
|
+
NPM: "npm",
|
|
32
|
+
CONTAINER: "container",
|
|
33
|
+
CYCLONE: "cyclone"
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
exports.ProjectTagVariant = ProjectTagVariant; exports.ProjectTagLanguageValue = ProjectTagLanguageValue; exports.ProjectTagTypeValue = ProjectTagTypeValue; exports.ProjectTagDistStyleValue = ProjectTagDistStyleValue; exports.ProjectTagPlatformValue = ProjectTagPlatformValue; exports.ProjectTagRegistryValue = ProjectTagRegistryValue;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
7
|
+
|
|
8
|
+
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
9
|
+
var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (option, tokenizerOptions) => {
|
|
10
|
+
let result = option;
|
|
11
|
+
if (!result) {
|
|
12
|
+
return result;
|
|
13
|
+
}
|
|
14
|
+
if (tokenizerOptions) {
|
|
15
|
+
const optionKeys = Object.keys(tokenizerOptions);
|
|
16
|
+
if (optionKeys.some((optionKey) => result.includes(`{${optionKey}}`))) {
|
|
17
|
+
for (const optionKey of optionKeys) {
|
|
18
|
+
if (result.includes(`{${optionKey}}`)) {
|
|
19
|
+
result = result.replaceAll(`{${optionKey}}`, _nullishCoalesce(_optionalChain([tokenizerOptions, 'access', _ => _.config, 'optionalAccess', _2 => _2[optionKey]]), () => ( "")));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (tokenizerOptions.config) {
|
|
25
|
+
const configKeys = Object.keys(tokenizerOptions.config);
|
|
26
|
+
if (configKeys.some((configKey) => result.includes(`{${configKey}}`))) {
|
|
27
|
+
for (const configKey of configKeys) {
|
|
28
|
+
if (result.includes(`{${configKey}}`)) {
|
|
29
|
+
result = result.replaceAll(`{${configKey}}`, tokenizerOptions.config[configKey]);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
if (result.includes("{workspaceRoot}")) {
|
|
35
|
+
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _optionalChain([tokenizerOptions, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))));
|
|
36
|
+
}
|
|
37
|
+
return result;
|
|
38
|
+
}, "applyWorkspaceBaseTokens");
|
|
39
|
+
var applyWorkspaceTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config, tokenizerFn) => {
|
|
40
|
+
if (!options) {
|
|
41
|
+
return {};
|
|
42
|
+
}
|
|
43
|
+
const result = {};
|
|
44
|
+
for (const option of Object.keys(options)) {
|
|
45
|
+
if (typeof options[option] === "string") {
|
|
46
|
+
result[option] = await Promise.resolve(tokenizerFn(options[option], config));
|
|
47
|
+
} else if (Array.isArray(options[option])) {
|
|
48
|
+
result[option] = await Promise.all(options[option].map(async (item) => typeof item === "string" ? await Promise.resolve(tokenizerFn(item, config)) : item));
|
|
49
|
+
} else if (typeof options[option] === "object") {
|
|
50
|
+
result[option] = await applyWorkspaceTokens(options[option], config, tokenizerFn);
|
|
51
|
+
} else {
|
|
52
|
+
result[option] = options[option];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return result;
|
|
56
|
+
}, "applyWorkspaceTokens");
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
exports.applyWorkspaceBaseTokens = applyWorkspaceBaseTokens; exports.applyWorkspaceTokens = applyWorkspaceTokens;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
7
|
+
|
|
8
|
+
// ../config-tools/src/utilities/find-up.ts
|
|
9
|
+
var _fs = require('fs');
|
|
10
|
+
var _path = require('path');
|
|
11
|
+
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
12
|
+
var depth = 0;
|
|
13
|
+
function findFolderUp(startPath, endFileNames) {
|
|
14
|
+
const _startPath = _nullishCoalesce(startPath, () => ( process.cwd()));
|
|
15
|
+
if (endFileNames.some((endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName)))) {
|
|
16
|
+
return _startPath;
|
|
17
|
+
}
|
|
18
|
+
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
19
|
+
const parent = _path.join.call(void 0, _startPath, "..");
|
|
20
|
+
return findFolderUp(parent, endFileNames);
|
|
21
|
+
}
|
|
22
|
+
return void 0;
|
|
23
|
+
}
|
|
24
|
+
_chunk3GQAWCBQjs.__name.call(void 0, findFolderUp, "findFolderUp");
|
|
25
|
+
|
|
26
|
+
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
27
|
+
var rootFiles = [
|
|
28
|
+
"storm.json",
|
|
29
|
+
"storm.json",
|
|
30
|
+
"storm.yaml",
|
|
31
|
+
"storm.yml",
|
|
32
|
+
"storm.js",
|
|
33
|
+
"storm.ts",
|
|
34
|
+
".storm.json",
|
|
35
|
+
".storm.yaml",
|
|
36
|
+
".storm.yml",
|
|
37
|
+
".storm.js",
|
|
38
|
+
".storm.ts",
|
|
39
|
+
"lerna.json",
|
|
40
|
+
"nx.json",
|
|
41
|
+
"turbo.json",
|
|
42
|
+
"npm-workspace.json",
|
|
43
|
+
"yarn-workspace.json",
|
|
44
|
+
"pnpm-workspace.json",
|
|
45
|
+
"npm-workspace.yaml",
|
|
46
|
+
"yarn-workspace.yaml",
|
|
47
|
+
"pnpm-workspace.yaml",
|
|
48
|
+
"npm-workspace.yml",
|
|
49
|
+
"yarn-workspace.yml",
|
|
50
|
+
"pnpm-workspace.yml",
|
|
51
|
+
"npm-lock.json",
|
|
52
|
+
"yarn-lock.json",
|
|
53
|
+
"pnpm-lock.json",
|
|
54
|
+
"npm-lock.yaml",
|
|
55
|
+
"yarn-lock.yaml",
|
|
56
|
+
"pnpm-lock.yaml",
|
|
57
|
+
"npm-lock.yml",
|
|
58
|
+
"yarn-lock.yml",
|
|
59
|
+
"pnpm-lock.yml",
|
|
60
|
+
"bun.lockb"
|
|
61
|
+
];
|
|
62
|
+
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
63
|
+
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
64
|
+
return _chunkXCSSYTCUjs.correctPaths.call(void 0, _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
|
|
65
|
+
}
|
|
66
|
+
return _chunkXCSSYTCUjs.correctPaths.call(void 0, findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles));
|
|
67
|
+
}
|
|
68
|
+
_chunk3GQAWCBQjs.__name.call(void 0, findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
69
|
+
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
70
|
+
const result = findWorkspaceRootSafe(pathInsideMonorepo);
|
|
71
|
+
if (!result) {
|
|
72
|
+
throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
|
|
73
|
+
${rootFiles.join("\n")}
|
|
74
|
+
Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
|
|
75
|
+
}
|
|
76
|
+
return result;
|
|
77
|
+
}
|
|
78
|
+
_chunk3GQAWCBQjs.__name.call(void 0, findWorkspaceRoot, "findWorkspaceRoot");
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
exports.findWorkspaceRoot = findWorkspaceRoot;
|