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
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { ResolveOptions as ResolveOptions$1 } from '@stryke/fs/resolve';
|
|
2
|
+
import { MaybePromise } from '@stryke/types/base';
|
|
3
|
+
|
|
4
|
+
declare enum StoragePreset {
|
|
5
|
+
VIRTUAL = "virtual",
|
|
6
|
+
FS = "fs"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Interface defining the methods and properties for a storage adapter.
|
|
10
|
+
*/
|
|
11
|
+
interface StorageAdapter {
|
|
12
|
+
/**
|
|
13
|
+
* A name identifying the storage adapter type.
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* Checks if a key exists in the storage.
|
|
18
|
+
*
|
|
19
|
+
* @param key - The key to check for existence.
|
|
20
|
+
* @returns A promise that resolves to `true` if the key exists, otherwise `false`.
|
|
21
|
+
*/
|
|
22
|
+
exists: (key: string) => Promise<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* Synchronously checks if a key exists in the storage.
|
|
25
|
+
*
|
|
26
|
+
* @param key - The key to check for existence.
|
|
27
|
+
* @returns Returns `true` if the key exists, otherwise `false`.
|
|
28
|
+
*/
|
|
29
|
+
existsSync: (key: string) => boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Read a value associated with a key from the storage.
|
|
32
|
+
*
|
|
33
|
+
* @param key - The key to read the value for.
|
|
34
|
+
* @returns A promise that resolves to the value if found, otherwise `null`.
|
|
35
|
+
*/
|
|
36
|
+
get: (key: string) => Promise<string | null>;
|
|
37
|
+
/**
|
|
38
|
+
* Synchronously reads the value associated with a key from the storage.
|
|
39
|
+
*
|
|
40
|
+
* @param key - The key to read the value for.
|
|
41
|
+
* @returns The value if found, otherwise `null`.
|
|
42
|
+
*/
|
|
43
|
+
getSync: (key: string) => string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Writes a value to the storage for the given key.
|
|
46
|
+
*
|
|
47
|
+
* @param key - The key to associate the value with.
|
|
48
|
+
* @param value - The value to store.
|
|
49
|
+
*/
|
|
50
|
+
set: (key: string, value: string) => Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Synchronously writes a value to the storage for the given key.
|
|
53
|
+
*
|
|
54
|
+
* @param key - The key to associate the value with.
|
|
55
|
+
* @param value - The value to store.
|
|
56
|
+
*/
|
|
57
|
+
setSync: (key: string, value: string) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Removes a value from the storage.
|
|
60
|
+
*
|
|
61
|
+
* @param key - The key whose value should be removed.
|
|
62
|
+
*/
|
|
63
|
+
remove: (key: string) => Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Synchronously removes a value from the storage.
|
|
66
|
+
*
|
|
67
|
+
* @param key - The key whose value should be removed.
|
|
68
|
+
*/
|
|
69
|
+
removeSync: (key: string) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Remove all entries from the storage that match the provided base path.
|
|
72
|
+
*
|
|
73
|
+
* @param base - The base path or prefix to clear entries from.
|
|
74
|
+
*/
|
|
75
|
+
clear: (base?: string) => Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Synchronously remove all entries from the storage that match the provided base path.
|
|
78
|
+
*
|
|
79
|
+
* @param base - The base path or prefix to clear entries from.
|
|
80
|
+
*/
|
|
81
|
+
clearSync: (base?: string) => void;
|
|
82
|
+
/**
|
|
83
|
+
* Lists all keys under the provided base path.
|
|
84
|
+
*
|
|
85
|
+
* @param base - The base path or prefix to list keys from.
|
|
86
|
+
* @returns A promise resolving to the list of keys.
|
|
87
|
+
*/
|
|
88
|
+
list: (base?: string) => Promise<string[]>;
|
|
89
|
+
/**
|
|
90
|
+
* Synchronously lists all keys under the provided base path.
|
|
91
|
+
*
|
|
92
|
+
* @param base - The base path or prefix to list keys from.
|
|
93
|
+
* @returns The list of keys.
|
|
94
|
+
*/
|
|
95
|
+
listSync: (base?: string) => string[];
|
|
96
|
+
/**
|
|
97
|
+
* Releases any resources held by the storage adapter.
|
|
98
|
+
*/
|
|
99
|
+
dispose: () => MaybePromise<void>;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* A mapping of file paths to storage adapter names and their corresponding {@link StorageAdapter} instances.
|
|
103
|
+
*/
|
|
104
|
+
type StoragePort = Record<string, StorageAdapter>;
|
|
105
|
+
interface VirtualFileMetadata {
|
|
106
|
+
/**
|
|
107
|
+
* The identifier for the file data.
|
|
108
|
+
*/
|
|
109
|
+
id: string;
|
|
110
|
+
/**
|
|
111
|
+
* The timestamp of the virtual file.
|
|
112
|
+
*/
|
|
113
|
+
timestamp: number;
|
|
114
|
+
/**
|
|
115
|
+
* The type of the file.
|
|
116
|
+
*
|
|
117
|
+
* @remarks
|
|
118
|
+
* This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
|
|
119
|
+
* - `builtin`: Indicates that the file is a built-in module provided by the system.
|
|
120
|
+
* - `entry`: Indicates that the file is an entry point for execution.
|
|
121
|
+
* - `normal`: Indicates that the file is a standard file without any special role.
|
|
122
|
+
*/
|
|
123
|
+
type: string;
|
|
124
|
+
/**
|
|
125
|
+
* Additional metadata associated with the file.
|
|
126
|
+
*/
|
|
127
|
+
properties: Record<string, string>;
|
|
128
|
+
}
|
|
129
|
+
interface VirtualFileData {
|
|
130
|
+
/**
|
|
131
|
+
* The identifier for the file data.
|
|
132
|
+
*/
|
|
133
|
+
id?: string;
|
|
134
|
+
/**
|
|
135
|
+
* The contents of the virtual file.
|
|
136
|
+
*/
|
|
137
|
+
code: string;
|
|
138
|
+
/**
|
|
139
|
+
* The type of the file.
|
|
140
|
+
*
|
|
141
|
+
* @remarks
|
|
142
|
+
* This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
|
|
143
|
+
* - `builtin`: Indicates that the file is a built-in module provided by the system.
|
|
144
|
+
* - `entry`: Indicates that the file is an entry point for execution.
|
|
145
|
+
* - `normal`: Indicates that the file is a standard file without any special role.
|
|
146
|
+
*/
|
|
147
|
+
type?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Additional metadata associated with the file.
|
|
150
|
+
*/
|
|
151
|
+
properties?: Record<string, string>;
|
|
152
|
+
}
|
|
153
|
+
interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
|
|
154
|
+
/**
|
|
155
|
+
* An additional name for the file.
|
|
156
|
+
*/
|
|
157
|
+
path: string;
|
|
158
|
+
/**
|
|
159
|
+
* The timestamp of the virtual file.
|
|
160
|
+
*/
|
|
161
|
+
timestamp: number;
|
|
162
|
+
}
|
|
163
|
+
interface WriteOptions {
|
|
164
|
+
/**
|
|
165
|
+
* Should the file skip formatting before being written?
|
|
166
|
+
*
|
|
167
|
+
* @defaultValue false
|
|
168
|
+
*/
|
|
169
|
+
skipFormat?: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Additional metadata for the file.
|
|
172
|
+
*/
|
|
173
|
+
meta?: VirtualFileMetadata;
|
|
174
|
+
}
|
|
175
|
+
interface ResolveOptions extends ResolveOptions$1 {
|
|
176
|
+
/**
|
|
177
|
+
* If true, the module is being resolved as an entry point.
|
|
178
|
+
*/
|
|
179
|
+
isEntry?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* If true, the resolver will skip using the cache when resolving modules.
|
|
182
|
+
*/
|
|
183
|
+
skipCache?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* An array of external modules or patterns to exclude from resolution.
|
|
186
|
+
*/
|
|
187
|
+
external?: (string | RegExp)[];
|
|
188
|
+
/**
|
|
189
|
+
* An array of modules or patterns to include in the resolution, even if they are marked as external.
|
|
190
|
+
*/
|
|
191
|
+
noExternal?: (string | RegExp)[];
|
|
192
|
+
/**
|
|
193
|
+
* An array of patterns to match when resolving modules.
|
|
194
|
+
*/
|
|
195
|
+
skipNodeModulesBundle?: boolean;
|
|
196
|
+
}
|
|
197
|
+
interface VirtualFileSystemInterface {
|
|
198
|
+
/**
|
|
199
|
+
* The underlying file metadata.
|
|
200
|
+
*/
|
|
201
|
+
metadata: Readonly<Record<string, VirtualFileMetadata>>;
|
|
202
|
+
/**
|
|
203
|
+
* A map of file paths to their module ids.
|
|
204
|
+
*/
|
|
205
|
+
ids: Readonly<Record<string, string>>;
|
|
206
|
+
/**
|
|
207
|
+
* A map of module ids to their file paths.
|
|
208
|
+
*/
|
|
209
|
+
paths: Readonly<Record<string, string>>;
|
|
210
|
+
/**
|
|
211
|
+
* Checks if a file exists in the virtual file system (VFS).
|
|
212
|
+
*
|
|
213
|
+
* @param path - The path or id of the file.
|
|
214
|
+
* @returns `true` if the file exists, otherwise `false`.
|
|
215
|
+
*/
|
|
216
|
+
exists: (path: string) => Promise<boolean>;
|
|
217
|
+
/**
|
|
218
|
+
* Synchronously Checks if a file exists in the virtual file system (VFS).
|
|
219
|
+
*
|
|
220
|
+
* @param path - The path or id of the file.
|
|
221
|
+
* @returns `true` if the file exists, otherwise `false`.
|
|
222
|
+
*/
|
|
223
|
+
existsSync: (path: string) => boolean;
|
|
224
|
+
/**
|
|
225
|
+
* Checks if a file is virtual in the virtual file system (VFS).
|
|
226
|
+
*
|
|
227
|
+
* @param path - The path or id of the file.
|
|
228
|
+
* @returns `true` if the file is virtual, otherwise `false`.
|
|
229
|
+
*/
|
|
230
|
+
isVirtual: (path: string) => boolean;
|
|
231
|
+
/**
|
|
232
|
+
* Gets the metadata of a file in the virtual file system (VFS).
|
|
233
|
+
*
|
|
234
|
+
* @param path - The path or id of the file.
|
|
235
|
+
* @returns The metadata of the file if it exists, otherwise undefined.
|
|
236
|
+
*/
|
|
237
|
+
getMetadata: (path: string) => VirtualFileMetadata | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* Lists files in a given path.
|
|
240
|
+
*
|
|
241
|
+
* @param path - The path to list files from.
|
|
242
|
+
* @returns An array of file names in the specified path.
|
|
243
|
+
*/
|
|
244
|
+
listSync: (path: string) => string[];
|
|
245
|
+
/**
|
|
246
|
+
* Lists files in a given path.
|
|
247
|
+
*
|
|
248
|
+
* @param path - The path to list files from.
|
|
249
|
+
* @returns An array of file names in the specified path.
|
|
250
|
+
*/
|
|
251
|
+
list: (path: string) => Promise<string[]>;
|
|
252
|
+
/**
|
|
253
|
+
* Removes a file or symbolic link in the virtual file system (VFS).
|
|
254
|
+
*
|
|
255
|
+
* @param path - The path to the file to remove.
|
|
256
|
+
* @returns A promise that resolves when the file is removed.
|
|
257
|
+
*/
|
|
258
|
+
removeSync: (path: string) => void;
|
|
259
|
+
/**
|
|
260
|
+
* Asynchronously removes a file or symbolic link in the virtual file system (VFS).
|
|
261
|
+
*
|
|
262
|
+
* @param path - The path to the file to remove.
|
|
263
|
+
* @returns A promise that resolves when the file is removed.
|
|
264
|
+
*/
|
|
265
|
+
remove: (path: string) => Promise<void>;
|
|
266
|
+
/**
|
|
267
|
+
* Reads a file from the virtual file system (VFS).
|
|
268
|
+
*
|
|
269
|
+
* @param path - The path or id of the file.
|
|
270
|
+
* @returns The contents of the file if it exists, otherwise undefined.
|
|
271
|
+
*/
|
|
272
|
+
read: (path: string) => Promise<string | undefined>;
|
|
273
|
+
/**
|
|
274
|
+
* Reads a file from the virtual file system (VFS).
|
|
275
|
+
*
|
|
276
|
+
* @param path - The path or id of the file.
|
|
277
|
+
*/
|
|
278
|
+
readSync: (path: string) => string | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* Writes a file to the virtual file system (VFS).
|
|
281
|
+
*
|
|
282
|
+
* @param path - The path to the file.
|
|
283
|
+
* @param data - The contents of the file.
|
|
284
|
+
* @param options - Options for writing the file.
|
|
285
|
+
* @returns A promise that resolves when the file is written.
|
|
286
|
+
*/
|
|
287
|
+
write: (path: string, data: string, options?: WriteOptions) => Promise<void>;
|
|
288
|
+
/**
|
|
289
|
+
* Writes a file to the virtual file system (VFS).
|
|
290
|
+
*
|
|
291
|
+
* @param path - The path to the file.
|
|
292
|
+
* @param data - The contents of the file.
|
|
293
|
+
* @param options - Options for writing the file.
|
|
294
|
+
*/
|
|
295
|
+
writeSync: (path: string, data: string, options?: WriteOptions) => void;
|
|
296
|
+
/**
|
|
297
|
+
* Moves a file from one path to another in the virtual file system (VFS).
|
|
298
|
+
*
|
|
299
|
+
* @param srcPath - The source path to move
|
|
300
|
+
* @param destPath - The destination path to move to
|
|
301
|
+
*/
|
|
302
|
+
move: (srcPath: string, destPath: string) => Promise<void>;
|
|
303
|
+
/**
|
|
304
|
+
* Synchronously moves a file from one path to another in the virtual file system (VFS).
|
|
305
|
+
*
|
|
306
|
+
* @param srcPath - The source path to move
|
|
307
|
+
* @param destPath - The destination path to move to
|
|
308
|
+
*/
|
|
309
|
+
moveSync: (srcPath: string, destPath: string) => void;
|
|
310
|
+
/**
|
|
311
|
+
* Copies a file from one path to another in the virtual file system (VFS).
|
|
312
|
+
*
|
|
313
|
+
* @param srcPath - The source path to copy
|
|
314
|
+
* @param destPath - The destination path to copy to
|
|
315
|
+
*/
|
|
316
|
+
copy: (srcPath: string, destPath: string) => Promise<void>;
|
|
317
|
+
/**
|
|
318
|
+
* Synchronously copies a file from one path to another in the virtual file system (VFS).
|
|
319
|
+
*
|
|
320
|
+
* @param srcPath - The source path to copy
|
|
321
|
+
* @param destPath - The destination path to copy to
|
|
322
|
+
*/
|
|
323
|
+
copySync: (srcPath: string, destPath: string) => void;
|
|
324
|
+
/**
|
|
325
|
+
* Glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
326
|
+
*
|
|
327
|
+
* @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
328
|
+
* @returns An array of file paths matching the provided pattern(s)
|
|
329
|
+
*/
|
|
330
|
+
glob: (pattern: string | string[]) => Promise<string[]>;
|
|
331
|
+
/**
|
|
332
|
+
* Synchronously glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
333
|
+
*
|
|
334
|
+
* @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
335
|
+
* @returns An array of file paths matching the provided pattern(s)
|
|
336
|
+
*/
|
|
337
|
+
globSync: (pattern: string | string[]) => string[];
|
|
338
|
+
/**
|
|
339
|
+
* A helper function to resolve modules using the Jiti resolver
|
|
340
|
+
*
|
|
341
|
+
* @remarks
|
|
342
|
+
* This function can be used to resolve modules relative to the project root directory.
|
|
343
|
+
*
|
|
344
|
+
* @example
|
|
345
|
+
* ```ts
|
|
346
|
+
* const resolvedPath = await context.resolve("some-module", "/path/to/importer");
|
|
347
|
+
* ```
|
|
348
|
+
*
|
|
349
|
+
* @param id - The module to resolve.
|
|
350
|
+
* @param importer - An optional path to the importer module.
|
|
351
|
+
* @param options - Additional resolution options.
|
|
352
|
+
* @returns A promise that resolves to the resolved module path.
|
|
353
|
+
*/
|
|
354
|
+
resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<string | undefined>;
|
|
355
|
+
/**
|
|
356
|
+
* A synchronous helper function to resolve modules using the Jiti resolver
|
|
357
|
+
*
|
|
358
|
+
* @remarks
|
|
359
|
+
* This function can be used to resolve modules relative to the project root directory.
|
|
360
|
+
*
|
|
361
|
+
* @example
|
|
362
|
+
* ```ts
|
|
363
|
+
* const resolvedPath = context.resolveSync("some-module", "/path/to/importer");
|
|
364
|
+
* ```
|
|
365
|
+
*
|
|
366
|
+
* @param id - The module to resolve.
|
|
367
|
+
* @param importer - An optional path to the importer module.
|
|
368
|
+
* @param options - Additional resolution options.
|
|
369
|
+
* @returns The resolved module path.
|
|
370
|
+
*/
|
|
371
|
+
resolveSync: (id: string, importer?: string, options?: ResolveOptions) => string | undefined;
|
|
372
|
+
/**
|
|
373
|
+
* Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
|
|
374
|
+
*/
|
|
375
|
+
dispose: () => Promise<void>;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export { type ResolveOptions as R, type StorageAdapter as S, type VirtualFileSystemInterface as V, type WriteOptions as W, type VirtualFile as a, type StoragePort as b, StoragePreset as c, type VirtualFileMetadata as d };
|
package/dist/lib/index.cjs
CHANGED
|
@@ -1,40 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./chunk-YK4PYVLM.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkMKKWFHGE_cjs = require('./chunk-MKKWFHGE.cjs');
|
|
5
5
|
var chunkJG4IL7XL_cjs = require('./chunk-JG4IL7XL.cjs');
|
|
6
6
|
var chunkVQ7CXQLT_cjs = require('./chunk-VQ7CXQLT.cjs');
|
|
7
7
|
require('./chunk-VVSEE3JE.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkSFEEJZLK_cjs = require('./chunk-SFEEJZLK.cjs');
|
|
9
|
+
var chunk4NHFXDTQ_cjs = require('./chunk-4NHFXDTQ.cjs');
|
|
9
10
|
var chunk2NZADVP5_cjs = require('./chunk-2NZADVP5.cjs');
|
|
10
|
-
var
|
|
11
|
+
var chunk7MHUTBEC_cjs = require('./chunk-7MHUTBEC.cjs');
|
|
11
12
|
var chunkDX2VAXZB_cjs = require('./chunk-DX2VAXZB.cjs');
|
|
12
|
-
var
|
|
13
|
+
var chunkLOW2TIQ6_cjs = require('./chunk-LOW2TIQ6.cjs');
|
|
13
14
|
var chunkT6KEXFRH_cjs = require('./chunk-T6KEXFRH.cjs');
|
|
14
|
-
var chunk4NHFXDTQ_cjs = require('./chunk-4NHFXDTQ.cjs');
|
|
15
15
|
require('./chunk-35FGUJFD.cjs');
|
|
16
|
+
require('./chunk-K2SFTPN3.cjs');
|
|
16
17
|
require('./chunk-MVIKYHBX.cjs');
|
|
18
|
+
var chunk3T56KQ7U_cjs = require('./chunk-3T56KQ7U.cjs');
|
|
17
19
|
var chunkH7A5QVLY_cjs = require('./chunk-H7A5QVLY.cjs');
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var chunkXLYMVIVD_cjs = require('./chunk-XLYMVIVD.cjs');
|
|
20
|
+
var chunkNLJR4WIX_cjs = require('./chunk-NLJR4WIX.cjs');
|
|
21
|
+
var chunkDNQBXFNE_cjs = require('./chunk-DNQBXFNE.cjs');
|
|
21
22
|
var chunkB3EE3VHZ_cjs = require('./chunk-B3EE3VHZ.cjs');
|
|
22
|
-
var
|
|
23
|
-
var
|
|
23
|
+
var chunkWBSA6OG6_cjs = require('./chunk-WBSA6OG6.cjs');
|
|
24
|
+
var chunkHRRI4KOM_cjs = require('./chunk-HRRI4KOM.cjs');
|
|
25
|
+
var chunkR33US3PV_cjs = require('./chunk-R33US3PV.cjs');
|
|
26
|
+
require('./chunk-6OYSDQXE.cjs');
|
|
27
|
+
require('./chunk-XUYQYUWZ.cjs');
|
|
28
|
+
require('./chunk-XLHFUATD.cjs');
|
|
29
|
+
require('./chunk-YYEAV24J.cjs');
|
|
30
|
+
var chunkD6MI2V6R_cjs = require('./chunk-D6MI2V6R.cjs');
|
|
24
31
|
var chunkGA3RXX4R_cjs = require('./chunk-GA3RXX4R.cjs');
|
|
25
|
-
var chunkSAS5EPBD_cjs = require('./chunk-SAS5EPBD.cjs');
|
|
26
32
|
var chunkK3NBD5LL_cjs = require('./chunk-K3NBD5LL.cjs');
|
|
27
33
|
var chunkJA4HSQRN_cjs = require('./chunk-JA4HSQRN.cjs');
|
|
28
34
|
var chunk3OCI4TH7_cjs = require('./chunk-3OCI4TH7.cjs');
|
|
29
|
-
require('./chunk-
|
|
30
|
-
var
|
|
35
|
+
require('./chunk-WCXA5WFX.cjs');
|
|
36
|
+
var chunkN5XEKCVW_cjs = require('./chunk-N5XEKCVW.cjs');
|
|
31
37
|
require('./chunk-USNT2KNT.cjs');
|
|
32
38
|
|
|
33
39
|
|
|
34
40
|
|
|
35
41
|
Object.defineProperty(exports, "resolve", {
|
|
36
42
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkMKKWFHGE_cjs.resolve; }
|
|
38
44
|
});
|
|
39
45
|
Object.defineProperty(exports, "generateSourceMap", {
|
|
40
46
|
enumerable: true,
|
|
@@ -50,7 +56,15 @@ Object.defineProperty(exports, "createWorker", {
|
|
|
50
56
|
});
|
|
51
57
|
Object.defineProperty(exports, "createUnpluginFactory", {
|
|
52
58
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkSFEEJZLK_cjs.createUnpluginFactory; }
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(exports, "getBaseFileHeader", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () { return chunk4NHFXDTQ_cjs.getBaseFileHeader; }
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, "getFileHeader", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () { return chunk4NHFXDTQ_cjs.getFileHeader; }
|
|
54
68
|
});
|
|
55
69
|
Object.defineProperty(exports, "writeFile", {
|
|
56
70
|
enumerable: true,
|
|
@@ -58,7 +72,7 @@ Object.defineProperty(exports, "writeFile", {
|
|
|
58
72
|
});
|
|
59
73
|
Object.defineProperty(exports, "createUnplugin", {
|
|
60
74
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunk7MHUTBEC_cjs.createUnplugin; }
|
|
62
76
|
});
|
|
63
77
|
Object.defineProperty(exports, "combineContexts", {
|
|
64
78
|
enumerable: true,
|
|
@@ -66,7 +80,7 @@ Object.defineProperty(exports, "combineContexts", {
|
|
|
66
80
|
});
|
|
67
81
|
Object.defineProperty(exports, "bundle", {
|
|
68
82
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkLOW2TIQ6_cjs.bundle; }
|
|
70
84
|
});
|
|
71
85
|
Object.defineProperty(exports, "getCache", {
|
|
72
86
|
enumerable: true,
|
|
@@ -76,45 +90,21 @@ Object.defineProperty(exports, "setCache", {
|
|
|
76
90
|
enumerable: true,
|
|
77
91
|
get: function () { return chunkT6KEXFRH_cjs.setCache; }
|
|
78
92
|
});
|
|
79
|
-
Object.defineProperty(exports, "
|
|
80
|
-
enumerable: true,
|
|
81
|
-
get: function () { return chunk4NHFXDTQ_cjs.getBaseFileHeader; }
|
|
82
|
-
});
|
|
83
|
-
Object.defineProperty(exports, "getFileHeader", {
|
|
93
|
+
Object.defineProperty(exports, "createImportTransformer", {
|
|
84
94
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunk3T56KQ7U_cjs.createImportTransformer; }
|
|
86
96
|
});
|
|
87
97
|
Object.defineProperty(exports, "isolatedDeclarations", {
|
|
88
98
|
enumerable: true,
|
|
89
99
|
get: function () { return chunkH7A5QVLY_cjs.isolatedDeclarations; }
|
|
90
100
|
});
|
|
91
|
-
Object.defineProperty(exports, "SourcesMap", {
|
|
92
|
-
enumerable: true,
|
|
93
|
-
get: function () { return chunkWUYK74EH_cjs.SourcesMap; }
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(exports, "createVirtualCompilerHost", {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
get: function () { return chunkWUYK74EH_cjs.createVirtualCompilerHost; }
|
|
98
|
-
});
|
|
99
|
-
Object.defineProperty(exports, "createVirtualProgram", {
|
|
100
|
-
enumerable: true,
|
|
101
|
-
get: function () { return chunkWUYK74EH_cjs.createVirtualProgram; }
|
|
102
|
-
});
|
|
103
|
-
Object.defineProperty(exports, "getDefaultCompilerOptions", {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
get: function () { return chunkWUYK74EH_cjs.getDefaultCompilerOptions; }
|
|
106
|
-
});
|
|
107
|
-
Object.defineProperty(exports, "loadLibFiles", {
|
|
108
|
-
enumerable: true,
|
|
109
|
-
get: function () { return chunkWUYK74EH_cjs.loadLibFiles; }
|
|
110
|
-
});
|
|
111
101
|
Object.defineProperty(exports, "PowerlinesAPIContext", {
|
|
112
102
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkNLJR4WIX_cjs.PowerlinesAPIContext; }
|
|
114
104
|
});
|
|
115
105
|
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
116
106
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkDNQBXFNE_cjs.PowerlinesEnvironmentContext; }
|
|
118
108
|
});
|
|
119
109
|
Object.defineProperty(exports, "createPluginContext", {
|
|
120
110
|
enumerable: true,
|
|
@@ -122,35 +112,43 @@ Object.defineProperty(exports, "createPluginContext", {
|
|
|
122
112
|
});
|
|
123
113
|
Object.defineProperty(exports, "PowerlinesContext", {
|
|
124
114
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
126
|
-
});
|
|
127
|
-
Object.defineProperty(exports, "VirtualFileSystem", {
|
|
128
|
-
enumerable: true,
|
|
129
|
-
get: function () { return chunk3MZQ4MQX_cjs.VirtualFileSystem; }
|
|
115
|
+
get: function () { return chunkWBSA6OG6_cjs.PowerlinesContext; }
|
|
130
116
|
});
|
|
131
117
|
Object.defineProperty(exports, "CACHE_HASH_LENGTH", {
|
|
132
118
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkHRRI4KOM_cjs.CACHE_HASH_LENGTH; }
|
|
134
120
|
});
|
|
135
121
|
Object.defineProperty(exports, "PROJECT_ROOT_HASH_LENGTH", {
|
|
136
122
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkHRRI4KOM_cjs.PROJECT_ROOT_HASH_LENGTH; }
|
|
138
124
|
});
|
|
139
125
|
Object.defineProperty(exports, "discoverTemplates", {
|
|
140
126
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkHRRI4KOM_cjs.discoverTemplates; }
|
|
142
128
|
});
|
|
143
129
|
Object.defineProperty(exports, "getPersistedMeta", {
|
|
144
130
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkHRRI4KOM_cjs.getPersistedMeta; }
|
|
146
132
|
});
|
|
147
133
|
Object.defineProperty(exports, "getPrefixedProjectRootHash", {
|
|
148
134
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkHRRI4KOM_cjs.getPrefixedProjectRootHash; }
|
|
150
136
|
});
|
|
151
137
|
Object.defineProperty(exports, "writeMetaFile", {
|
|
152
138
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkHRRI4KOM_cjs.writeMetaFile; }
|
|
140
|
+
});
|
|
141
|
+
Object.defineProperty(exports, "VirtualFileSystem", {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
get: function () { return chunkR33US3PV_cjs.VirtualFileSystem; }
|
|
144
|
+
});
|
|
145
|
+
Object.defineProperty(exports, "VirtualFileSystemHost", {
|
|
146
|
+
enumerable: true,
|
|
147
|
+
get: function () { return chunkD6MI2V6R_cjs.VirtualFileSystemHost; }
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(exports, "createProgram", {
|
|
150
|
+
enumerable: true,
|
|
151
|
+
get: function () { return chunkD6MI2V6R_cjs.createProgram; }
|
|
154
152
|
});
|
|
155
153
|
Object.defineProperty(exports, "findIncludeMatch", {
|
|
156
154
|
enumerable: true,
|
|
@@ -180,10 +178,6 @@ Object.defineProperty(exports, "tryTsconfigFilePath", {
|
|
|
180
178
|
enumerable: true,
|
|
181
179
|
get: function () { return chunkGA3RXX4R_cjs.tryTsconfigFilePath; }
|
|
182
180
|
});
|
|
183
|
-
Object.defineProperty(exports, "createProgram", {
|
|
184
|
-
enumerable: true,
|
|
185
|
-
get: function () { return chunkSAS5EPBD_cjs.createProgram; }
|
|
186
|
-
});
|
|
187
181
|
Object.defineProperty(exports, "loadUserConfigFile", {
|
|
188
182
|
enumerable: true,
|
|
189
183
|
get: function () { return chunkK3NBD5LL_cjs.loadUserConfigFile; }
|
|
@@ -214,33 +208,33 @@ Object.defineProperty(exports, "getString", {
|
|
|
214
208
|
});
|
|
215
209
|
Object.defineProperty(exports, "getUniqueEntries", {
|
|
216
210
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkN5XEKCVW_cjs.getUniqueEntries; }
|
|
218
212
|
});
|
|
219
213
|
Object.defineProperty(exports, "resolveEntries", {
|
|
220
214
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkN5XEKCVW_cjs.resolveEntries; }
|
|
222
216
|
});
|
|
223
217
|
Object.defineProperty(exports, "resolveEntriesSync", {
|
|
224
218
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkN5XEKCVW_cjs.resolveEntriesSync; }
|
|
226
220
|
});
|
|
227
221
|
Object.defineProperty(exports, "resolveEntry", {
|
|
228
222
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkN5XEKCVW_cjs.resolveEntry; }
|
|
230
224
|
});
|
|
231
225
|
Object.defineProperty(exports, "resolveEntryInput", {
|
|
232
226
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkN5XEKCVW_cjs.resolveEntryInput; }
|
|
234
228
|
});
|
|
235
229
|
Object.defineProperty(exports, "resolveEntryInputFile", {
|
|
236
230
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunkN5XEKCVW_cjs.resolveEntryInputFile; }
|
|
238
232
|
});
|
|
239
233
|
Object.defineProperty(exports, "resolveEntryOutput", {
|
|
240
234
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunkN5XEKCVW_cjs.resolveEntryOutput; }
|
|
242
236
|
});
|
|
243
237
|
Object.defineProperty(exports, "resolveVirtualEntry", {
|
|
244
238
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkN5XEKCVW_cjs.resolveVirtualEntry; }
|
|
246
240
|
});
|