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
package/dist/lib/index.d.ts
CHANGED
|
@@ -4,13 +4,11 @@ export { PowerlinesContext } from './contexts/context.js';
|
|
|
4
4
|
export { PowerlinesEnvironmentContext } from './contexts/environment-context.js';
|
|
5
5
|
export { createPluginContext } from './contexts/plugin-context.js';
|
|
6
6
|
export { getUniqueEntries, resolveEntries, resolveEntriesSync, resolveEntry, resolveEntryInput, resolveEntryInputFile, resolveEntryOutput, resolveVirtualEntry } from './entry.js';
|
|
7
|
-
|
|
8
|
-
import fs, { ObjectEncodingOptions, Stats, StatSyncOptions } from 'node:fs';
|
|
9
|
-
import { V as VirtualFileSystemInterface, C as Context, a as VirtualFileMetadata, R as ResolveOptions, b as ResolveFSOptions, M as MakeDirectoryOptions, W as WriteFileData, c as WriteFileOptions, _ as __VFS_PATCH__, d as __VFS_REVERT__ } from './config-DBIFdRoq.js';
|
|
7
|
+
export { VirtualFileSystem } from './fs/vfs.js';
|
|
10
8
|
export { CreateLogOptions, __ΩCreateLogOptions, createLog, extendLog } from './logger.js';
|
|
9
|
+
export { createImportTransformer } from './typescript/import-transformer.js';
|
|
11
10
|
export { IsolatedDeclarationsResult, __ΩIsolatedDeclarationsResult, isolatedDeclarations } from './typescript/isolated-decl.js';
|
|
12
|
-
export {
|
|
13
|
-
export { createProgram } from './typescript/ts-morph.js';
|
|
11
|
+
export { VirtualFileSystemHost, createProgram } from './typescript/ts-morph.js';
|
|
14
12
|
export { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigFilePath, isIncludeMatchFound, isMatchFound, tryTsconfigFilePath } from './typescript/tsconfig.js';
|
|
15
13
|
export { createUnpluginFactory } from './unplugin/factory.js';
|
|
16
14
|
export { combineContexts } from './unplugin/helpers.js';
|
|
@@ -25,21 +23,12 @@ export { generateSourceMap } from './utilities/source-map.js';
|
|
|
25
23
|
export { Worker, WorkerOptions, __ΩWorkerOptions, createWorker } from './utilities/worker.js';
|
|
26
24
|
export { writeFile } from './utilities/write-file.js';
|
|
27
25
|
import 'jiti';
|
|
28
|
-
import '
|
|
29
|
-
import '@stryke/types/package-json';
|
|
30
|
-
import 'semver';
|
|
31
|
-
import 'ts-morph';
|
|
32
|
-
import 'unplugin';
|
|
33
|
-
import './internal-1qCyw7bA.js';
|
|
34
|
-
import './api-CDUN9en8.js';
|
|
35
|
-
import './tsconfig-Bz-CiFqD.js';
|
|
36
|
-
import '@stryke/types/tsconfig';
|
|
37
|
-
import 'typescript';
|
|
38
|
-
import '@stryke/types/configuration';
|
|
26
|
+
import './config-D-WwQL-4.js';
|
|
39
27
|
import '@storm-software/build-tools/types';
|
|
40
28
|
import '@storm-software/config-tools/types';
|
|
41
29
|
import '@storm-software/config/types';
|
|
42
30
|
import '@stryke/types/base';
|
|
31
|
+
import '@stryke/types/configuration';
|
|
43
32
|
import '@stryke/types/file';
|
|
44
33
|
import 'c12';
|
|
45
34
|
import 'vite';
|
|
@@ -51,347 +40,20 @@ import 'esbuild';
|
|
|
51
40
|
import 'rolldown';
|
|
52
41
|
import 'rollup';
|
|
53
42
|
import 'webpack';
|
|
43
|
+
import '@stryke/env/get-env-paths';
|
|
44
|
+
import '@stryke/types/package-json';
|
|
54
45
|
import 'jest-worker';
|
|
55
46
|
import 'magic-string';
|
|
47
|
+
import 'semver';
|
|
48
|
+
import 'ts-morph';
|
|
49
|
+
import 'unplugin';
|
|
50
|
+
import './fs-Dg-aTfiN.js';
|
|
56
51
|
import '@stryke/fs/resolve';
|
|
57
52
|
import '@stryke/types/array';
|
|
58
|
-
import './
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
*/
|
|
66
|
-
declare class VirtualFileSystem implements VirtualFileSystemInterface {
|
|
67
|
-
#private;
|
|
68
|
-
/**
|
|
69
|
-
* Creates a virtual file system (VFS) that is backed up to a Cap'n Proto message buffer.
|
|
70
|
-
*
|
|
71
|
-
* @param context - The context of the virtual file system, typically containing options and logging functions.
|
|
72
|
-
* @returns A promise that resolves to a new virtual file system instance.
|
|
73
|
-
*/
|
|
74
|
-
static create(context: Context): Promise<VirtualFileSystem>;
|
|
75
|
-
/**
|
|
76
|
-
* Synchronously creates a virtual file system (VFS) that is backed up to a Cap'n Proto message buffer.
|
|
77
|
-
*
|
|
78
|
-
* @param context - The context of the virtual file system, typically containing options and logging functions.
|
|
79
|
-
* @returns A new virtual file system instance.
|
|
80
|
-
*/
|
|
81
|
-
static createSync(context: Context): VirtualFileSystem;
|
|
82
|
-
/**
|
|
83
|
-
* A map of file ids to their metadata.
|
|
84
|
-
*/
|
|
85
|
-
get metadata(): Readonly<Record<string, VirtualFileMetadata>>;
|
|
86
|
-
/**
|
|
87
|
-
* A map of file paths to their module ids.
|
|
88
|
-
*/
|
|
89
|
-
get ids(): Readonly<Record<string, string>>;
|
|
90
|
-
/**
|
|
91
|
-
* A map of module ids to their file paths.
|
|
92
|
-
*/
|
|
93
|
-
get paths(): Readonly<Record<string, string>>;
|
|
94
|
-
protected get resolverCache(): FlatCache;
|
|
95
|
-
/**
|
|
96
|
-
* Creates a new instance of the {@link VirtualFileSystem}.
|
|
97
|
-
*
|
|
98
|
-
* @param context - The context of the virtual file system, typically containing options and logging functions.
|
|
99
|
-
* @param fs - A buffer containing the serialized virtual file system data.
|
|
100
|
-
*/
|
|
101
|
-
private constructor();
|
|
102
|
-
/**
|
|
103
|
-
* Check if a path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
104
|
-
*
|
|
105
|
-
* @param pathOrId - The path or id to check.
|
|
106
|
-
* @returns Whether the path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
107
|
-
*/
|
|
108
|
-
isVirtual(pathOrId: string, importer?: string, options?: ResolveOptions): boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Check if a path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
111
|
-
*
|
|
112
|
-
* @param pathOrId - The path or id to check.
|
|
113
|
-
* @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
114
|
-
*/
|
|
115
|
-
isPhysical(pathOrId: string, importer?: string, options?: ResolveOptions): boolean;
|
|
116
|
-
/**
|
|
117
|
-
* Lists files in a given path.
|
|
118
|
-
*
|
|
119
|
-
* @param path - The path to list files from.
|
|
120
|
-
* @param options - Options for listing files, such as encoding and recursion.
|
|
121
|
-
* @returns An array of file names in the specified path.
|
|
122
|
-
*/
|
|
123
|
-
readdirSync(path: fs.PathLike, options?: {
|
|
124
|
-
encoding: BufferEncoding | null;
|
|
125
|
-
withFileTypes?: false | undefined;
|
|
126
|
-
recursive?: boolean | undefined;
|
|
127
|
-
} | BufferEncoding): string[];
|
|
128
|
-
/**
|
|
129
|
-
* Removes a file in the virtual file system (VFS).
|
|
130
|
-
*
|
|
131
|
-
* @param path - The path to create the directory at.
|
|
132
|
-
*/
|
|
133
|
-
unlinkSync(path: string, options?: ResolveFSOptions): void;
|
|
134
|
-
/**
|
|
135
|
-
* Removes a file in the virtual file system (VFS).
|
|
136
|
-
*
|
|
137
|
-
* @param path - The path to create the directory at.
|
|
138
|
-
*/
|
|
139
|
-
unlink(path: string, options?: ResolveFSOptions): Promise<void>;
|
|
140
|
-
/**
|
|
141
|
-
* Removes a directory in the virtual file system (VFS).
|
|
142
|
-
*
|
|
143
|
-
* @param path - The path to create the directory at.
|
|
144
|
-
* @param options - Options for creating the directory.
|
|
145
|
-
*/
|
|
146
|
-
rmdirSync(path: string, options?: fs.RmDirOptions & ResolveFSOptions): void;
|
|
147
|
-
/**
|
|
148
|
-
* Removes a directory in the virtual file system (VFS).
|
|
149
|
-
*
|
|
150
|
-
* @param path - The path to create the directory at.
|
|
151
|
-
* @param options - Options for creating the directory.
|
|
152
|
-
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
153
|
-
*/
|
|
154
|
-
rmdir(path: string, options?: fs.RmDirOptions & ResolveFSOptions): Promise<void>;
|
|
155
|
-
/**
|
|
156
|
-
* Removes a file in the virtual file system (VFS).
|
|
157
|
-
*
|
|
158
|
-
* @param path - The path to the file to remove.
|
|
159
|
-
* @param options - Options for removing the file.
|
|
160
|
-
* @returns A promise that resolves when the file is removed.
|
|
161
|
-
*/
|
|
162
|
-
rm(path: string, options?: fs.RmOptions & ResolveFSOptions): Promise<void>;
|
|
163
|
-
/**
|
|
164
|
-
* Synchronously removes a file or directory in the virtual file system (VFS).
|
|
165
|
-
*
|
|
166
|
-
* @param path - The path to the file or directory to remove.
|
|
167
|
-
* @param options - Options for removing the file or directory.
|
|
168
|
-
*/
|
|
169
|
-
rmSync(path: string, options?: fs.RmOptions & ResolveFSOptions): void;
|
|
170
|
-
/**
|
|
171
|
-
* Creates a directory in the virtual file system (VFS).
|
|
172
|
-
*
|
|
173
|
-
* @param path - The path to create the directory at.
|
|
174
|
-
* @param options - Options for creating the directory.
|
|
175
|
-
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
176
|
-
*/
|
|
177
|
-
mkdirSync(path: string, options?: MakeDirectoryOptions): string | undefined;
|
|
178
|
-
/**
|
|
179
|
-
* Creates a directory in the virtual file system (VFS).
|
|
180
|
-
*
|
|
181
|
-
* @param path - The path to create the directory at.
|
|
182
|
-
* @param options - Options for creating the directory.
|
|
183
|
-
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
184
|
-
*/
|
|
185
|
-
mkdir(path: string, options?: MakeDirectoryOptions): Promise<string | undefined>;
|
|
186
|
-
/**
|
|
187
|
-
* Glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
188
|
-
*
|
|
189
|
-
* @param patterns - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
190
|
-
* @returns An array of file paths matching the provided pattern(s)
|
|
191
|
-
*/
|
|
192
|
-
glob(patterns: string | string[]): Promise<string[]>;
|
|
193
|
-
/**
|
|
194
|
-
* Synchronously glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
195
|
-
*
|
|
196
|
-
* @param patterns - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
197
|
-
* @returns An array of file paths matching the provided pattern(s)
|
|
198
|
-
*/
|
|
199
|
-
globSync(patterns: string | string[]): string[];
|
|
200
|
-
/**
|
|
201
|
-
* Moves a file from one path to another in the virtual file system (VFS).
|
|
202
|
-
*
|
|
203
|
-
* @param srcPath - The source path to move
|
|
204
|
-
* @param destPath - The destination path to move to
|
|
205
|
-
*/
|
|
206
|
-
move(srcPath: string, destPath: string): Promise<void>;
|
|
207
|
-
/**
|
|
208
|
-
* Synchronously moves a file from one path to another in the virtual file system (VFS).
|
|
209
|
-
*
|
|
210
|
-
* @param srcPath - The source path to move
|
|
211
|
-
* @param destPath - The destination path to move to
|
|
212
|
-
*/
|
|
213
|
-
moveSync(srcPath: string, destPath: string): void;
|
|
214
|
-
/**
|
|
215
|
-
* Copies a file from one path to another in the virtual file system (VFS).
|
|
216
|
-
*
|
|
217
|
-
* @param srcPath - The source path to copy
|
|
218
|
-
* @param destPath - The destination path to copy to
|
|
219
|
-
*/
|
|
220
|
-
copy(srcPath: string, destPath: string): Promise<void>;
|
|
221
|
-
/**
|
|
222
|
-
* Synchronously copies a file from one path to another in the virtual file system (VFS).
|
|
223
|
-
*
|
|
224
|
-
* @param srcPath - The source path to copy
|
|
225
|
-
* @param destPath - The destination path to copy to
|
|
226
|
-
*/
|
|
227
|
-
copySync(srcPath: string, destPath: string): void;
|
|
228
|
-
/**
|
|
229
|
-
* Lists files in a given path.
|
|
230
|
-
*
|
|
231
|
-
* @param pathOrId - The path to list files from.
|
|
232
|
-
* @param options - Options for listing files, such as encoding and recursion.
|
|
233
|
-
* @returns An array of file names in the specified path.
|
|
234
|
-
*/
|
|
235
|
-
readdir(pathOrId: string, options?: {
|
|
236
|
-
encoding: BufferEncoding | null;
|
|
237
|
-
withFileTypes?: false | undefined;
|
|
238
|
-
recursive?: boolean | undefined;
|
|
239
|
-
} | BufferEncoding): Promise<string[]>;
|
|
240
|
-
/**
|
|
241
|
-
* Asynchronously reads a file from the virtual file system (VFS).
|
|
242
|
-
*
|
|
243
|
-
* @param pathOrId - The path or ID of the file to read.
|
|
244
|
-
* @returns A promise that resolves to the contents of the file as a string, or undefined if the file does not exist.
|
|
245
|
-
*/
|
|
246
|
-
readFile(pathOrId: string, options?: (ObjectEncodingOptions & {
|
|
247
|
-
flag?: string | undefined;
|
|
248
|
-
}) | BufferEncoding): Promise<string | undefined>;
|
|
249
|
-
/**
|
|
250
|
-
* Synchronously reads a file from the virtual file system (VFS).
|
|
251
|
-
*
|
|
252
|
-
* @param pathOrId - The path or ID of the file to read.
|
|
253
|
-
* @returns The contents of the file as a string, or undefined if the file does not exist.
|
|
254
|
-
*/
|
|
255
|
-
readFileSync(pathOrId: string, options?: (fs.ObjectEncodingOptions & {
|
|
256
|
-
flag?: string | undefined;
|
|
257
|
-
}) | BufferEncoding | null): string | undefined;
|
|
258
|
-
/**
|
|
259
|
-
* Writes a file to the virtual file system (VFS).
|
|
260
|
-
*
|
|
261
|
-
* @param path - The path to the file.
|
|
262
|
-
* @param data - The contents of the file.
|
|
263
|
-
* @param options - Optional parameters for writing the file.
|
|
264
|
-
* @returns A promise that resolves when the file is written.
|
|
265
|
-
*/
|
|
266
|
-
writeFile(path: string, data?: WriteFileData, options?: WriteFileOptions): Promise<void>;
|
|
267
|
-
/**
|
|
268
|
-
* Synchronously writes a file to the virtual file system (VFS).
|
|
269
|
-
*
|
|
270
|
-
* @param path - The file to write.
|
|
271
|
-
* @param data - The contents of the file.
|
|
272
|
-
* @param options - Optional parameters for writing the file.
|
|
273
|
-
*/
|
|
274
|
-
writeFileSync(path: string, data?: WriteFileData, options?: WriteFileOptions): void;
|
|
275
|
-
/**
|
|
276
|
-
* Synchronously checks if a file exists in the virtual file system (VFS).
|
|
277
|
-
*
|
|
278
|
-
* @param pathOrId - The path or ID of the file to check.
|
|
279
|
-
* @returns `true` if the file exists, otherwise `false`.
|
|
280
|
-
*/
|
|
281
|
-
existsSync(pathOrId: string): boolean;
|
|
282
|
-
/**
|
|
283
|
-
* Retrieves the metadata of a file in the virtual file system (VFS).
|
|
284
|
-
*
|
|
285
|
-
* @param pathOrId - The path or ID of the file to retrieve metadata for.
|
|
286
|
-
* @returns The metadata of the file, or undefined if the file does not exist.
|
|
287
|
-
*/
|
|
288
|
-
getMetadata(pathOrId: string): VirtualFileMetadata | undefined;
|
|
289
|
-
/**
|
|
290
|
-
* Checks if a file exists in the virtual file system (VFS).
|
|
291
|
-
*
|
|
292
|
-
* @remarks
|
|
293
|
-
* This is a base method used by {@link existsSync} - it does not try to resolve the path prior to checking if it exists or not.
|
|
294
|
-
*
|
|
295
|
-
* @param pathOrId - The path of the file to check.
|
|
296
|
-
* @returns `true` if the file exists, otherwise `false`.
|
|
297
|
-
*/
|
|
298
|
-
isFile(pathOrId: string): boolean;
|
|
299
|
-
/**
|
|
300
|
-
* Checks if a directory exists in the virtual file system (VFS).
|
|
301
|
-
*
|
|
302
|
-
* @param pathOrId - The path of the directory to check.
|
|
303
|
-
* @returns `true` if the directory exists, otherwise `false`.
|
|
304
|
-
*/
|
|
305
|
-
isDirectory(pathOrId: string): boolean;
|
|
306
|
-
/**
|
|
307
|
-
* Retrieves the status of a file in the virtual file system (VFS).
|
|
308
|
-
*
|
|
309
|
-
* @param pathOrId - The path or ID of the file to retrieve status for.
|
|
310
|
-
* @returns A promise that resolves to the file's status information, or false if the file does not exist.
|
|
311
|
-
*/
|
|
312
|
-
stat(pathOrId: string, options?: fs.StatOptions & {
|
|
313
|
-
bigint?: false | undefined;
|
|
314
|
-
}): Promise<Stats>;
|
|
315
|
-
/**
|
|
316
|
-
* Synchronously retrieves the status of a file in the virtual file system (VFS).
|
|
317
|
-
*
|
|
318
|
-
* @param pathOrId - The path or ID of the file to retrieve status for.
|
|
319
|
-
* @returns The file's status information, or false if the file does not exist.
|
|
320
|
-
*/
|
|
321
|
-
statSync(pathOrId: string): Stats;
|
|
322
|
-
/**
|
|
323
|
-
* Retrieves the status of a symbolic link in the virtual file system (VFS).
|
|
324
|
-
*
|
|
325
|
-
* @param pathOrId - The path or ID of the symbolic link to retrieve status for.
|
|
326
|
-
* @returns A promise that resolves to the symbolic link's status information, or false if the link does not exist.
|
|
327
|
-
*/
|
|
328
|
-
lstat(pathOrId: string, options?: fs.StatOptions & {
|
|
329
|
-
bigint?: false | undefined;
|
|
330
|
-
}): Promise<Stats>;
|
|
331
|
-
/**
|
|
332
|
-
* Synchronously retrieves the status of a symbolic link in the virtual file system (VFS).
|
|
333
|
-
*
|
|
334
|
-
* @param pathOrId - The path or ID of the symbolic link to retrieve status for.
|
|
335
|
-
* @returns The symbolic link's status information, or false if the link does not exist.
|
|
336
|
-
*/
|
|
337
|
-
lstatSync(pathOrId: string, options?: StatSyncOptions & {
|
|
338
|
-
bigint?: false | undefined;
|
|
339
|
-
throwIfNoEntry: false;
|
|
340
|
-
}): Stats | undefined;
|
|
341
|
-
/**
|
|
342
|
-
* Resolves a path or ID to its real path in the virtual file system (VFS).
|
|
343
|
-
*
|
|
344
|
-
* @param pathOrId - The path or ID to resolve.
|
|
345
|
-
* @returns The resolved real path if it exists, otherwise undefined.
|
|
346
|
-
*/
|
|
347
|
-
realpathSync(pathOrId: string): string;
|
|
348
|
-
/**
|
|
349
|
-
* A helper function to resolve modules in the virtual file system (VFS).
|
|
350
|
-
*
|
|
351
|
-
* @remarks
|
|
352
|
-
* This function can be used to resolve modules relative to the project root directory.
|
|
353
|
-
*
|
|
354
|
-
* @example
|
|
355
|
-
* ```ts
|
|
356
|
-
* const resolved = await context.resolvePath("some-module", "/path/to/importer");
|
|
357
|
-
* ```
|
|
358
|
-
*
|
|
359
|
-
* @param id - The module to resolve.
|
|
360
|
-
* @param importer - An optional path to the importer module.
|
|
361
|
-
* @param options - Additional resolution options.
|
|
362
|
-
* @returns A promise that resolves to the resolved module path.
|
|
363
|
-
*/
|
|
364
|
-
resolve(id: string, importer?: string, options?: ResolveOptions): Promise<string | undefined>;
|
|
365
|
-
/**
|
|
366
|
-
* A synchronous helper function to resolve modules using the Jiti resolver
|
|
367
|
-
*
|
|
368
|
-
* @remarks
|
|
369
|
-
* This function can be used to resolve modules relative to the project root directory.
|
|
370
|
-
*
|
|
371
|
-
* @example
|
|
372
|
-
* ```ts
|
|
373
|
-
* const resolvedPath = context.resolveSync("some-module", "/path/to/importer");
|
|
374
|
-
* ```
|
|
375
|
-
*
|
|
376
|
-
* @param id - The module to resolve.
|
|
377
|
-
* @param importer - An optional path to the importer module.
|
|
378
|
-
* @param options - Additional resolution options.
|
|
379
|
-
* @returns The resolved module path.
|
|
380
|
-
*/
|
|
381
|
-
resolveSync(id: string, importer?: string, options?: ResolveOptions): string | undefined;
|
|
382
|
-
/**
|
|
383
|
-
* Disposes of the virtual file system (VFS) by saving its state to disk.
|
|
384
|
-
*/
|
|
385
|
-
dispose(): Promise<void>;
|
|
386
|
-
/**
|
|
387
|
-
* Initializes the virtual file system (VFS) by patching the file system module if necessary.
|
|
388
|
-
*/
|
|
389
|
-
[__VFS_PATCH__](): void;
|
|
390
|
-
/**
|
|
391
|
-
* Reverts the file system module to its original state if it was previously patched.
|
|
392
|
-
*/
|
|
393
|
-
[__VFS_REVERT__](): void;
|
|
394
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
export { VirtualFileSystem };
|
|
53
|
+
import './tsconfig-Bz-CiFqD.js';
|
|
54
|
+
import '@stryke/types/tsconfig';
|
|
55
|
+
import 'typescript';
|
|
56
|
+
import './internal-W5pvS6e9.js';
|
|
57
|
+
import './api-CpJJXdtL.js';
|
|
58
|
+
import 'flat-cache';
|
|
59
|
+
import './unplugin-Cg2NoKj0.js';
|
package/dist/lib/index.js
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
import './chunk-I2DQRMX3.js';
|
|
2
|
-
export { resolve } from './chunk-
|
|
2
|
+
export { resolve } from './chunk-7OVZZWGY.js';
|
|
3
3
|
export { generateSourceMap } from './chunk-NST5TNW6.js';
|
|
4
4
|
export { Worker, createWorker } from './chunk-EQKS6CLU.js';
|
|
5
5
|
import './chunk-H5JWMXTZ.js';
|
|
6
|
-
export { createUnpluginFactory } from './chunk-
|
|
6
|
+
export { createUnpluginFactory } from './chunk-WLDQUTFD.js';
|
|
7
|
+
export { getBaseFileHeader, getFileHeader } from './chunk-GANVMM73.js';
|
|
7
8
|
export { writeFile } from './chunk-TANQDHYY.js';
|
|
8
|
-
export { createUnplugin } from './chunk-
|
|
9
|
+
export { createUnplugin } from './chunk-WGSZ4X6N.js';
|
|
9
10
|
export { combineContexts } from './chunk-32Q2PG5D.js';
|
|
10
|
-
export { bundle } from './chunk-
|
|
11
|
+
export { bundle } from './chunk-DLVVEHMU.js';
|
|
11
12
|
export { getCache, setCache } from './chunk-6RLV3FIS.js';
|
|
12
|
-
export { getBaseFileHeader, getFileHeader } from './chunk-GANVMM73.js';
|
|
13
13
|
import './chunk-NYNHNTHT.js';
|
|
14
|
+
import './chunk-NQAHFTUW.js';
|
|
14
15
|
import './chunk-FFT4PWRM.js';
|
|
16
|
+
export { createImportTransformer } from './chunk-A2NW7WAN.js';
|
|
15
17
|
export { isolatedDeclarations } from './chunk-NDYKRNPQ.js';
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export { PowerlinesEnvironmentContext } from './chunk-SYF7QG2J.js';
|
|
18
|
+
export { PowerlinesAPIContext } from './chunk-DYLE5FD3.js';
|
|
19
|
+
export { PowerlinesEnvironmentContext } from './chunk-J3BW52BU.js';
|
|
19
20
|
export { createPluginContext } from './chunk-KFJCWNVG.js';
|
|
20
|
-
export { PowerlinesContext
|
|
21
|
-
export { CACHE_HASH_LENGTH, PROJECT_ROOT_HASH_LENGTH, discoverTemplates, getPersistedMeta, getPrefixedProjectRootHash, writeMetaFile } from './chunk-
|
|
21
|
+
export { PowerlinesContext } from './chunk-NIRFKQAD.js';
|
|
22
|
+
export { CACHE_HASH_LENGTH, PROJECT_ROOT_HASH_LENGTH, discoverTemplates, getPersistedMeta, getPrefixedProjectRootHash, writeMetaFile } from './chunk-OEF6EHQV.js';
|
|
23
|
+
export { VirtualFileSystem } from './chunk-OBA5U4Y2.js';
|
|
24
|
+
import './chunk-L56XA427.js';
|
|
25
|
+
import './chunk-ONETLSPO.js';
|
|
26
|
+
import './chunk-VHCBD2IS.js';
|
|
27
|
+
import './chunk-KFDNKOXM.js';
|
|
28
|
+
export { VirtualFileSystemHost, createProgram } from './chunk-4W6WV35V.js';
|
|
22
29
|
export { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigFilePath, isIncludeMatchFound, isMatchFound, tryTsconfigFilePath } from './chunk-ZGMEHSNN.js';
|
|
23
|
-
export { createProgram } from './chunk-YQ3ODCHV.js';
|
|
24
30
|
export { loadUserConfigFile, loadWorkspaceConfig } from './chunk-XBM7FHNK.js';
|
|
25
31
|
export { createLog, extendLog } from './chunk-ENRLU4UR.js';
|
|
26
32
|
export { getMagicString, getSourceFile, getString } from './chunk-M263EZ4F.js';
|
|
27
|
-
import './chunk-
|
|
28
|
-
export { getUniqueEntries, resolveEntries, resolveEntriesSync, resolveEntry, resolveEntryInput, resolveEntryInputFile, resolveEntryOutput, resolveVirtualEntry } from './chunk-
|
|
33
|
+
import './chunk-WOKPJMGJ.js';
|
|
34
|
+
export { getUniqueEntries, resolveEntries, resolveEntriesSync, resolveEntry, resolveEntryInput, resolveEntryInputFile, resolveEntryOutput, resolveVirtualEntry } from './chunk-N5YLKWC2.js';
|
|
29
35
|
import './chunk-SHUYVCID.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import {
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-CCOhyMZo.cjs';
|
|
2
|
+
import { f as ResolvedConfig, g as EnvironmentContext, i as PluginContext, m as HookKeys, q as InferHookParameters, r as InferHookReturnType } from './config-Cqxh4V21.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Internal fields and methods for internal contexts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import {
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-CpJJXdtL.js';
|
|
2
|
+
import { f as ResolvedConfig, g as EnvironmentContext, i as PluginContext, m as HookKeys, q as InferHookParameters, r as InferHookReturnType } from './config-D-WwQL-4.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Internal fields and methods for internal contexts
|
package/dist/lib/logger.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
2
|
-
import { L as LogFn,
|
|
2
|
+
import { L as LogFn, W as WorkspaceConfig } from './config-Cqxh4V21.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
5
5
|
import '@stryke/types/base';
|
|
@@ -23,8 +23,8 @@ import 'magic-string';
|
|
|
23
23
|
import 'semver';
|
|
24
24
|
import 'ts-morph';
|
|
25
25
|
import 'unplugin';
|
|
26
|
+
import './fs-Dg-aTfiN.cjs';
|
|
26
27
|
import '@stryke/fs/resolve';
|
|
27
|
-
import 'node:fs';
|
|
28
28
|
import '@stryke/types/array';
|
|
29
29
|
import './tsconfig-Bz-CiFqD.cjs';
|
|
30
30
|
import '@stryke/types/tsconfig';
|
package/dist/lib/logger.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
2
|
-
import { L as LogFn,
|
|
2
|
+
import { L as LogFn, W as WorkspaceConfig } from './config-D-WwQL-4.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
5
5
|
import '@stryke/types/base';
|
|
@@ -23,8 +23,8 @@ import 'magic-string';
|
|
|
23
23
|
import 'semver';
|
|
24
24
|
import 'ts-morph';
|
|
25
25
|
import 'unplugin';
|
|
26
|
+
import './fs-Dg-aTfiN.js';
|
|
26
27
|
import '@stryke/fs/resolve';
|
|
27
|
-
import 'node:fs';
|
|
28
28
|
import '@stryke/types/array';
|
|
29
29
|
import './tsconfig-Bz-CiFqD.js';
|
|
30
30
|
import '@stryke/types/tsconfig';
|
|
@@ -1,49 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
3
|
+
var chunk3T56KQ7U_cjs = require('../chunk-3T56KQ7U.cjs');
|
|
4
|
+
require('../chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
|
-
function isDynamicImport(node) {
|
|
7
|
-
return typescript.isCallExpression(node) && node.expression.kind === typescript.SyntaxKind.ImportKeyword;
|
|
8
|
-
}
|
|
9
|
-
chunkUSNT2KNT_cjs.__name(isDynamicImport, "isDynamicImport");
|
|
10
|
-
function createImportTransformer(context) {
|
|
11
|
-
return (ctx) => {
|
|
12
|
-
return (sourceFile) => {
|
|
13
|
-
const visitor = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((node) => {
|
|
14
|
-
let importPath;
|
|
15
|
-
if ((typescript.isImportDeclaration(node) || typescript.isExportDeclaration(node)) && node.moduleSpecifier) {
|
|
16
|
-
const importPathWithQuotes = node.moduleSpecifier.getText(sourceFile);
|
|
17
|
-
importPath = importPathWithQuotes.substr(1, importPathWithQuotes.length - 2);
|
|
18
|
-
} else if (isDynamicImport(node)) {
|
|
19
|
-
const importPathWithQuotes = node.arguments[0].getText(sourceFile);
|
|
20
|
-
importPath = importPathWithQuotes.substr(1, importPathWithQuotes.length - 2);
|
|
21
|
-
} else if (typescript.isImportTypeNode(node) && typescript.isLiteralTypeNode(node.argument) && typescript.isStringLiteral(node.argument.literal)) {
|
|
22
|
-
importPath = node.argument.literal.text;
|
|
23
|
-
}
|
|
24
|
-
if (importPath) {
|
|
25
|
-
const resolvedImportPath = context.fs.resolveSync(importPath) || importPath;
|
|
26
|
-
if (resolvedImportPath !== importPath) {
|
|
27
|
-
if (typescript.isImportDeclaration(node)) {
|
|
28
|
-
return ctx.factory.updateImportDeclaration(node, node.modifiers, node.importClause, ctx.factory.createStringLiteral(resolvedImportPath), node.attributes);
|
|
29
|
-
} else if (typescript.isExportDeclaration(node)) {
|
|
30
|
-
return ctx.factory.updateExportDeclaration(node, node.modifiers, node.isTypeOnly, node.exportClause, ctx.factory.createStringLiteral(resolvedImportPath), node.attributes);
|
|
31
|
-
} else if (isDynamicImport(node)) {
|
|
32
|
-
return ctx.factory.updateCallExpression(node, node.expression, node.typeArguments, ctx.factory.createNodeArray([
|
|
33
|
-
ctx.factory.createStringLiteral(resolvedImportPath)
|
|
34
|
-
]));
|
|
35
|
-
} else if (typescript.isImportTypeNode(node)) {
|
|
36
|
-
return ctx.factory.updateImportTypeNode(node, ctx.factory.createLiteralTypeNode(ctx.factory.createStringLiteral(resolvedImportPath)), node.attributes, node.qualifier, node.typeArguments, node.isTypeOf);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return node;
|
|
40
|
-
}
|
|
41
|
-
return typescript.visitEachChild(node, visitor, ctx);
|
|
42
|
-
}, "visitor");
|
|
43
|
-
return typescript.visitNode(sourceFile, visitor);
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
chunkUSNT2KNT_cjs.__name(createImportTransformer, "createImportTransformer");
|
|
48
6
|
|
|
49
|
-
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "createImportTransformer", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunk3T56KQ7U_cjs.createImportTransformer; }
|
|
11
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TransformerFactory, SourceFile } from 'typescript';
|
|
2
|
-
import { C as Context } from '../config-
|
|
2
|
+
import { C as Context } from '../config-Cqxh4V21.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -24,8 +24,8 @@ import 'magic-string';
|
|
|
24
24
|
import 'semver';
|
|
25
25
|
import 'ts-morph';
|
|
26
26
|
import 'unplugin';
|
|
27
|
+
import '../fs-Dg-aTfiN.cjs';
|
|
27
28
|
import '@stryke/fs/resolve';
|
|
28
|
-
import 'node:fs';
|
|
29
29
|
import '@stryke/types/array';
|
|
30
30
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
31
31
|
import '@stryke/types/tsconfig';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TransformerFactory, SourceFile } from 'typescript';
|
|
2
|
-
import { C as Context } from '../config-
|
|
2
|
+
import { C as Context } from '../config-D-WwQL-4.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -24,8 +24,8 @@ import 'magic-string';
|
|
|
24
24
|
import 'semver';
|
|
25
25
|
import 'ts-morph';
|
|
26
26
|
import 'unplugin';
|
|
27
|
+
import '../fs-Dg-aTfiN.js';
|
|
27
28
|
import '@stryke/fs/resolve';
|
|
28
|
-
import 'node:fs';
|
|
29
29
|
import '@stryke/types/array';
|
|
30
30
|
import '../tsconfig-Bz-CiFqD.js';
|
|
31
31
|
import '@stryke/types/tsconfig';
|
|
@@ -1,47 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
function isDynamicImport(node) {
|
|
5
|
-
return isCallExpression(node) && node.expression.kind === SyntaxKind.ImportKeyword;
|
|
6
|
-
}
|
|
7
|
-
__name(isDynamicImport, "isDynamicImport");
|
|
8
|
-
function createImportTransformer(context) {
|
|
9
|
-
return (ctx) => {
|
|
10
|
-
return (sourceFile) => {
|
|
11
|
-
const visitor = /* @__PURE__ */ __name((node) => {
|
|
12
|
-
let importPath;
|
|
13
|
-
if ((isImportDeclaration(node) || isExportDeclaration(node)) && node.moduleSpecifier) {
|
|
14
|
-
const importPathWithQuotes = node.moduleSpecifier.getText(sourceFile);
|
|
15
|
-
importPath = importPathWithQuotes.substr(1, importPathWithQuotes.length - 2);
|
|
16
|
-
} else if (isDynamicImport(node)) {
|
|
17
|
-
const importPathWithQuotes = node.arguments[0].getText(sourceFile);
|
|
18
|
-
importPath = importPathWithQuotes.substr(1, importPathWithQuotes.length - 2);
|
|
19
|
-
} else if (isImportTypeNode(node) && isLiteralTypeNode(node.argument) && isStringLiteral(node.argument.literal)) {
|
|
20
|
-
importPath = node.argument.literal.text;
|
|
21
|
-
}
|
|
22
|
-
if (importPath) {
|
|
23
|
-
const resolvedImportPath = context.fs.resolveSync(importPath) || importPath;
|
|
24
|
-
if (resolvedImportPath !== importPath) {
|
|
25
|
-
if (isImportDeclaration(node)) {
|
|
26
|
-
return ctx.factory.updateImportDeclaration(node, node.modifiers, node.importClause, ctx.factory.createStringLiteral(resolvedImportPath), node.attributes);
|
|
27
|
-
} else if (isExportDeclaration(node)) {
|
|
28
|
-
return ctx.factory.updateExportDeclaration(node, node.modifiers, node.isTypeOnly, node.exportClause, ctx.factory.createStringLiteral(resolvedImportPath), node.attributes);
|
|
29
|
-
} else if (isDynamicImport(node)) {
|
|
30
|
-
return ctx.factory.updateCallExpression(node, node.expression, node.typeArguments, ctx.factory.createNodeArray([
|
|
31
|
-
ctx.factory.createStringLiteral(resolvedImportPath)
|
|
32
|
-
]));
|
|
33
|
-
} else if (isImportTypeNode(node)) {
|
|
34
|
-
return ctx.factory.updateImportTypeNode(node, ctx.factory.createLiteralTypeNode(ctx.factory.createStringLiteral(resolvedImportPath)), node.attributes, node.qualifier, node.typeArguments, node.isTypeOf);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return node;
|
|
38
|
-
}
|
|
39
|
-
return visitEachChild(node, visitor, ctx);
|
|
40
|
-
}, "visitor");
|
|
41
|
-
return visitNode(sourceFile, visitor);
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
__name(createImportTransformer, "createImportTransformer");
|
|
46
|
-
|
|
47
|
-
export { createImportTransformer };
|
|
1
|
+
export { createImportTransformer } from '../chunk-A2NW7WAN.js';
|
|
2
|
+
import '../chunk-SHUYVCID.js';
|