powerlines 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/astro.cjs +9 -9
- package/dist/astro.d.cts +2 -1
- package/dist/astro.d.ts +2 -1
- package/dist/astro.js +6 -6
- package/dist/{chunk-UESICHEO.cjs → chunk-2RHPFVYT.cjs} +17 -18
- package/dist/{chunk-75B5EPR4.js → chunk-3Y5CCIJR.js} +3 -3
- package/dist/{chunk-YE56I7CZ.cjs → chunk-5XYGZ3DC.cjs} +2 -2
- package/dist/{chunk-PFCQFK7H.js → chunk-5Y4JYQ66.js} +3 -3
- package/dist/{chunk-H2SX5ZYF.cjs → chunk-66GXB2UY.cjs} +4 -4
- package/dist/{chunk-VOB62ELC.js → chunk-6TJGZR5X.js} +4 -4
- package/dist/{chunk-BWZCYCIF.js → chunk-6UDHGAAI.js} +3 -3
- package/dist/{chunk-ETEQKM36.cjs → chunk-7IWH37DY.cjs} +2 -2
- package/dist/{chunk-GI35XXXH.js → chunk-EGSEJQCE.js} +3 -3
- package/dist/{chunk-ILVCZATT.js → chunk-GPPJ2CRE.js} +2 -2
- package/dist/{chunk-54SOH6E5.js → chunk-HVT7PBFF.js} +3 -3
- package/dist/chunk-IJBH5OUN.cjs +12 -0
- package/dist/chunk-JBTSAOIQ.js +31 -0
- package/dist/{chunk-MXYZKFOD.js → chunk-KYGEWAEG.js} +3 -3
- package/dist/{chunk-6X6QQH33.cjs → chunk-L2SAK2JC.cjs} +4 -4
- package/dist/chunk-LXMNDUPG.cjs +12 -0
- package/dist/{chunk-V56DIXOO.js → chunk-N7NE3VOU.js} +4 -4
- package/dist/{chunk-D55IOUF3.js → chunk-OYIM2M74.js} +522 -517
- package/dist/{chunk-RRGXS7GZ.cjs → chunk-QHGPZK2H.cjs} +4 -4
- package/dist/chunk-RQ4CHMPO.cjs +12 -0
- package/dist/chunk-S5QFX2GM.cjs +12 -0
- package/dist/{chunk-KCDZ3LCF.js → chunk-S746E63M.js} +3 -3
- package/dist/{chunk-FBBWXUGK.js → chunk-SDEBJQDT.js} +12 -13
- package/dist/chunk-SL3CXJWD.cjs +34 -0
- package/dist/{chunk-I5D3SVUH.cjs → chunk-UHCRNFFC.cjs} +9 -9
- package/dist/{chunk-5ST7UKJF.cjs → chunk-UTVZVGM3.cjs} +530 -525
- package/dist/{chunk-QIKKQQF7.cjs → chunk-UZQYBO6Z.cjs} +4 -4
- package/dist/{chunk-YOHDGH77.js → chunk-VIRKTIPK.js} +3 -3
- package/dist/{chunk-WAWIGYB4.js → chunk-WCPY7HPU.js} +4 -4
- package/dist/{chunk-MMDBMHAW.js → chunk-WPVIF35O.js} +2 -2
- package/dist/chunk-YG7U2GIR.cjs +24 -0
- package/dist/{chunk-DOBCIS3U.cjs → chunk-ZBDP43LG.cjs} +6 -6
- package/dist/chunk-ZFATNDSY.cjs +12 -0
- package/dist/{chunk-4R6CQNB2.js → chunk-ZU4IRZSQ.js} +7 -7
- package/dist/define-config.d.cts +2 -1
- package/dist/define-config.d.ts +2 -1
- package/dist/esbuild.cjs +8 -8
- package/dist/esbuild.d.cts +2 -1
- package/dist/esbuild.d.ts +2 -1
- package/dist/esbuild.js +5 -5
- package/dist/extend-plugin.d.cts +2 -1
- package/dist/extend-plugin.d.ts +2 -1
- package/dist/farm.cjs +4 -4
- package/dist/farm.d.cts +2 -1
- package/dist/farm.d.ts +2 -1
- package/dist/farm.js +3 -3
- package/dist/{hooks-D0gf1nT3.d.ts → hooks-BGYnc61f.d.ts} +1 -1
- package/dist/{hooks-fVJu9DCF.d.cts → hooks-gk8S8LFP.d.cts} +1 -1
- package/dist/index.cjs +27 -27
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +18 -18
- package/dist/internal/api.cjs +3 -3
- package/dist/internal/api.d.cts +3 -2
- package/dist/internal/api.d.ts +3 -2
- package/dist/internal/api.js +2 -2
- package/dist/lib/build/esbuild.cjs +4 -4
- package/dist/lib/build/esbuild.d.cts +2 -1
- package/dist/lib/build/esbuild.d.ts +2 -1
- package/dist/lib/build/esbuild.js +1 -1
- package/dist/lib/build/index.cjs +25 -25
- package/dist/lib/build/index.d.cts +3 -2
- package/dist/lib/build/index.d.ts +3 -2
- package/dist/lib/build/index.js +9 -9
- package/dist/lib/build/rolldown.cjs +3 -3
- package/dist/lib/build/rolldown.d.cts +2 -1
- package/dist/lib/build/rolldown.d.ts +2 -1
- package/dist/lib/build/rolldown.js +2 -2
- package/dist/lib/build/rollup.cjs +3 -3
- package/dist/lib/build/rollup.d.cts +2 -1
- package/dist/lib/build/rollup.d.ts +2 -1
- package/dist/lib/build/rollup.js +1 -1
- package/dist/lib/build/rspack.cjs +2 -2
- package/dist/lib/build/rspack.d.cts +2 -1
- package/dist/lib/build/rspack.d.ts +2 -1
- package/dist/lib/build/rspack.js +1 -1
- package/dist/lib/build/tsup.cjs +5 -5
- package/dist/lib/build/tsup.d.cts +2 -1
- package/dist/lib/build/tsup.d.ts +2 -1
- package/dist/lib/build/tsup.js +2 -2
- package/dist/lib/build/unbuild.cjs +6 -6
- package/dist/lib/build/unbuild.d.cts +3 -2
- package/dist/lib/build/unbuild.d.ts +3 -2
- package/dist/lib/build/unbuild.js +3 -3
- package/dist/lib/build/vite.cjs +4 -4
- package/dist/lib/build/vite.d.cts +2 -1
- package/dist/lib/build/vite.d.ts +2 -1
- package/dist/lib/build/vite.js +2 -2
- package/dist/lib/build/webpack.cjs +2 -2
- package/dist/lib/build/webpack.d.cts +2 -1
- package/dist/lib/build/webpack.d.ts +2 -1
- package/dist/lib/build/webpack.js +1 -1
- package/dist/lib/{chunk-7CZ2QZEV.js → chunk-3I2YOM2E.js} +4 -4
- package/dist/lib/chunk-3I2YOM2E.js.map +1 -0
- package/dist/lib/{chunk-KAOWUIFH.cjs → chunk-4XUVP2LL.cjs} +3 -3
- package/dist/lib/chunk-4XUVP2LL.cjs.map +1 -0
- package/dist/lib/{chunk-ZKYZWEHY.cjs → chunk-6U2UX2PX.cjs} +4 -4
- package/dist/lib/chunk-6U2UX2PX.cjs.map +1 -0
- package/dist/lib/{chunk-VRNWPH35.cjs → chunk-7EAV6Q7B.cjs} +10 -9
- package/dist/lib/chunk-7EAV6Q7B.cjs.map +1 -0
- package/dist/lib/{chunk-ZYBUJ2HE.js → chunk-CAPN4FSS.js} +7 -7
- package/dist/lib/chunk-CAPN4FSS.js.map +1 -0
- package/dist/lib/{chunk-LTBRHAQ2.cjs → chunk-GJNFAFKR.cjs} +4 -4
- package/dist/lib/chunk-GJNFAFKR.cjs.map +1 -0
- package/dist/lib/{chunk-VANFTXBT.cjs → chunk-GWYTWFZE.cjs} +7 -7
- package/dist/lib/chunk-GWYTWFZE.cjs.map +1 -0
- package/dist/lib/{chunk-DKE25WTL.js → chunk-HQ6TGY34.js} +2 -2
- package/dist/lib/chunk-HQ6TGY34.js.map +1 -0
- package/dist/lib/{chunk-QSBORJCS.js → chunk-HZDOJWUO.js} +6 -6
- package/dist/lib/chunk-HZDOJWUO.js.map +1 -0
- package/dist/lib/{chunk-ECJPGNXE.cjs → chunk-IK3ABDPP.cjs} +2 -2
- package/dist/lib/chunk-IK3ABDPP.cjs.map +1 -0
- package/dist/lib/{chunk-G5DJO4HA.cjs → chunk-JTUL3477.cjs} +5 -5
- package/dist/lib/chunk-JTUL3477.cjs.map +1 -0
- package/dist/lib/{chunk-E7UTFXPP.js → chunk-KFE2IR3Y.js} +4 -4
- package/dist/lib/chunk-KFE2IR3Y.js.map +1 -0
- package/dist/lib/{chunk-RY67J24J.js → chunk-KSBESEOF.js} +2 -2
- package/dist/lib/chunk-KSBESEOF.js.map +1 -0
- package/dist/lib/{chunk-26W3IQT6.js → chunk-LTVWU4J2.js} +5 -5
- package/dist/lib/chunk-LTVWU4J2.js.map +1 -0
- package/dist/lib/{chunk-GWAVDFOE.js → chunk-M7U5RMK7.js} +8 -6
- package/dist/lib/chunk-M7U5RMK7.js.map +1 -0
- package/dist/lib/{chunk-2D74QBNW.cjs → chunk-M7WHFUKR.cjs} +524 -522
- package/dist/lib/chunk-M7WHFUKR.cjs.map +1 -0
- package/dist/lib/{chunk-EOO7IRCI.js → chunk-MAHHHINV.js} +3 -3
- package/dist/lib/chunk-MAHHHINV.js.map +1 -0
- package/dist/lib/{chunk-7FQQFIHR.cjs → chunk-NANLYIUO.cjs} +4 -4
- package/dist/lib/chunk-NANLYIUO.cjs.map +1 -0
- package/dist/lib/{chunk-TNCZYSNV.js → chunk-NE46WXNJ.js} +2 -2
- package/dist/lib/chunk-NE46WXNJ.js.map +1 -0
- package/dist/lib/{chunk-QGJVGFY4.js → chunk-OF5IJ4WG.js} +6 -6
- package/dist/lib/chunk-OF5IJ4WG.js.map +1 -0
- package/dist/lib/{chunk-WDNYOFEH.js → chunk-PIFE7MUZ.js} +500 -498
- package/dist/lib/chunk-PIFE7MUZ.js.map +1 -0
- package/dist/lib/{chunk-2ZYHO243.js → chunk-PXSRMP4E.js} +2 -2
- package/dist/lib/chunk-PXSRMP4E.js.map +1 -0
- package/dist/lib/{chunk-CXYZENE4.js → chunk-Q2L3FNJO.js} +13 -7
- package/dist/lib/chunk-Q2L3FNJO.js.map +1 -0
- package/dist/lib/{chunk-XFIGAAKN.cjs → chunk-Q2RUDKWY.cjs} +8 -6
- package/dist/lib/chunk-Q2RUDKWY.cjs.map +1 -0
- package/dist/lib/{chunk-NFDRIBCM.js → chunk-Q3KJZ3B5.js} +5 -7
- package/dist/lib/chunk-Q3KJZ3B5.js.map +1 -0
- package/dist/lib/{chunk-FHZJQZOE.cjs → chunk-QXJHCA3E.cjs} +7 -7
- package/dist/lib/chunk-QXJHCA3E.cjs.map +1 -0
- package/dist/lib/{chunk-TZFBE35T.cjs → chunk-RQICHHZM.cjs} +2 -2
- package/dist/lib/chunk-RQICHHZM.cjs.map +1 -0
- package/dist/lib/{chunk-7MXG5EG2.js → chunk-RXQWNSZX.js} +3 -3
- package/dist/lib/chunk-RXQWNSZX.js.map +1 -0
- package/dist/lib/{chunk-I6A564OE.cjs → chunk-U36VZLW6.cjs} +2 -2
- package/dist/lib/chunk-U36VZLW6.cjs.map +1 -0
- package/dist/lib/{chunk-65DUUIIF.cjs → chunk-UQJWVRRE.cjs} +2 -2
- package/dist/lib/chunk-UQJWVRRE.cjs.map +1 -0
- package/dist/lib/{chunk-XHCRXNQ3.cjs → chunk-V5OY4ALI.cjs} +5 -5
- package/dist/lib/chunk-V5OY4ALI.cjs.map +1 -0
- package/dist/lib/{chunk-I3I4BYJ4.js → chunk-VJN72T2O.js} +5 -5
- package/dist/lib/chunk-VJN72T2O.js.map +1 -0
- package/dist/lib/{chunk-KACTPBW2.cjs → chunk-W4OMKQ7W.cjs} +14 -8
- package/dist/lib/chunk-W4OMKQ7W.cjs.map +1 -0
- package/dist/lib/{chunk-SB3NFYXT.cjs → chunk-XZD7S5TU.cjs} +5 -5
- package/dist/lib/chunk-XZD7S5TU.cjs.map +1 -0
- package/dist/lib/{chunk-PJKWY74P.js → chunk-YBIWVB66.js} +10 -9
- package/dist/lib/chunk-YBIWVB66.js.map +1 -0
- package/dist/lib/{chunk-JXIRUV56.js → chunk-YF3YHK4X.js} +5 -5
- package/dist/lib/chunk-YF3YHK4X.js.map +1 -0
- package/dist/lib/{chunk-TJQEGHJA.cjs → chunk-YVDJCVE5.cjs} +12 -12
- package/dist/lib/chunk-YVDJCVE5.cjs.map +1 -0
- package/dist/lib/{chunk-M2TB43VG.cjs → chunk-ZP7PDTVE.cjs} +7 -9
- package/dist/lib/chunk-ZP7PDTVE.cjs.map +1 -0
- package/dist/lib/{config-BOPIY57U.d.cts → config-AuIGsUck.d.cts} +110 -106
- package/dist/lib/{config-Chd_3Uh3.d.ts → config-B_WTwd49.d.ts} +110 -106
- package/dist/lib/config-file.d.cts +2 -1
- package/dist/lib/config-file.d.ts +2 -1
- package/dist/lib/entry.d.cts +2 -1
- package/dist/lib/entry.d.ts +2 -1
- package/dist/lib/{hooks-DkVRKYVN.d.cts → hooks-4KkL9GD2.d.cts} +1 -1
- package/dist/lib/{hooks-56fQP2HY.d.ts → hooks-DErK4Fv4.d.ts} +1 -1
- package/dist/lib/index.cjs +36 -36
- package/dist/lib/index.d.cts +3 -2
- package/dist/lib/index.d.ts +3 -2
- package/dist/lib/index.js +11 -11
- package/dist/lib/logger.d.cts +2 -1
- package/dist/lib/logger.d.ts +2 -1
- package/dist/lib/typescript/compiler-host.cjs +6 -6
- package/dist/lib/typescript/compiler-host.cjs.map +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +2 -1
- package/dist/lib/typescript/compiler-host.d.ts +2 -1
- package/dist/lib/typescript/compiler-host.js +5 -5
- package/dist/lib/typescript/compiler-host.js.map +1 -1
- package/dist/lib/typescript/import-transformer.cjs +1 -1
- package/dist/lib/typescript/import-transformer.cjs.map +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +2 -1
- package/dist/lib/typescript/import-transformer.d.ts +2 -1
- package/dist/lib/typescript/import-transformer.js +1 -1
- package/dist/lib/typescript/import-transformer.js.map +1 -1
- package/dist/lib/typescript/index.cjs +6 -6
- package/dist/lib/typescript/index.d.cts +2 -1
- package/dist/lib/typescript/index.d.ts +2 -1
- package/dist/lib/typescript/index.js +1 -1
- package/dist/lib/typescript/program.cjs +6 -6
- package/dist/lib/typescript/program.d.cts +2 -1
- package/dist/lib/typescript/program.d.ts +2 -1
- package/dist/lib/typescript/program.js +1 -1
- package/dist/lib/unplugin/factory.cjs +6 -6
- package/dist/lib/unplugin/factory.d.cts +3 -2
- package/dist/lib/unplugin/factory.d.ts +3 -2
- package/dist/lib/unplugin/factory.js +5 -5
- package/dist/lib/unplugin/index.cjs +9 -9
- package/dist/lib/unplugin/index.d.cts +3 -2
- package/dist/lib/unplugin/index.d.ts +3 -2
- package/dist/lib/unplugin/index.js +6 -6
- package/dist/lib/unplugin/plugin.cjs +4 -4
- package/dist/lib/unplugin/plugin.d.cts +2 -1
- package/dist/lib/unplugin/plugin.d.ts +2 -1
- package/dist/lib/unplugin/plugin.js +3 -3
- package/dist/lib/unplugin/resolve-id.cjs +2 -2
- package/dist/lib/unplugin/resolve-id.d.cts +2 -1
- package/dist/lib/unplugin/resolve-id.d.ts +2 -1
- package/dist/lib/unplugin/resolve-id.js +1 -1
- package/dist/lib/utilities/cache.cjs +4 -4
- package/dist/lib/utilities/cache.js +2 -2
- package/dist/lib/utilities/file-header.d.cts +2 -1
- package/dist/lib/utilities/file-header.d.ts +2 -1
- package/dist/lib/utilities/index.cjs +24 -24
- package/dist/lib/utilities/index.d.cts +2 -1
- package/dist/lib/utilities/index.d.ts +2 -1
- package/dist/lib/utilities/index.js +7 -7
- package/dist/lib/utilities/meta.cjs +8 -8
- package/dist/lib/utilities/meta.d.cts +2 -1
- package/dist/lib/utilities/meta.d.ts +2 -1
- package/dist/lib/utilities/meta.js +1 -1
- package/dist/lib/utilities/plugin-helpers.d.cts +2 -1
- package/dist/lib/utilities/plugin-helpers.d.ts +2 -1
- package/dist/lib/utilities/resolve-path.cjs +2 -2
- package/dist/lib/utilities/resolve-path.d.cts +2 -1
- package/dist/lib/utilities/resolve-path.d.ts +2 -1
- package/dist/lib/utilities/resolve-path.js +1 -1
- package/dist/lib/utilities/source-file.cjs +4 -4
- package/dist/lib/utilities/source-file.js +1 -1
- package/dist/lib/utilities/source-map.cjs +2 -2
- package/dist/lib/utilities/source-map.js +1 -1
- package/dist/lib/utilities/worker.cjs +3 -3
- package/dist/lib/utilities/worker.d.cts +2 -1
- package/dist/lib/utilities/worker.d.ts +2 -1
- package/dist/lib/utilities/worker.js +1 -1
- package/dist/lib/utilities/write-file.cjs +2 -2
- package/dist/lib/utilities/write-file.d.cts +2 -1
- package/dist/lib/utilities/write-file.d.ts +2 -1
- package/dist/lib/utilities/write-file.js +1 -1
- package/dist/next.cjs +8 -8
- package/dist/next.js +5 -5
- package/dist/nuxt.cjs +10 -10
- package/dist/nuxt.js +7 -7
- package/dist/{resolved-NZTd64-O.d.cts → resolved-CcuVqMqc.d.cts} +28 -3
- package/dist/{resolved-DhHHMnUD.d.ts → resolved-Dhscmo3z.d.ts} +28 -3
- package/dist/rolldown.cjs +7 -7
- package/dist/rolldown.d.cts +2 -1
- package/dist/rolldown.d.ts +2 -1
- package/dist/rolldown.js +4 -4
- package/dist/rollup.cjs +7 -7
- package/dist/rollup.d.cts +2 -1
- package/dist/rollup.d.ts +2 -1
- package/dist/rollup.js +4 -4
- package/dist/rspack.cjs +7 -7
- package/dist/rspack.d.cts +2 -1
- package/dist/rspack.d.ts +2 -1
- package/dist/rspack.js +4 -4
- package/dist/tsup.cjs +9 -9
- package/dist/tsup.js +6 -6
- package/dist/types/babel.d.cts +2 -1
- package/dist/types/babel.d.ts +2 -1
- package/dist/types/commands.d.cts +2 -1
- package/dist/types/commands.d.ts +2 -1
- package/dist/types/compiler.d.cts +2 -1
- package/dist/types/compiler.d.ts +2 -1
- package/dist/types/config.d.cts +2 -1
- package/dist/types/config.d.ts +2 -1
- package/dist/types/context.cjs +2 -2
- package/dist/types/context.d.cts +2 -1
- package/dist/types/context.d.ts +2 -1
- package/dist/types/context.js +1 -1
- package/dist/types/hooks.d.cts +2 -1
- package/dist/types/hooks.d.ts +2 -1
- package/dist/types/index.cjs +9 -9
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.ts +3 -2
- package/dist/types/index.js +2 -2
- package/dist/types/internal.d.cts +3 -2
- package/dist/types/internal.d.ts +3 -2
- package/dist/types/plugin.d.cts +2 -1
- package/dist/types/plugin.d.ts +2 -1
- package/dist/types/resolved.d.cts +2 -1
- package/dist/types/resolved.d.ts +2 -1
- package/dist/types/unplugin.d.cts +2 -1
- package/dist/types/unplugin.d.ts +2 -1
- package/dist/types/vfs.cjs +7 -7
- package/dist/types/vfs.d.cts +93 -111
- package/dist/types/vfs.d.ts +93 -111
- package/dist/types/vfs.js +1 -1
- package/dist/unloader.cjs +7 -7
- package/dist/unloader.d.cts +2 -1
- package/dist/unloader.d.ts +2 -1
- package/dist/unloader.js +4 -4
- package/dist/unplugin.cjs +19 -19
- package/dist/unplugin.d.cts +3 -2
- package/dist/unplugin.d.ts +3 -2
- package/dist/unplugin.js +16 -16
- package/dist/vite.cjs +8 -8
- package/dist/vite.d.cts +2 -1
- package/dist/vite.d.ts +2 -1
- package/dist/vite.js +5 -5
- package/dist/webpack.cjs +7 -7
- package/dist/webpack.d.cts +2 -1
- package/dist/webpack.d.ts +2 -1
- package/dist/webpack.js +4 -4
- package/package.json +9 -9
- package/dist/chunk-6FRFYMLC.cjs +0 -12
- package/dist/chunk-6M3HIMSG.cjs +0 -12
- package/dist/chunk-6ODSQSQL.cjs +0 -34
- package/dist/chunk-HPXUAQCU.cjs +0 -12
- package/dist/chunk-KJHDE76P.cjs +0 -24
- package/dist/chunk-R5CZG7XN.js +0 -31
- package/dist/chunk-RGMGFYXY.cjs +0 -12
- package/dist/chunk-TZ4Y7R4G.cjs +0 -12
- package/dist/lib/chunk-26W3IQT6.js.map +0 -1
- package/dist/lib/chunk-2D74QBNW.cjs.map +0 -1
- package/dist/lib/chunk-2ZYHO243.js.map +0 -1
- package/dist/lib/chunk-65DUUIIF.cjs.map +0 -1
- package/dist/lib/chunk-7CZ2QZEV.js.map +0 -1
- package/dist/lib/chunk-7FQQFIHR.cjs.map +0 -1
- package/dist/lib/chunk-7MXG5EG2.js.map +0 -1
- package/dist/lib/chunk-CXYZENE4.js.map +0 -1
- package/dist/lib/chunk-DKE25WTL.js.map +0 -1
- package/dist/lib/chunk-E7UTFXPP.js.map +0 -1
- package/dist/lib/chunk-ECJPGNXE.cjs.map +0 -1
- package/dist/lib/chunk-EOO7IRCI.js.map +0 -1
- package/dist/lib/chunk-FHZJQZOE.cjs.map +0 -1
- package/dist/lib/chunk-G5DJO4HA.cjs.map +0 -1
- package/dist/lib/chunk-GWAVDFOE.js.map +0 -1
- package/dist/lib/chunk-I3I4BYJ4.js.map +0 -1
- package/dist/lib/chunk-I6A564OE.cjs.map +0 -1
- package/dist/lib/chunk-JXIRUV56.js.map +0 -1
- package/dist/lib/chunk-KACTPBW2.cjs.map +0 -1
- package/dist/lib/chunk-KAOWUIFH.cjs.map +0 -1
- package/dist/lib/chunk-LTBRHAQ2.cjs.map +0 -1
- package/dist/lib/chunk-M2TB43VG.cjs.map +0 -1
- package/dist/lib/chunk-NFDRIBCM.js.map +0 -1
- package/dist/lib/chunk-PJKWY74P.js.map +0 -1
- package/dist/lib/chunk-QGJVGFY4.js.map +0 -1
- package/dist/lib/chunk-QSBORJCS.js.map +0 -1
- package/dist/lib/chunk-RY67J24J.js.map +0 -1
- package/dist/lib/chunk-SB3NFYXT.cjs.map +0 -1
- package/dist/lib/chunk-TJQEGHJA.cjs.map +0 -1
- package/dist/lib/chunk-TNCZYSNV.js.map +0 -1
- package/dist/lib/chunk-TZFBE35T.cjs.map +0 -1
- package/dist/lib/chunk-VANFTXBT.cjs.map +0 -1
- package/dist/lib/chunk-VRNWPH35.cjs.map +0 -1
- package/dist/lib/chunk-WDNYOFEH.js.map +0 -1
- package/dist/lib/chunk-XFIGAAKN.cjs.map +0 -1
- package/dist/lib/chunk-XHCRXNQ3.cjs.map +0 -1
- package/dist/lib/chunk-ZKYZWEHY.cjs.map +0 -1
- package/dist/lib/chunk-ZYBUJ2HE.js.map +0 -1
package/dist/types/vfs.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PrimitiveJsonValue } from '@stryke/json/types';
|
|
1
2
|
import { Volume } from 'memfs';
|
|
2
3
|
import { StatSyncOptions, Stats, PathLike, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
3
4
|
import { IUnionFs } from 'unionfs';
|
|
@@ -9,30 +10,57 @@ declare const __VFS_CACHE__ = "__VFS_CACHE__";
|
|
|
9
10
|
declare const __VFS_RESOLVER__ = "__VFS_RESOLVER__";
|
|
10
11
|
declare const __VFS_VIRTUAL__ = "__VFS_VIRTUAL__";
|
|
11
12
|
declare const __VFS_UNIFIED__ = "__VFS_UNIFIED__";
|
|
13
|
+
type OutputModeType = "fs" | "virtual";
|
|
12
14
|
interface VirtualFile {
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
16
|
+
* The unique identifier for the virtual file.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* If no specific id is provided, it defaults to the file's {@link path}.
|
|
15
20
|
*/
|
|
16
|
-
|
|
21
|
+
id: string;
|
|
17
22
|
/**
|
|
18
|
-
*
|
|
23
|
+
* Additional metadata associated with the virtual file.
|
|
19
24
|
*/
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
interface VirtualBuiltinFile extends VirtualFile {
|
|
25
|
+
details: Record<string, PrimitiveJsonValue>;
|
|
23
26
|
/**
|
|
24
|
-
* The
|
|
27
|
+
* The variant of the file.
|
|
25
28
|
*
|
|
26
29
|
* @remarks
|
|
27
|
-
* This
|
|
30
|
+
* This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
|
|
31
|
+
* - `builtin`: Indicates that the file is a built-in module provided by the system.
|
|
32
|
+
* - `entry`: Indicates that the file is an entry point for execution.
|
|
33
|
+
* - `normal`: Indicates that the file is a standard file without any special role.
|
|
28
34
|
*/
|
|
29
|
-
|
|
35
|
+
variant: string;
|
|
36
|
+
/**
|
|
37
|
+
* The output mode of the file.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* This indicates whether the file is intended to be written to the actual file system (`fs`) or kept in the virtual file system (`virtual`).
|
|
41
|
+
*/
|
|
42
|
+
mode: OutputModeType;
|
|
43
|
+
/**
|
|
44
|
+
* A virtual (or actual) path to the file in the file system.
|
|
45
|
+
*/
|
|
46
|
+
path: string;
|
|
47
|
+
/**
|
|
48
|
+
* The contents of the file.
|
|
49
|
+
*/
|
|
50
|
+
code: string | NodeJS.ArrayBufferView;
|
|
30
51
|
}
|
|
31
|
-
type
|
|
52
|
+
type VirtualFileSystemMetadata = Pick<VirtualFile, "id" | "details" | "variant" | "mode">;
|
|
32
53
|
interface ResolveFSOptions {
|
|
33
54
|
mode?: OutputModeType;
|
|
34
55
|
}
|
|
35
56
|
type MakeDirectoryOptions = (Mode | MakeDirectoryOptions$1) & ResolveFSOptions;
|
|
57
|
+
interface PowerlinesWriteFileOptions extends ResolveFSOptions {
|
|
58
|
+
skipFormat?: boolean;
|
|
59
|
+
}
|
|
60
|
+
type NodeWriteFileOptions = WriteFileOptions$1;
|
|
61
|
+
type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
|
|
62
|
+
type PowerLinesWriteFileData = Partial<Omit<VirtualFile, "path" | "mode" | "code">> & Pick<VirtualFile, "code">;
|
|
63
|
+
type WriteFileData = string | NodeJS.ArrayBufferView | PowerLinesWriteFileData;
|
|
36
64
|
interface ResolvePathOptions extends ResolveFSOptions {
|
|
37
65
|
/**
|
|
38
66
|
* Should the resolved path include the file extension?
|
|
@@ -49,82 +77,63 @@ interface ResolvePathOptions extends ResolveFSOptions {
|
|
|
49
77
|
*/
|
|
50
78
|
type?: "file" | "directory";
|
|
51
79
|
}
|
|
52
|
-
type WriteFileOptions = WriteFileOptions$1 & ResolveFSOptions;
|
|
53
|
-
interface WriteBuiltinFileOptions extends ResolveFSOptions {
|
|
54
|
-
skipFormat?: boolean;
|
|
55
|
-
}
|
|
56
80
|
interface VirtualFileSystemInterface {
|
|
57
81
|
[__VFS_INIT__]: () => void;
|
|
58
82
|
[__VFS_REVERT__]: () => void;
|
|
59
83
|
/**
|
|
60
|
-
* The underlying
|
|
61
|
-
*/
|
|
62
|
-
builtinIdMap: Map<string, string>;
|
|
63
|
-
/**
|
|
64
|
-
* Checks if a path or ID corresponds to a builtin file.
|
|
65
|
-
*
|
|
66
|
-
* @param id - The id of the builtin file to check against.
|
|
67
|
-
* @param pathOrId - The path or id of the file to check.
|
|
68
|
-
* @returns Whether the path or ID corresponds to a builtin file.
|
|
84
|
+
* The underlying file metadata.
|
|
69
85
|
*/
|
|
70
|
-
|
|
86
|
+
meta: Record<string, VirtualFileSystemMetadata | undefined>;
|
|
71
87
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* @param id - The ID to check.
|
|
75
|
-
* @returns Whether the ID is a valid builtin ID.
|
|
88
|
+
* A map of module ids to their file paths.
|
|
76
89
|
*/
|
|
77
|
-
|
|
90
|
+
ids: Record<string, string>;
|
|
78
91
|
/**
|
|
79
|
-
* Check if a path or
|
|
92
|
+
* Check if a path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
80
93
|
*
|
|
81
|
-
* @param pathOrId - The path or
|
|
94
|
+
* @param pathOrId - The path or id to check.
|
|
82
95
|
* @param options - Optional parameters for resolving the path.
|
|
83
|
-
* @returns Whether the path or
|
|
96
|
+
* @returns Whether the path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
84
97
|
*/
|
|
85
|
-
|
|
98
|
+
isVirtual: (pathOrId: string, options?: ResolvePathOptions) => boolean;
|
|
86
99
|
/**
|
|
87
|
-
* Check if a path
|
|
100
|
+
* Check if a path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
88
101
|
*
|
|
89
|
-
* @
|
|
90
|
-
*
|
|
91
|
-
* @
|
|
92
|
-
* @returns Whether the path or ID corresponds to a virtual file.
|
|
93
|
-
*/
|
|
94
|
-
isTsconfigPath: (pathOrId: string) => boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Checks if a given path or ID corresponds to a builtin module file.
|
|
97
|
-
*/
|
|
98
|
-
isBuiltinFile: (pathOrID: string, options?: ResolvePathOptions) => boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Returns a list of builtin module files in the virtual file system.
|
|
101
|
-
*/
|
|
102
|
-
listBuiltinFiles: () => Promise<VirtualBuiltinFile[]>;
|
|
103
|
-
/**
|
|
104
|
-
* Checks if a file exists in the virtual file system (VFS).
|
|
102
|
+
* @param pathOrId - The path or id to check.
|
|
103
|
+
* @param options - Optional parameters for resolving the path.
|
|
104
|
+
* @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
isFs: (pathOrId: string, options?: ResolvePathOptions) => boolean;
|
|
107
107
|
/**
|
|
108
108
|
* Checks if a file exists in the virtual file system (VFS).
|
|
109
109
|
*
|
|
110
110
|
* @param path - The path of the file to check.
|
|
111
111
|
* @returns `true` if the file exists, otherwise `false`.
|
|
112
112
|
*/
|
|
113
|
-
|
|
113
|
+
isFile: (path: string) => boolean;
|
|
114
114
|
/**
|
|
115
115
|
* Checks if a directory exists in the virtual file system (VFS).
|
|
116
116
|
*
|
|
117
117
|
* @param path - The path of the directory to check.
|
|
118
118
|
* @returns `true` if the directory exists, otherwise `false`.
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
isDirectory: (path: string) => boolean;
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Check if a path exists within one of the directories specified in the tsconfig.json's `path` field.
|
|
123
123
|
*
|
|
124
|
-
* @
|
|
125
|
-
*
|
|
124
|
+
* @see https://www.typescriptlang.org/tsconfig#paths
|
|
125
|
+
*
|
|
126
|
+
* @param pathOrId - The path or id to check.
|
|
127
|
+
* @returns Whether the path or id corresponds to a virtual file.
|
|
126
128
|
*/
|
|
127
|
-
|
|
129
|
+
isTsconfigPath: (pathOrId: string) => boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Checks if a file exists in the virtual file system (VFS).
|
|
132
|
+
*
|
|
133
|
+
* @param pathOrId - The path or id of the file.
|
|
134
|
+
* @returns `true` if the file exists, otherwise `false`.
|
|
135
|
+
*/
|
|
136
|
+
existsSync: (pathOrId: string) => boolean;
|
|
128
137
|
/**
|
|
129
138
|
* Gets the stats of a file in the virtual file system (VFS).
|
|
130
139
|
*
|
|
@@ -260,71 +269,28 @@ interface VirtualFileSystemInterface {
|
|
|
260
269
|
/**
|
|
261
270
|
* Writes a file to the virtual file system (VFS).
|
|
262
271
|
*
|
|
263
|
-
* @param
|
|
272
|
+
* @param path - The path to the file.
|
|
264
273
|
* @param data - The contents of the file.
|
|
265
274
|
* @param options - Optional parameters for writing the file.
|
|
266
275
|
* @returns A promise that resolves when the file is written.
|
|
267
276
|
*/
|
|
268
|
-
writeFile: (
|
|
277
|
+
writeFile: (path: PathOrFileDescriptor, data?: WriteFileData, options?: WriteFileOptions) => Promise<void>;
|
|
269
278
|
/**
|
|
270
279
|
* Writes a file to the virtual file system (VFS).
|
|
271
280
|
*
|
|
272
|
-
* @param
|
|
281
|
+
* @param path - The path to the file.
|
|
273
282
|
* @param data - The contents of the file.
|
|
274
283
|
* @param options - Optional parameters for writing the file.
|
|
275
284
|
*/
|
|
276
|
-
writeFileSync: (
|
|
277
|
-
/**
|
|
278
|
-
* Adds a builtin module file to the virtual file system.
|
|
279
|
-
*
|
|
280
|
-
* @param id - The unique identifier for the builtin module file.
|
|
281
|
-
* @param path - The path to the builtin module file.
|
|
282
|
-
* @param contents - The contents of the builtin module file.
|
|
283
|
-
* @param options - Optional parameters for writing the builtin module file.
|
|
284
|
-
*/
|
|
285
|
-
writeBuiltinFile: (id: string, path: string, contents: string, options?: WriteBuiltinFileOptions) => Promise<void>;
|
|
286
|
-
/**
|
|
287
|
-
* Adds an entry file to the virtual file system.
|
|
288
|
-
*
|
|
289
|
-
* @param name - The unique identifier for the entry file.
|
|
290
|
-
* @param contents - The contents of the entry file.
|
|
291
|
-
* @param options - Optional parameters for writing the entry file.
|
|
292
|
-
*/
|
|
293
|
-
writeEntryFile: (name: string, contents: string, options?: WriteBuiltinFileOptions) => Promise<void>;
|
|
294
|
-
/**
|
|
295
|
-
* Writes a file to disk from the physical file system (on disk).
|
|
296
|
-
*
|
|
297
|
-
* @param path - The path to the file to write.
|
|
298
|
-
* @param contents - The contents of the file to write.
|
|
299
|
-
* @param options - Optional parameters for writing the file.
|
|
300
|
-
* @returns A promise that resolves when the file is written.
|
|
301
|
-
*/
|
|
302
|
-
writeFileToDisk: (path: string, contents: string, options?: {
|
|
303
|
-
skipFormat?: boolean;
|
|
304
|
-
}) => Promise<void>;
|
|
285
|
+
writeFileSync: (path: PathOrFileDescriptor, data?: WriteFileData, options?: WriteFileOptions) => void;
|
|
305
286
|
/**
|
|
306
|
-
* Resolves a path or
|
|
287
|
+
* Resolves a path or id to a file path in the virtual file system.
|
|
307
288
|
*
|
|
308
289
|
* @param pathOrId - The path or id of the file to resolve.
|
|
309
290
|
* @param options - Optional parameters for resolving the path.
|
|
310
291
|
* @returns The resolved path of the file if it exists, otherwise false.
|
|
311
292
|
*/
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Resolves a path or ID to a file path in the virtual file system.
|
|
315
|
-
*
|
|
316
|
-
* @param pathOrId - The path or id of the file to resolve.
|
|
317
|
-
* @returns The resolved path of the file if it exists, otherwise false.
|
|
318
|
-
*/
|
|
319
|
-
realpathSync: (pathOrId: string) => string;
|
|
320
|
-
/**
|
|
321
|
-
* Resolves a path or ID to a builtin module file id in the virtual file system.
|
|
322
|
-
*
|
|
323
|
-
* @param pathOrId - The path or id of the file to resolve.
|
|
324
|
-
* @param paths - Optional array of paths to search for the file.
|
|
325
|
-
* @returns The resolved id of the builtin module file if it exists, otherwise false.
|
|
326
|
-
*/
|
|
327
|
-
resolveId: (pathOrId: string) => string | false;
|
|
293
|
+
resolve: (pathOrId: string, options?: ResolvePathOptions) => string | false;
|
|
328
294
|
/**
|
|
329
295
|
* Resolves a path based on TypeScript's `tsconfig.json` paths.
|
|
330
296
|
*
|
|
@@ -343,6 +309,19 @@ interface VirtualFileSystemInterface {
|
|
|
343
309
|
* @returns The resolved package name if it exists, otherwise undefined.
|
|
344
310
|
*/
|
|
345
311
|
resolveTsconfigPathPackage: (path: string) => string | false;
|
|
312
|
+
/**
|
|
313
|
+
* Resolves a path or id to a file path in the virtual file system.
|
|
314
|
+
*
|
|
315
|
+
* @param pathOrId - The path or id of the file to resolve.
|
|
316
|
+
* @returns The resolved path of the file if it exists, otherwise false.
|
|
317
|
+
*/
|
|
318
|
+
realpathSync: (pathOrId: string) => string;
|
|
319
|
+
/**
|
|
320
|
+
* Retrieves a partial metadata mapping of all files in the virtual file system (VFS).
|
|
321
|
+
*
|
|
322
|
+
* @returns A record mapping file paths to their partial metadata.
|
|
323
|
+
*/
|
|
324
|
+
getPartialMeta: () => Record<string, Partial<VirtualFileSystemMetadata>>;
|
|
346
325
|
/**
|
|
347
326
|
* A map of cached file paths to their underlying file content.
|
|
348
327
|
*/
|
|
@@ -357,14 +336,17 @@ interface VirtualFileSystemInterface {
|
|
|
357
336
|
[__VFS_UNIFIED__]: IUnionFs;
|
|
358
337
|
}
|
|
359
338
|
declare type __ΩVirtualFileExtension = any[];
|
|
360
|
-
declare type __ΩVirtualFile = any[];
|
|
361
|
-
declare type __ΩVirtualBuiltinFile = any[];
|
|
362
339
|
declare type __ΩOutputModeType = any[];
|
|
340
|
+
declare type __ΩVirtualFile = any[];
|
|
341
|
+
declare type __ΩVirtualFileSystemMetadata = any[];
|
|
363
342
|
declare type __ΩResolveFSOptions = any[];
|
|
364
343
|
declare type __ΩMakeDirectoryOptions = any[];
|
|
365
|
-
declare type __Ω
|
|
344
|
+
declare type __ΩPowerlinesWriteFileOptions = any[];
|
|
345
|
+
declare type __ΩNodeWriteFileOptions = any[];
|
|
366
346
|
declare type __ΩWriteFileOptions = any[];
|
|
367
|
-
declare type __Ω
|
|
347
|
+
declare type __ΩPowerLinesWriteFileData = any[];
|
|
348
|
+
declare type __ΩWriteFileData = any[];
|
|
349
|
+
declare type __ΩResolvePathOptions = any[];
|
|
368
350
|
declare type __ΩVirtualFileSystemInterface = any[];
|
|
369
351
|
|
|
370
|
-
export { type MakeDirectoryOptions, type OutputModeType, type
|
|
352
|
+
export { type MakeDirectoryOptions, type NodeWriteFileOptions, type OutputModeType, type PowerLinesWriteFileData, type PowerlinesWriteFileOptions, type ResolveFSOptions, type ResolvePathOptions, type VirtualFile, type VirtualFileExtension, type VirtualFileSystemInterface, type VirtualFileSystemMetadata, type WriteFileData, type WriteFileOptions, __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__, type __ΩMakeDirectoryOptions, type __ΩNodeWriteFileOptions, type __ΩOutputModeType, type __ΩPowerLinesWriteFileData, type __ΩPowerlinesWriteFileOptions, type __ΩResolveFSOptions, type __ΩResolvePathOptions, type __ΩVirtualFile, type __ΩVirtualFileExtension, type __ΩVirtualFileSystemInterface, type __ΩVirtualFileSystemMetadata, type __ΩWriteFileData, type __ΩWriteFileOptions };
|
package/dist/types/vfs.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PrimitiveJsonValue } from '@stryke/json/types';
|
|
1
2
|
import { Volume } from 'memfs';
|
|
2
3
|
import { StatSyncOptions, Stats, PathLike, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
3
4
|
import { IUnionFs } from 'unionfs';
|
|
@@ -9,30 +10,57 @@ declare const __VFS_CACHE__ = "__VFS_CACHE__";
|
|
|
9
10
|
declare const __VFS_RESOLVER__ = "__VFS_RESOLVER__";
|
|
10
11
|
declare const __VFS_VIRTUAL__ = "__VFS_VIRTUAL__";
|
|
11
12
|
declare const __VFS_UNIFIED__ = "__VFS_UNIFIED__";
|
|
13
|
+
type OutputModeType = "fs" | "virtual";
|
|
12
14
|
interface VirtualFile {
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
16
|
+
* The unique identifier for the virtual file.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* If no specific id is provided, it defaults to the file's {@link path}.
|
|
15
20
|
*/
|
|
16
|
-
|
|
21
|
+
id: string;
|
|
17
22
|
/**
|
|
18
|
-
*
|
|
23
|
+
* Additional metadata associated with the virtual file.
|
|
19
24
|
*/
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
interface VirtualBuiltinFile extends VirtualFile {
|
|
25
|
+
details: Record<string, PrimitiveJsonValue>;
|
|
23
26
|
/**
|
|
24
|
-
* The
|
|
27
|
+
* The variant of the file.
|
|
25
28
|
*
|
|
26
29
|
* @remarks
|
|
27
|
-
* This
|
|
30
|
+
* This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
|
|
31
|
+
* - `builtin`: Indicates that the file is a built-in module provided by the system.
|
|
32
|
+
* - `entry`: Indicates that the file is an entry point for execution.
|
|
33
|
+
* - `normal`: Indicates that the file is a standard file without any special role.
|
|
28
34
|
*/
|
|
29
|
-
|
|
35
|
+
variant: string;
|
|
36
|
+
/**
|
|
37
|
+
* The output mode of the file.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* This indicates whether the file is intended to be written to the actual file system (`fs`) or kept in the virtual file system (`virtual`).
|
|
41
|
+
*/
|
|
42
|
+
mode: OutputModeType;
|
|
43
|
+
/**
|
|
44
|
+
* A virtual (or actual) path to the file in the file system.
|
|
45
|
+
*/
|
|
46
|
+
path: string;
|
|
47
|
+
/**
|
|
48
|
+
* The contents of the file.
|
|
49
|
+
*/
|
|
50
|
+
code: string | NodeJS.ArrayBufferView;
|
|
30
51
|
}
|
|
31
|
-
type
|
|
52
|
+
type VirtualFileSystemMetadata = Pick<VirtualFile, "id" | "details" | "variant" | "mode">;
|
|
32
53
|
interface ResolveFSOptions {
|
|
33
54
|
mode?: OutputModeType;
|
|
34
55
|
}
|
|
35
56
|
type MakeDirectoryOptions = (Mode | MakeDirectoryOptions$1) & ResolveFSOptions;
|
|
57
|
+
interface PowerlinesWriteFileOptions extends ResolveFSOptions {
|
|
58
|
+
skipFormat?: boolean;
|
|
59
|
+
}
|
|
60
|
+
type NodeWriteFileOptions = WriteFileOptions$1;
|
|
61
|
+
type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
|
|
62
|
+
type PowerLinesWriteFileData = Partial<Omit<VirtualFile, "path" | "mode" | "code">> & Pick<VirtualFile, "code">;
|
|
63
|
+
type WriteFileData = string | NodeJS.ArrayBufferView | PowerLinesWriteFileData;
|
|
36
64
|
interface ResolvePathOptions extends ResolveFSOptions {
|
|
37
65
|
/**
|
|
38
66
|
* Should the resolved path include the file extension?
|
|
@@ -49,82 +77,63 @@ interface ResolvePathOptions extends ResolveFSOptions {
|
|
|
49
77
|
*/
|
|
50
78
|
type?: "file" | "directory";
|
|
51
79
|
}
|
|
52
|
-
type WriteFileOptions = WriteFileOptions$1 & ResolveFSOptions;
|
|
53
|
-
interface WriteBuiltinFileOptions extends ResolveFSOptions {
|
|
54
|
-
skipFormat?: boolean;
|
|
55
|
-
}
|
|
56
80
|
interface VirtualFileSystemInterface {
|
|
57
81
|
[__VFS_INIT__]: () => void;
|
|
58
82
|
[__VFS_REVERT__]: () => void;
|
|
59
83
|
/**
|
|
60
|
-
* The underlying
|
|
61
|
-
*/
|
|
62
|
-
builtinIdMap: Map<string, string>;
|
|
63
|
-
/**
|
|
64
|
-
* Checks if a path or ID corresponds to a builtin file.
|
|
65
|
-
*
|
|
66
|
-
* @param id - The id of the builtin file to check against.
|
|
67
|
-
* @param pathOrId - The path or id of the file to check.
|
|
68
|
-
* @returns Whether the path or ID corresponds to a builtin file.
|
|
84
|
+
* The underlying file metadata.
|
|
69
85
|
*/
|
|
70
|
-
|
|
86
|
+
meta: Record<string, VirtualFileSystemMetadata | undefined>;
|
|
71
87
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* @param id - The ID to check.
|
|
75
|
-
* @returns Whether the ID is a valid builtin ID.
|
|
88
|
+
* A map of module ids to their file paths.
|
|
76
89
|
*/
|
|
77
|
-
|
|
90
|
+
ids: Record<string, string>;
|
|
78
91
|
/**
|
|
79
|
-
* Check if a path or
|
|
92
|
+
* Check if a path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
80
93
|
*
|
|
81
|
-
* @param pathOrId - The path or
|
|
94
|
+
* @param pathOrId - The path or id to check.
|
|
82
95
|
* @param options - Optional parameters for resolving the path.
|
|
83
|
-
* @returns Whether the path or
|
|
96
|
+
* @returns Whether the path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
84
97
|
*/
|
|
85
|
-
|
|
98
|
+
isVirtual: (pathOrId: string, options?: ResolvePathOptions) => boolean;
|
|
86
99
|
/**
|
|
87
|
-
* Check if a path
|
|
100
|
+
* Check if a path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
88
101
|
*
|
|
89
|
-
* @
|
|
90
|
-
*
|
|
91
|
-
* @
|
|
92
|
-
* @returns Whether the path or ID corresponds to a virtual file.
|
|
93
|
-
*/
|
|
94
|
-
isTsconfigPath: (pathOrId: string) => boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Checks if a given path or ID corresponds to a builtin module file.
|
|
97
|
-
*/
|
|
98
|
-
isBuiltinFile: (pathOrID: string, options?: ResolvePathOptions) => boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Returns a list of builtin module files in the virtual file system.
|
|
101
|
-
*/
|
|
102
|
-
listBuiltinFiles: () => Promise<VirtualBuiltinFile[]>;
|
|
103
|
-
/**
|
|
104
|
-
* Checks if a file exists in the virtual file system (VFS).
|
|
102
|
+
* @param pathOrId - The path or id to check.
|
|
103
|
+
* @param options - Optional parameters for resolving the path.
|
|
104
|
+
* @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
isFs: (pathOrId: string, options?: ResolvePathOptions) => boolean;
|
|
107
107
|
/**
|
|
108
108
|
* Checks if a file exists in the virtual file system (VFS).
|
|
109
109
|
*
|
|
110
110
|
* @param path - The path of the file to check.
|
|
111
111
|
* @returns `true` if the file exists, otherwise `false`.
|
|
112
112
|
*/
|
|
113
|
-
|
|
113
|
+
isFile: (path: string) => boolean;
|
|
114
114
|
/**
|
|
115
115
|
* Checks if a directory exists in the virtual file system (VFS).
|
|
116
116
|
*
|
|
117
117
|
* @param path - The path of the directory to check.
|
|
118
118
|
* @returns `true` if the directory exists, otherwise `false`.
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
isDirectory: (path: string) => boolean;
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Check if a path exists within one of the directories specified in the tsconfig.json's `path` field.
|
|
123
123
|
*
|
|
124
|
-
* @
|
|
125
|
-
*
|
|
124
|
+
* @see https://www.typescriptlang.org/tsconfig#paths
|
|
125
|
+
*
|
|
126
|
+
* @param pathOrId - The path or id to check.
|
|
127
|
+
* @returns Whether the path or id corresponds to a virtual file.
|
|
126
128
|
*/
|
|
127
|
-
|
|
129
|
+
isTsconfigPath: (pathOrId: string) => boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Checks if a file exists in the virtual file system (VFS).
|
|
132
|
+
*
|
|
133
|
+
* @param pathOrId - The path or id of the file.
|
|
134
|
+
* @returns `true` if the file exists, otherwise `false`.
|
|
135
|
+
*/
|
|
136
|
+
existsSync: (pathOrId: string) => boolean;
|
|
128
137
|
/**
|
|
129
138
|
* Gets the stats of a file in the virtual file system (VFS).
|
|
130
139
|
*
|
|
@@ -260,71 +269,28 @@ interface VirtualFileSystemInterface {
|
|
|
260
269
|
/**
|
|
261
270
|
* Writes a file to the virtual file system (VFS).
|
|
262
271
|
*
|
|
263
|
-
* @param
|
|
272
|
+
* @param path - The path to the file.
|
|
264
273
|
* @param data - The contents of the file.
|
|
265
274
|
* @param options - Optional parameters for writing the file.
|
|
266
275
|
* @returns A promise that resolves when the file is written.
|
|
267
276
|
*/
|
|
268
|
-
writeFile: (
|
|
277
|
+
writeFile: (path: PathOrFileDescriptor, data?: WriteFileData, options?: WriteFileOptions) => Promise<void>;
|
|
269
278
|
/**
|
|
270
279
|
* Writes a file to the virtual file system (VFS).
|
|
271
280
|
*
|
|
272
|
-
* @param
|
|
281
|
+
* @param path - The path to the file.
|
|
273
282
|
* @param data - The contents of the file.
|
|
274
283
|
* @param options - Optional parameters for writing the file.
|
|
275
284
|
*/
|
|
276
|
-
writeFileSync: (
|
|
277
|
-
/**
|
|
278
|
-
* Adds a builtin module file to the virtual file system.
|
|
279
|
-
*
|
|
280
|
-
* @param id - The unique identifier for the builtin module file.
|
|
281
|
-
* @param path - The path to the builtin module file.
|
|
282
|
-
* @param contents - The contents of the builtin module file.
|
|
283
|
-
* @param options - Optional parameters for writing the builtin module file.
|
|
284
|
-
*/
|
|
285
|
-
writeBuiltinFile: (id: string, path: string, contents: string, options?: WriteBuiltinFileOptions) => Promise<void>;
|
|
286
|
-
/**
|
|
287
|
-
* Adds an entry file to the virtual file system.
|
|
288
|
-
*
|
|
289
|
-
* @param name - The unique identifier for the entry file.
|
|
290
|
-
* @param contents - The contents of the entry file.
|
|
291
|
-
* @param options - Optional parameters for writing the entry file.
|
|
292
|
-
*/
|
|
293
|
-
writeEntryFile: (name: string, contents: string, options?: WriteBuiltinFileOptions) => Promise<void>;
|
|
294
|
-
/**
|
|
295
|
-
* Writes a file to disk from the physical file system (on disk).
|
|
296
|
-
*
|
|
297
|
-
* @param path - The path to the file to write.
|
|
298
|
-
* @param contents - The contents of the file to write.
|
|
299
|
-
* @param options - Optional parameters for writing the file.
|
|
300
|
-
* @returns A promise that resolves when the file is written.
|
|
301
|
-
*/
|
|
302
|
-
writeFileToDisk: (path: string, contents: string, options?: {
|
|
303
|
-
skipFormat?: boolean;
|
|
304
|
-
}) => Promise<void>;
|
|
285
|
+
writeFileSync: (path: PathOrFileDescriptor, data?: WriteFileData, options?: WriteFileOptions) => void;
|
|
305
286
|
/**
|
|
306
|
-
* Resolves a path or
|
|
287
|
+
* Resolves a path or id to a file path in the virtual file system.
|
|
307
288
|
*
|
|
308
289
|
* @param pathOrId - The path or id of the file to resolve.
|
|
309
290
|
* @param options - Optional parameters for resolving the path.
|
|
310
291
|
* @returns The resolved path of the file if it exists, otherwise false.
|
|
311
292
|
*/
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Resolves a path or ID to a file path in the virtual file system.
|
|
315
|
-
*
|
|
316
|
-
* @param pathOrId - The path or id of the file to resolve.
|
|
317
|
-
* @returns The resolved path of the file if it exists, otherwise false.
|
|
318
|
-
*/
|
|
319
|
-
realpathSync: (pathOrId: string) => string;
|
|
320
|
-
/**
|
|
321
|
-
* Resolves a path or ID to a builtin module file id in the virtual file system.
|
|
322
|
-
*
|
|
323
|
-
* @param pathOrId - The path or id of the file to resolve.
|
|
324
|
-
* @param paths - Optional array of paths to search for the file.
|
|
325
|
-
* @returns The resolved id of the builtin module file if it exists, otherwise false.
|
|
326
|
-
*/
|
|
327
|
-
resolveId: (pathOrId: string) => string | false;
|
|
293
|
+
resolve: (pathOrId: string, options?: ResolvePathOptions) => string | false;
|
|
328
294
|
/**
|
|
329
295
|
* Resolves a path based on TypeScript's `tsconfig.json` paths.
|
|
330
296
|
*
|
|
@@ -343,6 +309,19 @@ interface VirtualFileSystemInterface {
|
|
|
343
309
|
* @returns The resolved package name if it exists, otherwise undefined.
|
|
344
310
|
*/
|
|
345
311
|
resolveTsconfigPathPackage: (path: string) => string | false;
|
|
312
|
+
/**
|
|
313
|
+
* Resolves a path or id to a file path in the virtual file system.
|
|
314
|
+
*
|
|
315
|
+
* @param pathOrId - The path or id of the file to resolve.
|
|
316
|
+
* @returns The resolved path of the file if it exists, otherwise false.
|
|
317
|
+
*/
|
|
318
|
+
realpathSync: (pathOrId: string) => string;
|
|
319
|
+
/**
|
|
320
|
+
* Retrieves a partial metadata mapping of all files in the virtual file system (VFS).
|
|
321
|
+
*
|
|
322
|
+
* @returns A record mapping file paths to their partial metadata.
|
|
323
|
+
*/
|
|
324
|
+
getPartialMeta: () => Record<string, Partial<VirtualFileSystemMetadata>>;
|
|
346
325
|
/**
|
|
347
326
|
* A map of cached file paths to their underlying file content.
|
|
348
327
|
*/
|
|
@@ -357,14 +336,17 @@ interface VirtualFileSystemInterface {
|
|
|
357
336
|
[__VFS_UNIFIED__]: IUnionFs;
|
|
358
337
|
}
|
|
359
338
|
declare type __ΩVirtualFileExtension = any[];
|
|
360
|
-
declare type __ΩVirtualFile = any[];
|
|
361
|
-
declare type __ΩVirtualBuiltinFile = any[];
|
|
362
339
|
declare type __ΩOutputModeType = any[];
|
|
340
|
+
declare type __ΩVirtualFile = any[];
|
|
341
|
+
declare type __ΩVirtualFileSystemMetadata = any[];
|
|
363
342
|
declare type __ΩResolveFSOptions = any[];
|
|
364
343
|
declare type __ΩMakeDirectoryOptions = any[];
|
|
365
|
-
declare type __Ω
|
|
344
|
+
declare type __ΩPowerlinesWriteFileOptions = any[];
|
|
345
|
+
declare type __ΩNodeWriteFileOptions = any[];
|
|
366
346
|
declare type __ΩWriteFileOptions = any[];
|
|
367
|
-
declare type __Ω
|
|
347
|
+
declare type __ΩPowerLinesWriteFileData = any[];
|
|
348
|
+
declare type __ΩWriteFileData = any[];
|
|
349
|
+
declare type __ΩResolvePathOptions = any[];
|
|
368
350
|
declare type __ΩVirtualFileSystemInterface = any[];
|
|
369
351
|
|
|
370
|
-
export { type MakeDirectoryOptions, type OutputModeType, type
|
|
352
|
+
export { type MakeDirectoryOptions, type NodeWriteFileOptions, type OutputModeType, type PowerLinesWriteFileData, type PowerlinesWriteFileOptions, type ResolveFSOptions, type ResolvePathOptions, type VirtualFile, type VirtualFileExtension, type VirtualFileSystemInterface, type VirtualFileSystemMetadata, type WriteFileData, type WriteFileOptions, __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__, type __ΩMakeDirectoryOptions, type __ΩNodeWriteFileOptions, type __ΩOutputModeType, type __ΩPowerLinesWriteFileData, type __ΩPowerlinesWriteFileOptions, type __ΩResolveFSOptions, type __ΩResolvePathOptions, type __ΩVirtualFile, type __ΩVirtualFileExtension, type __ΩVirtualFileSystemInterface, type __ΩVirtualFileSystemMetadata, type __ΩWriteFileData, type __ΩWriteFileOptions };
|
package/dist/types/vfs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__ } from '../chunk-
|
|
1
|
+
export { __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__ } from '../chunk-GPPJ2CRE.js';
|
|
2
2
|
import '../chunk-7QVYU63E.js';
|
|
3
3
|
//# sourceMappingURL=vfs.js.map
|
|
4
4
|
//# sourceMappingURL=vfs.js.map
|
package/dist/unloader.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunkS5QFX2GM_cjs = require('./chunk-S5QFX2GM.cjs');
|
|
6
|
+
require('./chunk-2RHPFVYT.cjs');
|
|
7
|
+
require('./chunk-UTVZVGM3.cjs');
|
|
8
8
|
require('./chunk-APVMN2H7.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-5XYGZ3DC.cjs');
|
|
10
10
|
require('./chunk-5VPVJHJO.cjs');
|
|
11
11
|
require('./chunk-PK6SKIKE.cjs');
|
|
12
12
|
|
|
@@ -14,15 +14,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkS5QFX2GM_cjs.unloader_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "module.exports", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkS5QFX2GM_cjs.unloader; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "unloader", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkS5QFX2GM_cjs.unloader; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=unloader.cjs.map
|
|
28
28
|
//# sourceMappingURL=unloader.cjs.map
|