powerlines 0.24.8 → 0.25.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/dist/{api-C32Buv5_.d.ts → api-BTK8aYwE.d.cts} +1 -1
- package/dist/{api-wzd5AREv.d.cts → api-eyrYBmQh.d.ts} +1 -1
- package/dist/api.cjs +8 -6
- package/dist/api.d.cts +20 -22
- package/dist/api.d.ts +20 -22
- package/dist/api.js +7 -5
- package/dist/astro.cjs +12 -10
- package/dist/astro.d.cts +19 -21
- package/dist/astro.d.ts +19 -21
- package/dist/astro.js +10 -8
- package/dist/{chunk-JKBJF3UI.js → chunk-2MYPFASJ.js} +2 -0
- package/dist/chunk-2VIXD2XB.js +3 -0
- package/dist/{chunk-OB7MYWHE.js → chunk-44PO64SX.js} +4 -2
- package/dist/chunk-4JCNAKOE.cjs +4 -0
- package/dist/{chunk-QH4TS5V4.cjs → chunk-6MFZ436T.cjs} +978 -1032
- package/dist/chunk-6ZGIV2SU.cjs +4 -0
- package/dist/chunk-7BZQBW77.cjs +4 -0
- package/dist/{chunk-JQCWV4DT.js → chunk-7LKYXMB3.js} +2 -0
- package/dist/{chunk-SHUYVCID.js → chunk-7QVYU63E.js} +2 -0
- package/dist/chunk-AFJCY3R6.js +3 -0
- package/dist/chunk-AXIRZAL7.js +3 -0
- package/dist/chunk-BTNHSS2P.cjs +13 -0
- package/dist/{chunk-FQXHIKCM.cjs → chunk-C2U4ATHO.cjs} +9 -7
- package/dist/chunk-DFLNRC3B.cjs +4 -0
- package/dist/chunk-DS7OM4NX.cjs +4 -0
- package/dist/{chunk-W5X3ZEZ5.js → chunk-EBXVKPUX.js} +2 -0
- package/dist/{chunk-X74SYWFL.cjs → chunk-G2EHTXK6.cjs} +9 -7
- package/dist/chunk-GIE6OE3X.js +3 -0
- package/dist/chunk-HJW7OH6E.js +3 -0
- package/dist/{chunk-MOXO6WJO.js → chunk-HSIMIWOH.js} +3 -1
- package/dist/{chunk-5IBA5HC2.cjs → chunk-HTJKPEWU.cjs} +6 -4
- package/dist/chunk-IHUNA3MO.cjs +4 -0
- package/dist/chunk-JU2HWIWS.js +12 -0
- package/dist/{chunk-BCHFSOQ4.js → chunk-LQXE5JHF.js} +906 -957
- package/dist/chunk-MBBNZS6K.cjs +16 -0
- package/dist/{chunk-3TNZWTLG.js → chunk-NNADGQRN.js} +5 -3
- package/dist/chunk-OYASPHNL.js +3 -0
- package/dist/chunk-PCCFAZML.js +3 -0
- package/dist/{chunk-USNT2KNT.cjs → chunk-PK6SKIKE.cjs} +2 -0
- package/dist/{chunk-ETKZMGLN.cjs → chunk-PSTCR335.cjs} +2 -0
- package/dist/chunk-Q7EJVZVI.cjs +4 -0
- package/dist/{chunk-CJSGAITR.js → chunk-S7MXT5A2.js} +3 -1
- package/dist/{chunk-7RWEBVQC.cjs → chunk-SDVEUTY2.cjs} +13 -11
- package/dist/{chunk-OLCL34MI.js → chunk-SYDUPBME.js} +6 -4
- package/dist/chunk-TLHFXGYV.js +3 -0
- package/dist/chunk-TP5MEMLG.cjs +12 -0
- package/dist/chunk-VNRXLY2T.js +3 -0
- package/dist/chunk-VQCQRLGM.cjs +4 -0
- package/dist/chunk-XZO6ZJQP.cjs +4 -0
- package/dist/{chunk-XP7OML7S.cjs → chunk-YUX7LOBU.cjs} +2 -0
- package/dist/chunk-YZZUOOPS.cjs +4 -0
- package/dist/chunk-Z5H7LD6W.js +3 -0
- package/dist/{chunk-VBR53KGY.js → chunk-Z5UEYORO.js} +5 -3
- package/dist/{chunk-PAMSESZV.cjs → chunk-Z6ARQDHR.cjs} +2 -0
- package/dist/config.cjs +5 -3
- package/dist/config.d.cts +19 -21
- package/dist/config.d.ts +19 -21
- package/dist/config.js +4 -2
- package/dist/{resolved-CSqGKlA5.d.cts → context-TizkCfOv.d.cts} +848 -849
- package/dist/{resolved-BABoCnXm.d.ts → context-jhcT1Vi1.d.ts} +848 -849
- package/dist/esbuild.cjs +13 -11
- package/dist/esbuild.d.cts +19 -21
- package/dist/esbuild.d.ts +19 -21
- package/dist/esbuild.js +10 -8
- package/dist/farm.cjs +9 -7
- package/dist/farm.d.cts +19 -21
- package/dist/farm.d.ts +19 -21
- package/dist/farm.js +8 -6
- package/dist/index.cjs +39 -41
- package/dist/index.d.cts +30 -55
- package/dist/index.d.ts +30 -55
- package/dist/index.js +20 -18
- package/dist/lib/{api-CDUN9en8.d.ts → api-CCOhyMZo.d.cts} +1 -1
- package/dist/lib/{api-BRMITKt-.d.cts → api-CpJJXdtL.d.ts} +1 -1
- package/dist/lib/build/esbuild.cjs +5 -5
- package/dist/lib/build/esbuild.d.cts +2 -2
- package/dist/lib/build/esbuild.d.ts +2 -2
- package/dist/lib/build/esbuild.js +2 -2
- package/dist/lib/build/index.cjs +25 -25
- package/dist/lib/build/index.d.cts +4 -4
- package/dist/lib/build/index.d.ts +4 -4
- package/dist/lib/build/index.js +9 -9
- package/dist/lib/build/rolldown.cjs +3 -3
- package/dist/lib/build/rolldown.d.cts +2 -2
- package/dist/lib/build/rolldown.d.ts +2 -2
- package/dist/lib/build/rolldown.js +2 -2
- package/dist/lib/build/rollup.cjs +3 -3
- package/dist/lib/build/rollup.d.cts +2 -2
- package/dist/lib/build/rollup.d.ts +2 -2
- package/dist/lib/build/rollup.js +1 -1
- package/dist/lib/build/rspack.cjs +2 -2
- package/dist/lib/build/rspack.d.cts +2 -2
- package/dist/lib/build/rspack.d.ts +2 -2
- package/dist/lib/build/rspack.js +1 -1
- package/dist/lib/build/tsup.cjs +6 -6
- package/dist/lib/build/tsup.d.cts +2 -2
- package/dist/lib/build/tsup.d.ts +2 -2
- package/dist/lib/build/tsup.js +3 -3
- package/dist/lib/build/unbuild.cjs +5 -5
- package/dist/lib/build/unbuild.d.cts +4 -4
- package/dist/lib/build/unbuild.d.ts +4 -4
- package/dist/lib/build/unbuild.js +2 -2
- package/dist/lib/build/vite.cjs +5 -5
- package/dist/lib/build/vite.d.cts +2 -2
- package/dist/lib/build/vite.d.ts +2 -2
- package/dist/lib/build/vite.js +3 -3
- package/dist/lib/build/webpack.cjs +2 -2
- package/dist/lib/build/webpack.d.cts +2 -2
- package/dist/lib/build/webpack.d.ts +2 -2
- package/dist/lib/build/webpack.js +1 -1
- package/dist/lib/chunk-3T56KQ7U.cjs +49 -0
- package/dist/lib/{chunk-PZLO6FZW.js → chunk-3W53W5J2.js} +2 -2
- package/dist/lib/chunk-4W6WV35V.js +108 -0
- package/dist/lib/chunk-6OYSDQXE.cjs +139 -0
- package/dist/lib/{chunk-EV357RFB.cjs → chunk-7MHUTBEC.cjs} +1 -3
- package/dist/lib/{chunk-A2NFSQ5K.js → chunk-7OVZZWGY.js} +1 -1
- package/dist/lib/chunk-A2NW7WAN.js +47 -0
- package/dist/lib/chunk-D6MI2V6R.cjs +115 -0
- package/dist/lib/{chunk-VHLINWXG.js → chunk-DLVVEHMU.js} +1 -1
- package/dist/lib/{chunk-XLYMVIVD.cjs → chunk-DNQBXFNE.cjs} +10 -10
- package/dist/lib/{chunk-UGVHYKKN.js → chunk-DYLE5FD3.js} +39 -2
- package/dist/lib/{chunk-AKBAX4FH.js → chunk-EN52JYUK.js} +1 -1
- package/dist/lib/{chunk-JYDGFQIV.cjs → chunk-F2CXZUSB.cjs} +1 -1
- package/dist/lib/{chunk-7VJ42H2I.cjs → chunk-HRRI4KOM.cjs} +1 -3
- package/dist/lib/{chunk-LPRZ3HD4.cjs → chunk-IXTLRVAK.cjs} +3 -3
- package/dist/lib/{chunk-SYF7QG2J.js → chunk-J3BW52BU.js} +1 -1
- package/dist/lib/chunk-KFDNKOXM.js +56 -0
- package/dist/lib/chunk-L56XA427.js +137 -0
- package/dist/lib/{chunk-6PPZCPME.cjs → chunk-LOW2TIQ6.cjs} +2 -2
- package/dist/lib/{chunk-TMZCGC5U.js → chunk-MI55FDCZ.js} +1 -1
- package/dist/lib/{chunk-DUZJ7ZF2.cjs → chunk-MKKWFHGE.cjs} +2 -2
- package/dist/lib/{chunk-ISBHXSDH.cjs → chunk-N5XEKCVW.cjs} +1 -1
- package/dist/lib/{chunk-XZFEHPYE.js → chunk-N5YLKWC2.js} +1 -1
- package/dist/lib/chunk-NIRFKQAD.js +845 -0
- package/dist/lib/{chunk-YMHOAMCU.cjs → chunk-NLJR4WIX.cjs} +41 -4
- package/dist/lib/{chunk-L3HESXYF.cjs → chunk-NUE5DIH3.cjs} +3 -3
- package/dist/lib/chunk-OBA5U4Y2.js +1059 -0
- package/dist/lib/{chunk-FQLZZYYO.js → chunk-OEF6EHQV.js} +1 -3
- package/dist/lib/{chunk-WTTBXYFQ.js → chunk-OFXWRM3U.js} +2 -2
- package/dist/lib/chunk-ONETLSPO.js +85 -0
- package/dist/lib/{chunk-2OV26JXJ.cjs → chunk-PQRWG64T.cjs} +3 -3
- package/dist/lib/chunk-R33US3PV.cjs +1081 -0
- package/dist/lib/{chunk-OA7OL7HF.cjs → chunk-SFEEJZLK.cjs} +38 -66
- package/dist/lib/{chunk-H6EOZSIZ.js → chunk-TAVG226Z.js} +1 -1
- package/dist/lib/{chunk-DALRRHB4.cjs → chunk-TSFG3WEA.cjs} +1 -1
- package/dist/lib/{chunk-RMA2PMP7.cjs → chunk-TZCC5IWH.cjs} +3 -3
- package/dist/lib/chunk-VHCBD2IS.js +149 -0
- package/dist/lib/{chunk-HY6DNFCT.js → chunk-VODWHWD6.js} +2 -2
- package/dist/lib/{chunk-2X5DUDNT.js → chunk-W6GWSJ22.js} +2 -2
- package/dist/lib/chunk-WBSA6OG6.cjs +860 -0
- package/dist/lib/{chunk-TOCNXURI.cjs → chunk-WCXA5WFX.cjs} +4 -4
- package/dist/lib/{chunk-6I5PL7H2.js → chunk-WGSZ4X6N.js} +1 -3
- package/dist/lib/{chunk-T2KQZC5K.js → chunk-WLDQUTFD.js} +27 -54
- package/dist/lib/{chunk-AOHJEL2Q.js → chunk-WOKPJMGJ.js} +3 -3
- package/dist/lib/{chunk-TDJNFAOV.cjs → chunk-X6JDYLWM.cjs} +1 -1
- package/dist/lib/chunk-XLHFUATD.cjs +151 -0
- package/dist/lib/chunk-XUYQYUWZ.cjs +87 -0
- package/dist/lib/chunk-YYEAV24J.cjs +67 -0
- package/dist/lib/{config-D8KrE7SZ.d.cts → config-Cqxh4V21.d.cts} +58 -475
- package/dist/lib/{config-DBIFdRoq.d.ts → config-D-WwQL-4.d.ts} +58 -475
- package/dist/lib/config-file.d.cts +2 -2
- package/dist/lib/config-file.d.ts +2 -2
- package/dist/lib/contexts/api-context.cjs +12 -7
- package/dist/lib/contexts/api-context.d.cts +27 -4
- package/dist/lib/contexts/api-context.d.ts +27 -4
- package/dist/lib/contexts/api-context.js +11 -6
- package/dist/lib/contexts/context.cjs +10 -5
- package/dist/lib/contexts/context.d.cts +7 -7
- package/dist/lib/contexts/context.d.ts +7 -7
- package/dist/lib/contexts/context.js +9 -4
- package/dist/lib/contexts/environment-context.cjs +11 -6
- package/dist/lib/contexts/environment-context.d.cts +4 -4
- package/dist/lib/contexts/environment-context.d.ts +4 -4
- package/dist/lib/contexts/environment-context.js +10 -5
- package/dist/lib/contexts/index.cjs +14 -9
- package/dist/lib/contexts/index.d.cts +4 -4
- package/dist/lib/contexts/index.d.ts +4 -4
- package/dist/lib/contexts/index.js +11 -6
- package/dist/lib/contexts/plugin-context.d.cts +4 -4
- package/dist/lib/contexts/plugin-context.d.ts +4 -4
- package/dist/lib/entry.cjs +9 -9
- package/dist/lib/entry.d.cts +2 -2
- package/dist/lib/entry.d.ts +2 -2
- package/dist/lib/entry.js +1 -1
- package/dist/lib/fs/helpers.cjs +47 -0
- package/dist/lib/fs/helpers.d.cts +74 -0
- package/dist/lib/fs/helpers.d.ts +74 -0
- package/dist/lib/fs/helpers.js +2 -0
- package/dist/lib/fs/index.cjs +17 -0
- package/dist/lib/fs/index.d.cts +33 -0
- package/dist/lib/fs/index.d.ts +33 -0
- package/dist/lib/fs/index.js +8 -0
- package/dist/lib/fs/storage/base.cjs +11 -0
- package/dist/lib/fs/storage/base.d.cts +138 -0
- package/dist/lib/fs/storage/base.d.ts +138 -0
- package/dist/lib/fs/storage/base.js +2 -0
- package/dist/lib/fs/storage/file-system.cjs +13 -0
- package/dist/lib/fs/storage/file-system.d.cts +90 -0
- package/dist/lib/fs/storage/file-system.d.ts +90 -0
- package/dist/lib/fs/storage/file-system.js +4 -0
- package/dist/lib/fs/storage/index.cjs +22 -0
- package/dist/lib/fs/storage/index.d.cts +6 -0
- package/dist/lib/fs/storage/index.d.ts +6 -0
- package/dist/lib/fs/storage/index.js +5 -0
- package/dist/lib/fs/storage/virtual.cjs +12 -0
- package/dist/lib/fs/storage/virtual.d.cts +66 -0
- package/dist/lib/fs/storage/virtual.d.ts +66 -0
- package/dist/lib/fs/storage/virtual.js +3 -0
- package/dist/lib/fs/vfs.cjs +16 -0
- package/dist/lib/fs/vfs.d.cts +247 -0
- package/dist/lib/fs/vfs.d.ts +247 -0
- package/dist/lib/fs/vfs.js +7 -0
- package/dist/lib/fs-Dg-aTfiN.d.cts +378 -0
- package/dist/lib/fs-Dg-aTfiN.d.ts +378 -0
- package/dist/lib/index.cjs +62 -68
- package/dist/lib/index.d.cts +18 -356
- package/dist/lib/index.d.ts +18 -356
- package/dist/lib/index.js +19 -13
- package/dist/lib/{internal-CaGANOWK.d.cts → internal-Cl7s1iAA.d.cts} +2 -2
- package/dist/lib/{internal-1qCyw7bA.d.ts → internal-W5pvS6e9.d.ts} +2 -2
- package/dist/lib/logger.d.cts +2 -2
- package/dist/lib/logger.d.ts +2 -2
- package/dist/lib/typescript/import-transformer.cjs +7 -45
- package/dist/lib/typescript/import-transformer.d.cts +2 -2
- package/dist/lib/typescript/import-transformer.d.ts +2 -2
- package/dist/lib/typescript/import-transformer.js +2 -47
- package/dist/lib/typescript/index.cjs +10 -22
- package/dist/lib/typescript/index.d.cts +4 -4
- package/dist/lib/typescript/index.d.ts +4 -4
- package/dist/lib/typescript/index.js +2 -2
- package/dist/lib/typescript/ts-morph.cjs +6 -2
- package/dist/lib/typescript/ts-morph.d.cts +28 -4
- package/dist/lib/typescript/ts-morph.d.ts +28 -4
- package/dist/lib/typescript/ts-morph.js +1 -1
- package/dist/lib/unplugin/factory.cjs +14 -9
- package/dist/lib/unplugin/factory.d.cts +4 -4
- package/dist/lib/unplugin/factory.d.ts +4 -4
- package/dist/lib/unplugin/factory.js +13 -8
- package/dist/lib/unplugin/helpers.d.cts +2 -2
- package/dist/lib/unplugin/helpers.d.ts +2 -2
- package/dist/lib/unplugin/index.cjs +16 -11
- package/dist/lib/unplugin/index.d.cts +4 -4
- package/dist/lib/unplugin/index.d.ts +4 -4
- package/dist/lib/unplugin/index.js +14 -9
- package/dist/lib/unplugin/plugin.cjs +2 -2
- package/dist/lib/unplugin/plugin.d.cts +4 -4
- package/dist/lib/unplugin/plugin.d.ts +4 -4
- package/dist/lib/unplugin/plugin.js +1 -1
- package/dist/lib/{unplugin-CEeJqADD.d.ts → unplugin-Cg2NoKj0.d.ts} +2 -2
- package/dist/lib/{unplugin-bUSyjd0S.d.cts → unplugin-trF-VLnO.d.cts} +2 -2
- package/dist/lib/utilities/bundle.cjs +4 -4
- package/dist/lib/utilities/bundle.d.cts +2 -2
- package/dist/lib/utilities/bundle.d.ts +2 -2
- package/dist/lib/utilities/bundle.js +3 -3
- package/dist/lib/utilities/cache.d.cts +2 -2
- package/dist/lib/utilities/cache.d.ts +2 -2
- package/dist/lib/utilities/file-header.d.cts +2 -2
- package/dist/lib/utilities/file-header.d.ts +2 -2
- package/dist/lib/utilities/index.cjs +22 -22
- package/dist/lib/utilities/index.d.cts +2 -2
- package/dist/lib/utilities/index.d.ts +2 -2
- package/dist/lib/utilities/index.js +6 -6
- package/dist/lib/utilities/meta.cjs +7 -7
- package/dist/lib/utilities/meta.d.cts +2 -2
- package/dist/lib/utilities/meta.d.ts +2 -2
- package/dist/lib/utilities/meta.js +1 -1
- package/dist/lib/utilities/resolve.cjs +5 -5
- package/dist/lib/utilities/resolve.d.cts +2 -2
- package/dist/lib/utilities/resolve.d.ts +2 -2
- package/dist/lib/utilities/resolve.js +4 -4
- package/dist/lib/utilities/source-file.d.cts +2 -2
- package/dist/lib/utilities/source-file.d.ts +2 -2
- package/dist/lib/utilities/source-map.d.cts +2 -2
- package/dist/lib/utilities/source-map.d.ts +2 -2
- package/dist/lib/utilities/worker.d.cts +2 -2
- package/dist/lib/utilities/worker.d.ts +2 -2
- package/dist/lib/utilities/write-file.d.cts +2 -2
- package/dist/lib/utilities/write-file.d.ts +2 -2
- package/dist/next.cjs +11 -9
- package/dist/next.js +9 -7
- package/dist/nuxt.cjs +13 -11
- package/dist/nuxt.js +11 -9
- package/dist/plugin-utils/{chunk-JHTLGE4X.js → chunk-K2GWRZPV.js} +1 -1
- package/dist/plugin-utils/{chunk-HSYQWNIH.cjs → chunk-VWFJOPKC.cjs} +1 -1
- package/dist/plugin-utils/{context-BITGF5LZ.d.cts → context-PtfEjz3_.d.cts} +187 -230
- package/dist/plugin-utils/{context-BITGF5LZ.d.ts → context-PtfEjz3_.d.ts} +187 -230
- package/dist/plugin-utils/context-helpers.d.cts +1 -2
- package/dist/plugin-utils/context-helpers.d.ts +1 -2
- package/dist/plugin-utils/enforce.d.cts +1 -2
- package/dist/plugin-utils/enforce.d.ts +1 -2
- package/dist/plugin-utils/extend.d.cts +1 -2
- package/dist/plugin-utils/extend.d.ts +1 -2
- package/dist/plugin-utils/get-config-path.d.cts +1 -2
- package/dist/plugin-utils/get-config-path.d.ts +1 -2
- package/dist/plugin-utils/helpers.d.cts +1 -2
- package/dist/plugin-utils/helpers.d.ts +1 -2
- package/dist/plugin-utils/index.cjs +2 -2
- package/dist/plugin-utils/index.d.cts +1 -2
- package/dist/plugin-utils/index.d.ts +1 -2
- package/dist/plugin-utils/index.js +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -2
- package/dist/plugin-utils/merge.d.ts +1 -2
- package/dist/plugin-utils/paths.cjs +2 -2
- package/dist/plugin-utils/paths.d.cts +2 -3
- package/dist/plugin-utils/paths.d.ts +2 -3
- package/dist/plugin-utils/paths.js +1 -1
- package/dist/rolldown.cjs +9 -7
- package/dist/rolldown.d.cts +19 -21
- package/dist/rolldown.d.ts +19 -21
- package/dist/rolldown.js +8 -6
- package/dist/rollup.cjs +9 -7
- package/dist/rollup.d.cts +19 -21
- package/dist/rollup.d.ts +19 -21
- package/dist/rollup.js +8 -6
- package/dist/rspack.cjs +9 -7
- package/dist/rspack.d.cts +18 -20
- package/dist/rspack.d.ts +18 -20
- package/dist/rspack.js +8 -6
- package/dist/tsup.cjs +12 -10
- package/dist/tsup.js +10 -8
- package/dist/types/api.cjs +3 -1
- package/dist/types/api.cjs.map +1 -0
- package/dist/types/api.d.cts +20 -22
- package/dist/types/api.d.ts +20 -22
- package/dist/types/api.js +3 -1
- package/dist/types/api.js.map +1 -0
- package/dist/types/babel.cjs +3 -1
- package/dist/types/babel.cjs.map +1 -0
- package/dist/types/babel.d.cts +17 -19
- package/dist/types/babel.d.ts +17 -19
- package/dist/types/babel.js +3 -1
- package/dist/types/babel.js.map +1 -0
- package/dist/types/build.cjs +3 -1
- package/dist/types/build.cjs.map +1 -0
- package/dist/types/build.js +3 -1
- package/dist/types/build.js.map +1 -0
- package/dist/types/commands.cjs +5 -3
- package/dist/types/commands.cjs.map +1 -0
- package/dist/types/commands.d.cts +18 -20
- package/dist/types/commands.d.ts +18 -20
- package/dist/types/commands.js +4 -2
- package/dist/types/commands.js.map +1 -0
- package/dist/types/config.cjs +3 -1
- package/dist/types/config.cjs.map +1 -0
- package/dist/types/config.d.cts +2 -4
- package/dist/types/config.d.ts +2 -4
- package/dist/types/config.js +3 -1
- package/dist/types/config.js.map +1 -0
- package/dist/types/context.cjs +5 -3
- package/dist/types/context.cjs.map +1 -0
- package/dist/types/context.d.cts +8 -10
- package/dist/types/context.d.ts +8 -10
- package/dist/types/context.js +4 -2
- package/dist/types/context.js.map +1 -0
- package/dist/types/fs.cjs +10 -4
- package/dist/types/fs.cjs.map +1 -0
- package/dist/types/fs.d.cts +138 -184
- package/dist/types/fs.d.ts +138 -184
- package/dist/types/fs.js +4 -2
- package/dist/types/fs.js.map +1 -0
- package/dist/types/hooks.cjs +3 -1
- package/dist/types/hooks.cjs.map +1 -0
- package/dist/types/hooks.d.cts +19 -21
- package/dist/types/hooks.d.ts +19 -21
- package/dist/types/hooks.js +3 -1
- package/dist/types/hooks.js.map +1 -0
- package/dist/types/index.cjs +26 -20
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.d.cts +13 -15
- package/dist/types/index.d.ts +13 -15
- package/dist/types/index.js +17 -15
- package/dist/types/index.js.map +1 -0
- package/dist/types/internal.cjs +2 -0
- package/dist/types/internal.cjs.map +1 -0
- package/dist/types/internal.d.cts +20 -22
- package/dist/types/internal.d.ts +20 -22
- package/dist/types/internal.js +2 -0
- package/dist/types/internal.js.map +1 -0
- package/dist/types/plugin.cjs +5 -3
- package/dist/types/plugin.cjs.map +1 -0
- package/dist/types/plugin.d.cts +9 -11
- package/dist/types/plugin.d.ts +9 -11
- package/dist/types/plugin.js +4 -2
- package/dist/types/plugin.js.map +1 -0
- package/dist/types/resolved.cjs +3 -1
- package/dist/types/resolved.cjs.map +1 -0
- package/dist/types/resolved.d.cts +7 -9
- package/dist/types/resolved.d.ts +7 -9
- package/dist/types/resolved.js +3 -1
- package/dist/types/resolved.js.map +1 -0
- package/dist/types/tsconfig.cjs +3 -1
- package/dist/types/tsconfig.cjs.map +1 -0
- package/dist/types/tsconfig.js +3 -1
- package/dist/types/tsconfig.js.map +1 -0
- package/dist/types/typedoc.cjs +3 -1
- package/dist/types/typedoc.cjs.map +1 -0
- package/dist/types/typedoc.js +3 -1
- package/dist/types/typedoc.js.map +1 -0
- package/dist/types/unplugin.cjs +3 -1
- package/dist/types/unplugin.cjs.map +1 -0
- package/dist/types/unplugin.d.cts +11 -13
- package/dist/types/unplugin.d.ts +11 -13
- package/dist/types/unplugin.js +3 -1
- package/dist/types/unplugin.js.map +1 -0
- package/dist/unloader.cjs +9 -7
- package/dist/unloader.d.cts +19 -21
- package/dist/unloader.d.ts +19 -21
- package/dist/unloader.js +8 -6
- package/dist/unplugin.cjs +20 -20
- package/dist/unplugin.d.cts +19 -21
- package/dist/unplugin.d.ts +19 -21
- package/dist/unplugin.js +10 -10
- package/dist/vite.cjs +13 -11
- package/dist/vite.d.cts +19 -21
- package/dist/vite.d.ts +19 -21
- package/dist/vite.js +10 -8
- package/dist/webpack.cjs +12 -10
- package/dist/webpack.d.cts +19 -21
- package/dist/webpack.d.ts +19 -21
- package/dist/webpack.js +9 -7
- package/package.json +72 -19
- package/schemas/fs.capnp +4 -59
- package/dist/chunk-2NO7N5OW.cjs +0 -2
- package/dist/chunk-7GYTTM4M.cjs +0 -2
- package/dist/chunk-AENPRFWJ.cjs +0 -2
- package/dist/chunk-AYKZK666.cjs +0 -8
- package/dist/chunk-BUR2JQ6G.cjs +0 -11
- package/dist/chunk-DRXFQCNC.js +0 -1
- package/dist/chunk-FNZDWE4L.js +0 -1
- package/dist/chunk-GHJU2KGP.cjs +0 -2
- package/dist/chunk-GRU7B3QM.cjs +0 -2
- package/dist/chunk-HQFZ64VC.cjs +0 -2
- package/dist/chunk-J4BQZHTQ.js +0 -1
- package/dist/chunk-JGB5YQ2U.js +0 -1
- package/dist/chunk-KALR2O2F.cjs +0 -2
- package/dist/chunk-LOUZXJFY.cjs +0 -10
- package/dist/chunk-OO3YXM72.js +0 -1
- package/dist/chunk-QE3WGMAP.js +0 -1
- package/dist/chunk-SMNKPH4T.js +0 -1
- package/dist/chunk-T2P533I5.js +0 -1
- package/dist/chunk-V3MLQDZQ.js +0 -1
- package/dist/chunk-VT7NVLLU.js +0 -5
- package/dist/chunk-YRJ4MLVL.cjs +0 -2
- package/dist/chunk-ZC43PZXS.cjs +0 -2
- package/dist/lib/chunk-3MZQ4MQX.cjs +0 -2360
- package/dist/lib/chunk-5JAFU45Z.js +0 -2324
- package/dist/lib/chunk-HAXL7QE7.js +0 -154
- package/dist/lib/chunk-SAS5EPBD.cjs +0 -107
- package/dist/lib/chunk-WUYK74EH.cjs +0 -165
- package/dist/lib/chunk-YQ3ODCHV.js +0 -105
- package/dist/lib/typescript/compiler-host.cjs +0 -164
- package/dist/lib/typescript/compiler-host.d.cts +0 -63
- package/dist/lib/typescript/compiler-host.d.ts +0 -63
- package/dist/lib/typescript/compiler-host.js +0 -156
- package/dist/lib/typescript/program.cjs +0 -27
- package/dist/lib/typescript/program.d.cts +0 -68
- package/dist/lib/typescript/program.d.ts +0 -68
- package/dist/lib/typescript/program.js +0 -2
- /package/dist/{chunk-2NCILNCH.cjs → lib/chunk-K2SFTPN3.cjs} +0 -0
- /package/dist/{chunk-BLNT5INX.js → lib/chunk-NQAHFTUW.js} +0 -0
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { System, CompilerOptions, CompilerHost, Program } from 'typescript';
|
|
2
|
-
import { C as Context } from '../config-D8KrE7SZ.cjs';
|
|
3
|
-
import '@storm-software/build-tools/types';
|
|
4
|
-
import '@storm-software/config-tools/types';
|
|
5
|
-
import '@storm-software/config/types';
|
|
6
|
-
import '@stryke/types/base';
|
|
7
|
-
import '@stryke/types/configuration';
|
|
8
|
-
import '@stryke/types/file';
|
|
9
|
-
import 'c12';
|
|
10
|
-
import 'vite';
|
|
11
|
-
import '@farmfe/core';
|
|
12
|
-
import '@rspack/core';
|
|
13
|
-
import '@storm-software/tsup/types';
|
|
14
|
-
import '@storm-software/unbuild/types';
|
|
15
|
-
import 'esbuild';
|
|
16
|
-
import 'rolldown';
|
|
17
|
-
import 'rollup';
|
|
18
|
-
import 'webpack';
|
|
19
|
-
import '@stryke/env/get-env-paths';
|
|
20
|
-
import '@stryke/types/package-json';
|
|
21
|
-
import 'jest-worker';
|
|
22
|
-
import 'jiti';
|
|
23
|
-
import 'magic-string';
|
|
24
|
-
import 'semver';
|
|
25
|
-
import 'ts-morph';
|
|
26
|
-
import 'unplugin';
|
|
27
|
-
import '@stryke/fs/resolve';
|
|
28
|
-
import 'node:fs';
|
|
29
|
-
import '@stryke/types/array';
|
|
30
|
-
import '../tsconfig-Bz-CiFqD.cjs';
|
|
31
|
-
import '@stryke/types/tsconfig';
|
|
32
|
-
|
|
33
|
-
type ModuleImportResult = {
|
|
34
|
-
module: unknown;
|
|
35
|
-
error: undefined;
|
|
36
|
-
} | {
|
|
37
|
-
module: undefined;
|
|
38
|
-
error: {
|
|
39
|
-
stack?: string;
|
|
40
|
-
message?: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
interface TypeScriptSystem extends System {
|
|
44
|
-
require: (baseDir: string, moduleName: string) => ModuleImportResult;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Creates an in-memory System object which can be used in a TypeScript program, this
|
|
48
|
-
* is what provides read/write aspects of the virtual fs
|
|
49
|
-
*/
|
|
50
|
-
declare function createVirtualSystem(context: Context): System;
|
|
51
|
-
/**
|
|
52
|
-
* Creates a TypeScript compiler host that uses the virtual file system (VFS) from the provided context to resolve paths.
|
|
53
|
-
*
|
|
54
|
-
* @param context - The context containing the virtual file system.
|
|
55
|
-
* @param compilerOptions - The TypeScript compiler options.
|
|
56
|
-
* @returns A TypeScript compiler host with VFS path resolution.
|
|
57
|
-
*/
|
|
58
|
-
declare function createCompilerHost(context: Context, compilerOptions: CompilerOptions): CompilerHost;
|
|
59
|
-
declare function createProgram(context: Context, fileNames: string[], _options?: Partial<CompilerOptions>): Promise<Program>;
|
|
60
|
-
declare type __ΩModuleImportResult = any[];
|
|
61
|
-
declare type __ΩTypeScriptSystem = any[];
|
|
62
|
-
|
|
63
|
-
export { type ModuleImportResult, type TypeScriptSystem, type __ΩModuleImportResult, type __ΩTypeScriptSystem, createCompilerHost, createProgram, createVirtualSystem };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { System, CompilerOptions, CompilerHost, Program } from 'typescript';
|
|
2
|
-
import { C as Context } from '../config-DBIFdRoq.js';
|
|
3
|
-
import '@storm-software/build-tools/types';
|
|
4
|
-
import '@storm-software/config-tools/types';
|
|
5
|
-
import '@storm-software/config/types';
|
|
6
|
-
import '@stryke/types/base';
|
|
7
|
-
import '@stryke/types/configuration';
|
|
8
|
-
import '@stryke/types/file';
|
|
9
|
-
import 'c12';
|
|
10
|
-
import 'vite';
|
|
11
|
-
import '@farmfe/core';
|
|
12
|
-
import '@rspack/core';
|
|
13
|
-
import '@storm-software/tsup/types';
|
|
14
|
-
import '@storm-software/unbuild/types';
|
|
15
|
-
import 'esbuild';
|
|
16
|
-
import 'rolldown';
|
|
17
|
-
import 'rollup';
|
|
18
|
-
import 'webpack';
|
|
19
|
-
import '@stryke/env/get-env-paths';
|
|
20
|
-
import '@stryke/types/package-json';
|
|
21
|
-
import 'jest-worker';
|
|
22
|
-
import 'jiti';
|
|
23
|
-
import 'magic-string';
|
|
24
|
-
import 'semver';
|
|
25
|
-
import 'ts-morph';
|
|
26
|
-
import 'unplugin';
|
|
27
|
-
import '@stryke/fs/resolve';
|
|
28
|
-
import 'node:fs';
|
|
29
|
-
import '@stryke/types/array';
|
|
30
|
-
import '../tsconfig-Bz-CiFqD.js';
|
|
31
|
-
import '@stryke/types/tsconfig';
|
|
32
|
-
|
|
33
|
-
type ModuleImportResult = {
|
|
34
|
-
module: unknown;
|
|
35
|
-
error: undefined;
|
|
36
|
-
} | {
|
|
37
|
-
module: undefined;
|
|
38
|
-
error: {
|
|
39
|
-
stack?: string;
|
|
40
|
-
message?: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
interface TypeScriptSystem extends System {
|
|
44
|
-
require: (baseDir: string, moduleName: string) => ModuleImportResult;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Creates an in-memory System object which can be used in a TypeScript program, this
|
|
48
|
-
* is what provides read/write aspects of the virtual fs
|
|
49
|
-
*/
|
|
50
|
-
declare function createVirtualSystem(context: Context): System;
|
|
51
|
-
/**
|
|
52
|
-
* Creates a TypeScript compiler host that uses the virtual file system (VFS) from the provided context to resolve paths.
|
|
53
|
-
*
|
|
54
|
-
* @param context - The context containing the virtual file system.
|
|
55
|
-
* @param compilerOptions - The TypeScript compiler options.
|
|
56
|
-
* @returns A TypeScript compiler host with VFS path resolution.
|
|
57
|
-
*/
|
|
58
|
-
declare function createCompilerHost(context: Context, compilerOptions: CompilerOptions): CompilerHost;
|
|
59
|
-
declare function createProgram(context: Context, fileNames: string[], _options?: Partial<CompilerOptions>): Promise<Program>;
|
|
60
|
-
declare type __ΩModuleImportResult = any[];
|
|
61
|
-
declare type __ΩTypeScriptSystem = any[];
|
|
62
|
-
|
|
63
|
-
export { type ModuleImportResult, type TypeScriptSystem, type __ΩModuleImportResult, type __ΩTypeScriptSystem, createCompilerHost, createProgram, createVirtualSystem };
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { getDefaultCompilerOptions } from '../chunk-HAXL7QE7.js';
|
|
2
|
-
import { getParsedTypeScriptConfig } from '../chunk-ZGMEHSNN.js';
|
|
3
|
-
import { __name } from '../chunk-SHUYVCID.js';
|
|
4
|
-
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
5
|
-
import { resolvePackage } from '@stryke/fs/resolve';
|
|
6
|
-
import { joinPaths } from '@stryke/path/join-paths';
|
|
7
|
-
import { replacePath } from '@stryke/path/replace';
|
|
8
|
-
import { isFunction } from '@stryke/type-checks/is-function';
|
|
9
|
-
import defu from 'defu';
|
|
10
|
-
import { createCompilerHost as createCompilerHost$1, createSourceFile, sys, createProgram as createProgram$1 } from 'typescript';
|
|
11
|
-
|
|
12
|
-
function createVirtualSystem(context) {
|
|
13
|
-
return {
|
|
14
|
-
args: [],
|
|
15
|
-
createDirectory: /* @__PURE__ */ __name((path) => {
|
|
16
|
-
context.fs.mkdirSync(path);
|
|
17
|
-
}, "createDirectory"),
|
|
18
|
-
// TODO: could make a real file tree
|
|
19
|
-
directoryExists: /* @__PURE__ */ __name((directoryName) => {
|
|
20
|
-
return context.fs.existsSync(directoryName);
|
|
21
|
-
}, "directoryExists"),
|
|
22
|
-
exit: /* @__PURE__ */ __name(() => {
|
|
23
|
-
throw new Error("Not implemented: exit");
|
|
24
|
-
}, "exit"),
|
|
25
|
-
fileExists: /* @__PURE__ */ __name((fileName) => context.fs.existsSync(fileName), "fileExists"),
|
|
26
|
-
getCurrentDirectory: /* @__PURE__ */ __name(() => "/", "getCurrentDirectory"),
|
|
27
|
-
getDirectories: /* @__PURE__ */ __name(() => [], "getDirectories"),
|
|
28
|
-
getExecutingFilePath: /* @__PURE__ */ __name(() => {
|
|
29
|
-
throw new Error("Not implemented: getExecutingFilePath");
|
|
30
|
-
}, "getExecutingFilePath"),
|
|
31
|
-
readDirectory: /* @__PURE__ */ __name((directoryName) => {
|
|
32
|
-
return context.fs.readdirSync(directoryName);
|
|
33
|
-
}, "readDirectory"),
|
|
34
|
-
readFile: /* @__PURE__ */ __name((fileName) => {
|
|
35
|
-
if (context.fs.existsSync(fileName)) {
|
|
36
|
-
return context.fs.readFileSync(fileName);
|
|
37
|
-
}
|
|
38
|
-
return void 0;
|
|
39
|
-
}, "readFile"),
|
|
40
|
-
resolvePath: /* @__PURE__ */ __name((path) => context.fs.resolveSync(path) || path, "resolvePath"),
|
|
41
|
-
newLine: "\n",
|
|
42
|
-
useCaseSensitiveFileNames: true,
|
|
43
|
-
write: /* @__PURE__ */ __name(() => {
|
|
44
|
-
throw new Error("Not implemented: write");
|
|
45
|
-
}, "write"),
|
|
46
|
-
writeFile: /* @__PURE__ */ __name((fileName, contents) => {
|
|
47
|
-
context.fs.writeFileSync(fileName, contents);
|
|
48
|
-
}, "writeFile"),
|
|
49
|
-
deleteFile: /* @__PURE__ */ __name((fileName) => {
|
|
50
|
-
context.fs.unlinkSync(fileName);
|
|
51
|
-
}, "deleteFile")
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
__name(createVirtualSystem, "createVirtualSystem");
|
|
55
|
-
function createCompilerHost(context, compilerOptions) {
|
|
56
|
-
const host = createCompilerHost$1(compilerOptions);
|
|
57
|
-
return {
|
|
58
|
-
...host,
|
|
59
|
-
require(baseDir, moduleName) {
|
|
60
|
-
const modulePath = context.fs.resolveSync(moduleName);
|
|
61
|
-
if (modulePath) {
|
|
62
|
-
return {
|
|
63
|
-
module: context.fs.readFileSync(modulePath),
|
|
64
|
-
modulePath,
|
|
65
|
-
error: void 0
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
if (isFunction(sys?.require)) {
|
|
69
|
-
return sys.require(baseDir, moduleName);
|
|
70
|
-
}
|
|
71
|
-
return {
|
|
72
|
-
module: {},
|
|
73
|
-
error: new Error(`Failed to resolve module '${moduleName}' from '${baseDir}' during TypeScript compilation. This is likely due to a missing dependency or an incorrect module path.`)
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
getCanonicalFileName(fileName) {
|
|
77
|
-
return context.fs.resolveSync(fileName) || host.getCanonicalFileName(fileName);
|
|
78
|
-
},
|
|
79
|
-
realpath(fileName) {
|
|
80
|
-
return context.fs.resolveSync(fileName) || host.realpath?.(fileName);
|
|
81
|
-
},
|
|
82
|
-
fileExists(fileName) {
|
|
83
|
-
if (context.fs.existsSync(fileName)) {
|
|
84
|
-
return true;
|
|
85
|
-
}
|
|
86
|
-
if (fileName.includes("tsconfig.json")) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
return host.fileExists(fileName);
|
|
90
|
-
},
|
|
91
|
-
readFile(fileName) {
|
|
92
|
-
if (context.fs.existsSync(fileName)) {
|
|
93
|
-
return context.fs.readFileSync(fileName);
|
|
94
|
-
}
|
|
95
|
-
return host.readFile(fileName);
|
|
96
|
-
},
|
|
97
|
-
writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data) {
|
|
98
|
-
context.fs.existsSync(fileName) ? context.fs.writeFileSync(fileName, text) : host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
|
|
99
|
-
},
|
|
100
|
-
getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile) {
|
|
101
|
-
const path = context.fs.resolveSync(fileName);
|
|
102
|
-
if (path) {
|
|
103
|
-
try {
|
|
104
|
-
return createSourceFile(path, context.fs.readFileSync(path), languageVersionOrOptions ?? compilerOptions.target ?? getDefaultCompilerOptions().target, false);
|
|
105
|
-
} catch (error) {
|
|
106
|
-
context.log(LogLevelLabel.ERROR, `Failed to create source file for '${fileName}': ${error.message}`);
|
|
107
|
-
throw error;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return host.getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
__name(createCompilerHost, "createCompilerHost");
|
|
115
|
-
async function createProgram(context, fileNames, _options = {}) {
|
|
116
|
-
context.log(LogLevelLabel.TRACE, "Adding TypeScript library files.");
|
|
117
|
-
const typescriptPath = await resolvePackage("typescript");
|
|
118
|
-
if (!typescriptPath) {
|
|
119
|
-
throw new Error("Could not resolve TypeScript package location. Please ensure TypeScript is installed.");
|
|
120
|
-
}
|
|
121
|
-
const files = fileNames.reduce((ret, fileName) => {
|
|
122
|
-
const formatted = replacePath(fileName, context.workspaceConfig.workspaceRoot);
|
|
123
|
-
if (!ret.includes(formatted)) {
|
|
124
|
-
ret.push(formatted);
|
|
125
|
-
}
|
|
126
|
-
return ret;
|
|
127
|
-
}, [
|
|
128
|
-
joinPaths(typescriptPath, "lib", "lib.esnext.full.d.ts")
|
|
129
|
-
]);
|
|
130
|
-
context.log(LogLevelLabel.TRACE, "Parsing TypeScript configuration for the Powerlines project.");
|
|
131
|
-
const resolvedTsconfig = getParsedTypeScriptConfig(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.tsconfig.tsconfigFilePath, defu({
|
|
132
|
-
compilerOptions: {
|
|
133
|
-
strict: false,
|
|
134
|
-
noEmit: false,
|
|
135
|
-
declaration: true,
|
|
136
|
-
declarationMap: false,
|
|
137
|
-
emitDeclarationOnly: true,
|
|
138
|
-
skipLibCheck: true
|
|
139
|
-
},
|
|
140
|
-
exclude: [
|
|
141
|
-
"node_modules",
|
|
142
|
-
"dist"
|
|
143
|
-
],
|
|
144
|
-
include: fileNames
|
|
145
|
-
}, context.config.tsconfigRaw ?? {}));
|
|
146
|
-
resolvedTsconfig.options.configFilePath = joinPaths(context.workspaceConfig.workspaceRoot, context.tsconfig.tsconfigFilePath);
|
|
147
|
-
resolvedTsconfig.options.pathsBasePath = context.workspaceConfig.workspaceRoot;
|
|
148
|
-
resolvedTsconfig.options.suppressOutputPathCheck = true;
|
|
149
|
-
context.log(LogLevelLabel.TRACE, "Creating the TypeScript compiler host");
|
|
150
|
-
const host = createCompilerHost(context, resolvedTsconfig.options);
|
|
151
|
-
context.log(LogLevelLabel.TRACE, "Creating the TypeScript compiler program");
|
|
152
|
-
return createProgram$1(files, resolvedTsconfig.options, host);
|
|
153
|
-
}
|
|
154
|
-
__name(createProgram, "createProgram");
|
|
155
|
-
|
|
156
|
-
export { createCompilerHost, createProgram, createVirtualSystem };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkWUYK74EH_cjs = require('../chunk-WUYK74EH.cjs');
|
|
4
|
-
require('../chunk-USNT2KNT.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "SourcesMap", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkWUYK74EH_cjs.SourcesMap; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "createVirtualCompilerHost", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return chunkWUYK74EH_cjs.createVirtualCompilerHost; }
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "createVirtualProgram", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return chunkWUYK74EH_cjs.createVirtualProgram; }
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "getDefaultCompilerOptions", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return chunkWUYK74EH_cjs.getDefaultCompilerOptions; }
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "loadLibFiles", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () { return chunkWUYK74EH_cjs.loadLibFiles; }
|
|
27
|
-
});
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import ts, { CompilerOptions } from 'typescript';
|
|
2
|
-
import { C as Context } from '../config-D8KrE7SZ.cjs';
|
|
3
|
-
import '@storm-software/build-tools/types';
|
|
4
|
-
import '@storm-software/config-tools/types';
|
|
5
|
-
import '@storm-software/config/types';
|
|
6
|
-
import '@stryke/types/base';
|
|
7
|
-
import '@stryke/types/configuration';
|
|
8
|
-
import '@stryke/types/file';
|
|
9
|
-
import 'c12';
|
|
10
|
-
import 'vite';
|
|
11
|
-
import '@farmfe/core';
|
|
12
|
-
import '@rspack/core';
|
|
13
|
-
import '@storm-software/tsup/types';
|
|
14
|
-
import '@storm-software/unbuild/types';
|
|
15
|
-
import 'esbuild';
|
|
16
|
-
import 'rolldown';
|
|
17
|
-
import 'rollup';
|
|
18
|
-
import 'webpack';
|
|
19
|
-
import '@stryke/env/get-env-paths';
|
|
20
|
-
import '@stryke/types/package-json';
|
|
21
|
-
import 'jest-worker';
|
|
22
|
-
import 'jiti';
|
|
23
|
-
import 'magic-string';
|
|
24
|
-
import 'semver';
|
|
25
|
-
import 'ts-morph';
|
|
26
|
-
import 'unplugin';
|
|
27
|
-
import '@stryke/fs/resolve';
|
|
28
|
-
import 'node:fs';
|
|
29
|
-
import '@stryke/types/array';
|
|
30
|
-
import '../tsconfig-Bz-CiFqD.cjs';
|
|
31
|
-
import '@stryke/types/tsconfig';
|
|
32
|
-
|
|
33
|
-
declare const SourcesMap: {
|
|
34
|
-
new (entries?: readonly (readonly [string, string])[] | null | undefined): Map<string, string>;
|
|
35
|
-
new (iterable?: Iterable<readonly [string, string]> | null | undefined): Map<string, string>;
|
|
36
|
-
readonly prototype: Map<any, any>;
|
|
37
|
-
groupBy<K, T>(items: Iterable<T>, keySelector: (item: T, index: number) => K): Map<K, T[]>;
|
|
38
|
-
readonly [Symbol.species]: MapConstructor;
|
|
39
|
-
};
|
|
40
|
-
type SourcesMap = InstanceType<typeof SourcesMap>;
|
|
41
|
-
declare function loadLibFiles(): Promise<SourcesMap>;
|
|
42
|
-
/** The default compiler options if TypeScript could ever change the compiler options */
|
|
43
|
-
declare function getDefaultCompilerOptions(): CompilerOptions;
|
|
44
|
-
/**
|
|
45
|
-
* Creates a TypeScript program from in-memory, virtual source files.
|
|
46
|
-
*
|
|
47
|
-
* @param rootNames - An array of root file names to include in the program.
|
|
48
|
-
* @param context - The context containing options and environment paths.
|
|
49
|
-
* @param compilerOptions - Optional TypeScript compiler options. Defaults to the standard TypeScript options
|
|
50
|
-
* @returns A TypeScript program instance that can be used for type checking, emitting, etc.
|
|
51
|
-
* @throws If the provided library files are not in the expected format or if the TypeScript package cannot be resolved.
|
|
52
|
-
*/
|
|
53
|
-
declare function createVirtualProgram(rootNames: readonly string[], context: Context, compilerOptions?: ts.CompilerOptions): Promise<ts.Program>;
|
|
54
|
-
interface VirtualCompilerHostReturn {
|
|
55
|
-
compilerHost: ts.CompilerHost;
|
|
56
|
-
updateFile: (sourceFile: ts.SourceFile) => boolean;
|
|
57
|
-
deleteFile: (sourceFile: ts.SourceFile) => boolean;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Creates an in-memory CompilerHost -which is essentially an extra wrapper to System
|
|
61
|
-
* which works with TypeScript objects - returns both a compiler host, and a way to add new SourceFile
|
|
62
|
-
* instances to the in-memory file system.
|
|
63
|
-
*/
|
|
64
|
-
declare function createVirtualCompilerHost(context: Context, sys: ts.System, compilerOptions: ts.CompilerOptions): VirtualCompilerHostReturn;
|
|
65
|
-
|
|
66
|
-
declare type __ΩSourcesMap = any[];
|
|
67
|
-
|
|
68
|
-
export { SourcesMap, type __ΩSourcesMap, createVirtualCompilerHost, createVirtualProgram, getDefaultCompilerOptions, loadLibFiles };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import ts, { CompilerOptions } from 'typescript';
|
|
2
|
-
import { C as Context } from '../config-DBIFdRoq.js';
|
|
3
|
-
import '@storm-software/build-tools/types';
|
|
4
|
-
import '@storm-software/config-tools/types';
|
|
5
|
-
import '@storm-software/config/types';
|
|
6
|
-
import '@stryke/types/base';
|
|
7
|
-
import '@stryke/types/configuration';
|
|
8
|
-
import '@stryke/types/file';
|
|
9
|
-
import 'c12';
|
|
10
|
-
import 'vite';
|
|
11
|
-
import '@farmfe/core';
|
|
12
|
-
import '@rspack/core';
|
|
13
|
-
import '@storm-software/tsup/types';
|
|
14
|
-
import '@storm-software/unbuild/types';
|
|
15
|
-
import 'esbuild';
|
|
16
|
-
import 'rolldown';
|
|
17
|
-
import 'rollup';
|
|
18
|
-
import 'webpack';
|
|
19
|
-
import '@stryke/env/get-env-paths';
|
|
20
|
-
import '@stryke/types/package-json';
|
|
21
|
-
import 'jest-worker';
|
|
22
|
-
import 'jiti';
|
|
23
|
-
import 'magic-string';
|
|
24
|
-
import 'semver';
|
|
25
|
-
import 'ts-morph';
|
|
26
|
-
import 'unplugin';
|
|
27
|
-
import '@stryke/fs/resolve';
|
|
28
|
-
import 'node:fs';
|
|
29
|
-
import '@stryke/types/array';
|
|
30
|
-
import '../tsconfig-Bz-CiFqD.js';
|
|
31
|
-
import '@stryke/types/tsconfig';
|
|
32
|
-
|
|
33
|
-
declare const SourcesMap: {
|
|
34
|
-
new (entries?: readonly (readonly [string, string])[] | null | undefined): Map<string, string>;
|
|
35
|
-
new (iterable?: Iterable<readonly [string, string]> | null | undefined): Map<string, string>;
|
|
36
|
-
readonly prototype: Map<any, any>;
|
|
37
|
-
groupBy<K, T>(items: Iterable<T>, keySelector: (item: T, index: number) => K): Map<K, T[]>;
|
|
38
|
-
readonly [Symbol.species]: MapConstructor;
|
|
39
|
-
};
|
|
40
|
-
type SourcesMap = InstanceType<typeof SourcesMap>;
|
|
41
|
-
declare function loadLibFiles(): Promise<SourcesMap>;
|
|
42
|
-
/** The default compiler options if TypeScript could ever change the compiler options */
|
|
43
|
-
declare function getDefaultCompilerOptions(): CompilerOptions;
|
|
44
|
-
/**
|
|
45
|
-
* Creates a TypeScript program from in-memory, virtual source files.
|
|
46
|
-
*
|
|
47
|
-
* @param rootNames - An array of root file names to include in the program.
|
|
48
|
-
* @param context - The context containing options and environment paths.
|
|
49
|
-
* @param compilerOptions - Optional TypeScript compiler options. Defaults to the standard TypeScript options
|
|
50
|
-
* @returns A TypeScript program instance that can be used for type checking, emitting, etc.
|
|
51
|
-
* @throws If the provided library files are not in the expected format or if the TypeScript package cannot be resolved.
|
|
52
|
-
*/
|
|
53
|
-
declare function createVirtualProgram(rootNames: readonly string[], context: Context, compilerOptions?: ts.CompilerOptions): Promise<ts.Program>;
|
|
54
|
-
interface VirtualCompilerHostReturn {
|
|
55
|
-
compilerHost: ts.CompilerHost;
|
|
56
|
-
updateFile: (sourceFile: ts.SourceFile) => boolean;
|
|
57
|
-
deleteFile: (sourceFile: ts.SourceFile) => boolean;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Creates an in-memory CompilerHost -which is essentially an extra wrapper to System
|
|
61
|
-
* which works with TypeScript objects - returns both a compiler host, and a way to add new SourceFile
|
|
62
|
-
* instances to the in-memory file system.
|
|
63
|
-
*/
|
|
64
|
-
declare function createVirtualCompilerHost(context: Context, sys: ts.System, compilerOptions: ts.CompilerOptions): VirtualCompilerHostReturn;
|
|
65
|
-
|
|
66
|
-
declare type __ΩSourcesMap = any[];
|
|
67
|
-
|
|
68
|
-
export { SourcesMap, type __ΩSourcesMap, createVirtualCompilerHost, createVirtualProgram, getDefaultCompilerOptions, loadLibFiles };
|
|
File without changes
|
|
File without changes
|