powerlines 0.19.5 → 0.21.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.cjs +4 -4
- package/dist/api.d.cts +7 -8
- package/dist/api.d.ts +7 -8
- package/dist/api.js +3 -3
- package/dist/astro.cjs +10 -10
- package/dist/astro.d.cts +1 -2
- package/dist/astro.d.ts +1 -2
- package/dist/astro.js +7 -7
- package/dist/{chunk-MLAYLHZO.js → chunk-237NITCY.js} +20 -5
- package/dist/{chunk-5PRY6OJM.cjs → chunk-2HNC5JVK.cjs} +2 -2
- package/dist/{chunk-AEJIVPUZ.js → chunk-2Q2PSPZK.js} +1 -1
- package/dist/{chunk-JPWBN72J.js → chunk-3FS7K4DZ.js} +1 -1
- package/dist/{chunk-BSGWY4AP.cjs → chunk-3JH36WUJ.cjs} +2 -2
- package/dist/{chunk-ZOUGUAQY.cjs → chunk-44UTUCBG.cjs} +34 -16
- package/dist/{chunk-KMELWYHW.cjs → chunk-6XRDZOE3.cjs} +967 -664
- package/dist/{chunk-YQZXG4X6.cjs → chunk-7C2NEC7D.cjs} +2 -2
- package/dist/{chunk-GQM2JCO3.js → chunk-A5GTERYN.js} +2 -2
- package/dist/chunk-B4KLWFY6.cjs +32 -0
- package/dist/{chunk-I4LLZ5BI.js → chunk-C5TKY75S.js} +1 -1
- package/dist/{chunk-TK6CN2KT.cjs → chunk-DMXXNXLS.cjs} +4 -4
- package/dist/{chunk-MCDMY6GK.cjs → chunk-F4BD5CXH.cjs} +2 -2
- package/dist/chunk-GRAVJX3I.js +29 -0
- package/dist/chunk-HV7SHEHD.cjs +118 -0
- package/dist/{chunk-WJ4CZKXY.js → chunk-JKBJF3UI.js} +1 -1
- package/dist/{chunk-BHPTTRBA.js → chunk-L4AXJFX2.js} +32 -14
- package/dist/{chunk-Z63SQZUB.cjs → chunk-LKYBC6DX.cjs} +4 -4
- package/dist/{chunk-RR7EC4RF.js → chunk-M6XGEVJY.js} +1 -1
- package/dist/{chunk-PAJB5K7A.js → chunk-NZXMP4J5.js} +3 -2
- package/dist/{chunk-GFINPIIK.js → chunk-OZU47JET.js} +1000 -704
- package/dist/{chunk-FCTNMPJF.cjs → chunk-PAMSESZV.cjs} +1 -1
- package/dist/chunk-PDFOF6ZP.js +112 -0
- package/dist/{chunk-7HKTQSUG.cjs → chunk-PJP4MECA.cjs} +4 -3
- package/dist/{chunk-OJSRHKHW.js → chunk-QQGXARP3.js} +1 -1
- package/dist/{chunk-ULFJBFI7.cjs → chunk-SQANNMRF.cjs} +22 -7
- package/dist/{chunk-HI3LNK6Q.js → chunk-SVDPKN3U.js} +1 -1
- package/dist/chunk-SVF4ATJR.cjs +8 -0
- package/dist/{chunk-A3FMGMBV.cjs → chunk-UVM4JAR3.cjs} +2 -2
- package/dist/{chunk-VICSRRKQ.js → chunk-WU7I52LM.js} +2 -2
- package/dist/{chunk-X5LPEBDE.cjs → chunk-WYJGOC3Y.cjs} +2 -2
- package/dist/{chunk-LIXKMZW5.cjs → chunk-YG5ORYN2.cjs} +2 -2
- package/dist/{chunk-HEG6IAVR.js → chunk-ZPOCM5XZ.js} +1 -1
- package/dist/chunk-ZWF7LZXE.js +5 -0
- package/dist/config.d.cts +1 -2
- package/dist/config.d.ts +1 -2
- package/dist/esbuild.cjs +9 -9
- package/dist/esbuild.d.cts +1 -2
- package/dist/esbuild.d.ts +1 -2
- package/dist/esbuild.js +6 -6
- package/dist/farm.cjs +5 -5
- package/dist/farm.d.cts +1 -2
- package/dist/farm.d.ts +1 -2
- package/dist/farm.js +4 -4
- package/dist/{hooks-C6t50M6a.d.cts → hooks-CJ1W5lrx.d.cts} +1 -1
- package/dist/{hooks-Bq2jUAKs.d.ts → hooks-CNEZpkMS.d.ts} +1 -1
- package/dist/index.cjs +45 -287
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +20 -244
- package/dist/lib/build/esbuild.cjs +5 -5
- package/dist/lib/build/esbuild.d.cts +3 -5
- package/dist/lib/build/esbuild.d.ts +3 -5
- package/dist/lib/build/esbuild.js +2 -2
- package/dist/lib/build/index.cjs +25 -25
- package/dist/lib/build/index.d.cts +3 -5
- package/dist/lib/build/index.d.ts +3 -5
- package/dist/lib/build/index.js +9 -9
- package/dist/lib/build/rolldown.cjs +3 -3
- package/dist/lib/build/rolldown.d.cts +1 -3
- package/dist/lib/build/rolldown.d.ts +1 -3
- package/dist/lib/build/rolldown.js +2 -2
- package/dist/lib/build/rollup.cjs +3 -3
- package/dist/lib/build/rollup.d.cts +1 -3
- package/dist/lib/build/rollup.d.ts +1 -3
- package/dist/lib/build/rollup.js +1 -1
- package/dist/lib/build/rspack.cjs +2 -2
- package/dist/lib/build/rspack.d.cts +1 -3
- package/dist/lib/build/rspack.d.ts +1 -3
- package/dist/lib/build/rspack.js +1 -1
- package/dist/lib/build/tsup.cjs +6 -6
- package/dist/lib/build/tsup.d.cts +1 -3
- package/dist/lib/build/tsup.d.ts +1 -3
- package/dist/lib/build/tsup.js +3 -3
- package/dist/lib/build/unbuild.cjs +5 -5
- package/dist/lib/build/unbuild.d.cts +2 -4
- package/dist/lib/build/unbuild.d.ts +2 -4
- package/dist/lib/build/unbuild.js +2 -2
- package/dist/lib/build/vite.cjs +5 -5
- package/dist/lib/build/vite.d.cts +1 -3
- package/dist/lib/build/vite.d.ts +1 -3
- package/dist/lib/build/vite.js +3 -3
- package/dist/lib/build/webpack.cjs +2 -2
- package/dist/lib/build/webpack.d.cts +1 -3
- package/dist/lib/build/webpack.d.ts +1 -3
- package/dist/lib/build/webpack.js +1 -1
- package/dist/lib/chunk-27VJFYDM.cjs +132 -0
- package/dist/lib/chunk-3G4C3YAU.js +124 -0
- package/dist/lib/{chunk-DX4TFRS3.js → chunk-43VJVIL2.js} +976 -681
- package/dist/lib/{chunk-5EXW3ZRC.cjs → chunk-4FX4VOLA.cjs} +25 -4
- package/dist/lib/{chunk-ADKYAHF5.js → chunk-5GM5UAUO.js} +32 -12
- package/dist/lib/{chunk-JB2JJXGW.js → chunk-5SADLYYK.js} +1 -1
- package/dist/lib/{chunk-KXCEN6Y4.js → chunk-5SP6QZLX.js} +1 -1
- package/dist/lib/{chunk-TNHDC2ZQ.cjs → chunk-7XHBIYIN.cjs} +1 -20
- package/dist/lib/{chunk-SM3S7DYW.js → chunk-BHDQZ6YX.js} +12 -2
- package/dist/lib/{chunk-F7IDAYLH.cjs → chunk-CSJ6KNIX.cjs} +12 -9
- package/dist/lib/{chunk-37W2ZDLA.cjs → chunk-E2MVGKGH.cjs} +2 -2
- package/dist/lib/{chunk-ET5QBFGZ.cjs → chunk-FN7673NC.cjs} +2 -2
- package/dist/lib/{chunk-67IBLMW6.cjs → chunk-GDXHCTCX.cjs} +14 -7
- package/dist/lib/{chunk-ESNHFT4V.cjs → chunk-HCOHRD3Q.cjs} +26 -13
- package/dist/lib/{chunk-SYHVP3OW.js → chunk-HOZ37BFN.js} +23 -4
- package/dist/lib/{chunk-7OHD3BD4.js → chunk-HQ5YA43H.js} +12 -9
- package/dist/lib/{chunk-47WZIAPZ.js → chunk-IOM7GRZU.js} +5 -8
- package/dist/lib/{chunk-WFUO3YPK.js → chunk-L4NEN725.js} +19 -4
- package/dist/lib/{chunk-MVSXEH4P.cjs → chunk-LAFEAMNN.cjs} +6 -9
- package/dist/lib/{chunk-7Y5MJRWF.js → chunk-LIN4KAV3.js} +57 -34
- package/dist/lib/{chunk-LJ4WO7TW.cjs → chunk-LMO7PRBP.cjs} +35 -13
- package/dist/lib/{chunk-4AMFNBTX.cjs → chunk-LPA7UJIR.cjs} +956 -659
- package/dist/lib/{chunk-OTBLE55Z.cjs → chunk-MPCVQK2D.cjs} +12 -1
- package/dist/lib/{chunk-5ASXKB2V.js → chunk-QAXCBFBP.js} +1 -1
- package/dist/lib/{chunk-N2EGPL2L.js → chunk-T7RMV2FW.js} +25 -12
- package/dist/lib/{chunk-7K7JH3DF.cjs → chunk-ULJVBW4L.cjs} +19 -4
- package/dist/lib/{chunk-UDJ37BEE.cjs → chunk-VGSV2BEL.cjs} +57 -34
- package/dist/lib/{chunk-AOKLB4V2.cjs → chunk-Y2BHXV33.cjs} +1 -1
- package/dist/lib/{chunk-GRJJZ5VJ.js → chunk-YH5GOJS3.js} +2 -15
- package/dist/lib/{chunk-Q3ERHHXJ.js → chunk-YV6MDKW4.js} +13 -6
- package/dist/lib/{config-LK_Wl1SU.d.cts → config-7vXtXiGg.d.cts} +204 -118
- package/dist/lib/{config-CnPcoKqT.d.ts → config-B9aVEiiX.d.ts} +204 -118
- package/dist/lib/config-file.d.cts +1 -3
- package/dist/lib/config-file.d.ts +1 -3
- package/dist/lib/create-program.d.cts +1 -3
- package/dist/lib/create-program.d.ts +1 -3
- package/dist/lib/entry.cjs +9 -9
- package/dist/lib/entry.d.cts +1 -3
- package/dist/lib/entry.d.ts +1 -3
- package/dist/lib/entry.js +1 -1
- package/dist/lib/{hooks-DX1o8l6J.d.ts → hooks-BxUBzqCb.d.ts} +1 -1
- package/dist/lib/{hooks-BD2rDhpA.d.cts → hooks-cvv50JDh.d.cts} +1 -1
- package/dist/lib/index.cjs +32 -28
- package/dist/lib/index.d.cts +326 -7
- package/dist/lib/index.d.ts +326 -7
- package/dist/lib/index.js +8 -8
- package/dist/lib/logger.d.cts +1 -3
- package/dist/lib/logger.d.ts +1 -3
- package/dist/lib/typescript/compiler-host.d.cts +1 -3
- package/dist/lib/typescript/compiler-host.d.ts +1 -3
- package/dist/lib/typescript/import-transformer.d.cts +1 -3
- package/dist/lib/typescript/import-transformer.d.ts +1 -3
- package/dist/lib/typescript/index.d.cts +1 -3
- package/dist/lib/typescript/index.d.ts +1 -3
- package/dist/lib/typescript/program.d.cts +1 -3
- package/dist/lib/typescript/program.d.ts +1 -3
- package/dist/lib/unplugin/factory.cjs +5 -5
- package/dist/lib/unplugin/factory.d.cts +7 -9
- package/dist/lib/unplugin/factory.d.ts +7 -9
- package/dist/lib/unplugin/factory.js +4 -4
- package/dist/lib/unplugin/index.cjs +8 -8
- package/dist/lib/unplugin/index.d.cts +2 -4
- package/dist/lib/unplugin/index.d.ts +2 -4
- package/dist/lib/unplugin/index.js +5 -5
- package/dist/lib/unplugin/plugin.cjs +3 -3
- package/dist/lib/unplugin/plugin.d.cts +1 -3
- package/dist/lib/unplugin/plugin.d.ts +1 -3
- package/dist/lib/unplugin/plugin.js +2 -2
- package/dist/lib/unplugin/resolve-id.cjs +2 -2
- package/dist/lib/unplugin/resolve-id.d.cts +1 -3
- package/dist/lib/unplugin/resolve-id.d.ts +1 -3
- package/dist/lib/unplugin/resolve-id.js +1 -1
- package/dist/lib/utilities/bundle.cjs +4 -4
- package/dist/lib/utilities/bundle.d.cts +1 -3
- package/dist/lib/utilities/bundle.d.ts +1 -3
- package/dist/lib/utilities/bundle.js +3 -3
- package/dist/lib/utilities/cache.d.cts +1 -3
- package/dist/lib/utilities/cache.d.ts +1 -3
- package/dist/lib/utilities/file-header.d.cts +1 -3
- package/dist/lib/utilities/file-header.d.ts +1 -3
- package/dist/lib/utilities/index.cjs +14 -14
- package/dist/lib/utilities/index.d.cts +1 -3
- package/dist/lib/utilities/index.d.ts +1 -3
- package/dist/lib/utilities/index.js +5 -5
- package/dist/lib/utilities/meta.cjs +8 -8
- package/dist/lib/utilities/meta.d.cts +1 -3
- package/dist/lib/utilities/meta.d.ts +1 -3
- package/dist/lib/utilities/meta.js +1 -1
- package/dist/lib/utilities/resolve-path.d.cts +1 -3
- package/dist/lib/utilities/resolve-path.d.ts +1 -3
- package/dist/lib/utilities/resolve.cjs +5 -5
- package/dist/lib/utilities/resolve.d.cts +1 -3
- package/dist/lib/utilities/resolve.d.ts +1 -3
- package/dist/lib/utilities/resolve.js +4 -4
- package/dist/lib/utilities/source-file.d.cts +1 -3
- package/dist/lib/utilities/source-file.d.ts +1 -3
- package/dist/lib/utilities/source-map.d.cts +1 -3
- package/dist/lib/utilities/source-map.d.ts +1 -3
- package/dist/lib/utilities/worker.d.cts +1 -3
- package/dist/lib/utilities/worker.d.ts +1 -3
- package/dist/lib/utilities/write-file.d.cts +1 -3
- package/dist/lib/utilities/write-file.d.ts +1 -3
- package/dist/next.cjs +9 -9
- package/dist/next.js +6 -6
- package/dist/nuxt.cjs +11 -11
- package/dist/nuxt.js +8 -8
- package/dist/plugin-utils/{chunk-YKIS7BLU.cjs → chunk-5MO4BCOW.cjs} +24 -0
- package/dist/plugin-utils/{chunk-HHFA3IEZ.js → chunk-CYVV2MB7.js} +24 -0
- package/dist/plugin-utils/{chunk-75UVEMIV.cjs → chunk-DZZPNO5H.cjs} +2 -2
- package/dist/plugin-utils/{chunk-WEIEQXIJ.cjs → chunk-ECFS7DPV.cjs} +5 -5
- package/dist/plugin-utils/{chunk-MQOW6ENT.cjs → chunk-F65J5WOX.cjs} +1 -1
- package/dist/plugin-utils/{chunk-IHME6YWJ.js → chunk-GV7O3E7P.js} +1 -1
- package/dist/plugin-utils/chunk-J33TXWF6.js +12 -0
- package/dist/plugin-utils/{chunk-PK6PYFWY.js → chunk-L277XSSN.js} +1 -1
- package/dist/plugin-utils/{chunk-YDYJAGMP.js → chunk-QKMG6ZAU.js} +1 -1
- package/dist/plugin-utils/chunk-QP6OJWFG.cjs +14 -0
- package/dist/plugin-utils/{chunk-5TL6KEQ5.cjs → chunk-UNAGYQRB.cjs} +4 -4
- package/dist/plugin-utils/{chunk-432MQOUZ.js → chunk-XIXI67PY.js} +1 -1
- package/dist/plugin-utils/{config-48EWGWXq.d.cts → config-BzVVjChJ.d.cts} +201 -115
- package/dist/plugin-utils/{config-48EWGWXq.d.ts → config-BzVVjChJ.d.ts} +201 -115
- package/dist/plugin-utils/enforce.cjs +5 -5
- package/dist/plugin-utils/enforce.d.cts +1 -3
- package/dist/plugin-utils/enforce.d.ts +1 -3
- package/dist/plugin-utils/enforce.js +4 -4
- package/dist/plugin-utils/extend.cjs +4 -4
- package/dist/plugin-utils/extend.d.cts +1 -3
- package/dist/plugin-utils/extend.d.ts +1 -3
- package/dist/plugin-utils/extend.js +3 -3
- package/dist/plugin-utils/get-config-path.cjs +2 -2
- package/dist/plugin-utils/get-config-path.d.cts +2 -4
- package/dist/plugin-utils/get-config-path.d.ts +2 -4
- package/dist/plugin-utils/get-config-path.js +1 -1
- package/dist/plugin-utils/helpers.cjs +14 -14
- package/dist/plugin-utils/helpers.d.cts +3 -5
- package/dist/plugin-utils/helpers.d.ts +3 -5
- package/dist/plugin-utils/helpers.js +1 -1
- package/dist/plugin-utils/index.cjs +24 -24
- package/dist/plugin-utils/index.d.cts +1 -3
- package/dist/plugin-utils/index.d.ts +1 -3
- package/dist/plugin-utils/index.js +6 -6
- package/dist/plugin-utils/merge.cjs +3 -3
- package/dist/plugin-utils/merge.d.cts +1 -3
- package/dist/plugin-utils/merge.d.ts +1 -3
- package/dist/plugin-utils/merge.js +2 -2
- package/dist/plugin-utils/paths.cjs +2 -2
- package/dist/plugin-utils/paths.d.cts +4 -5
- package/dist/plugin-utils/paths.d.ts +4 -5
- package/dist/plugin-utils/paths.js +1 -1
- package/dist/{resolved-B41SbjnS.d.cts → resolved-D8vIizyA.d.cts} +81 -66
- package/dist/{resolved-J7a2Aeuk.d.ts → resolved-DWxXKJYy.d.ts} +81 -66
- package/dist/rolldown.cjs +8 -8
- package/dist/rolldown.d.cts +1 -2
- package/dist/rolldown.d.ts +1 -2
- package/dist/rolldown.js +5 -5
- package/dist/rollup.cjs +8 -8
- package/dist/rollup.d.cts +1 -2
- package/dist/rollup.d.ts +1 -2
- package/dist/rollup.js +5 -5
- package/dist/rspack.cjs +8 -8
- package/dist/rspack.d.cts +1 -2
- package/dist/rspack.d.ts +1 -2
- package/dist/rspack.js +5 -5
- package/dist/tsup.cjs +10 -10
- package/dist/tsup.js +7 -7
- package/dist/types/babel.d.cts +1 -2
- package/dist/types/babel.d.ts +1 -2
- package/dist/types/build.d.cts +94 -7
- package/dist/types/build.d.ts +94 -7
- package/dist/types/commands.cjs +2 -2
- package/dist/types/commands.d.cts +1 -2
- package/dist/types/commands.d.ts +1 -2
- package/dist/types/commands.js +1 -1
- package/dist/types/config.d.cts +1 -2
- package/dist/types/config.d.ts +1 -2
- package/dist/types/context.d.cts +2 -3
- package/dist/types/context.d.ts +2 -3
- package/dist/types/hooks.d.cts +1 -2
- package/dist/types/hooks.d.ts +1 -2
- package/dist/types/index.cjs +6 -22
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.ts +2 -3
- package/dist/types/index.js +2 -2
- package/dist/types/internal.d.cts +2 -3
- package/dist/types/internal.d.ts +2 -3
- package/dist/types/plugin.d.cts +1 -2
- package/dist/types/plugin.d.ts +1 -2
- package/dist/types/resolved.d.cts +1 -2
- package/dist/types/resolved.d.ts +1 -2
- package/dist/types/unplugin.d.cts +1 -2
- package/dist/types/unplugin.d.ts +1 -2
- package/dist/types/vfs.cjs +4 -20
- package/dist/types/vfs.d.cts +47 -54
- package/dist/types/vfs.d.ts +47 -54
- package/dist/types/vfs.js +1 -1
- package/dist/unloader.cjs +8 -8
- package/dist/unloader.d.cts +3 -4
- package/dist/unloader.d.ts +3 -4
- package/dist/unloader.js +5 -5
- package/dist/unplugin.cjs +20 -20
- package/dist/unplugin.d.cts +4 -5
- package/dist/unplugin.d.ts +4 -5
- package/dist/unplugin.js +17 -17
- package/dist/vite.cjs +9 -9
- package/dist/vite.d.cts +1 -2
- package/dist/vite.d.ts +1 -2
- package/dist/vite.js +6 -6
- package/dist/webpack.cjs +8 -8
- package/dist/webpack.d.cts +1 -2
- package/dist/webpack.d.ts +1 -2
- package/dist/webpack.js +5 -5
- package/package.json +8 -6
- package/dist/chunk-CWCEYGLM.js +0 -43
- package/dist/chunk-F5NKLRZD.cjs +0 -49
- package/dist/chunk-OBYFBPPO.js +0 -9
- package/dist/chunk-RDMLGFIT.js +0 -29
- package/dist/chunk-RF6RSWD4.cjs +0 -16
- package/dist/chunk-XDLLDHRY.cjs +0 -32
- package/dist/lib/chunk-POOHWK7C.cjs +0 -63
- package/dist/lib/chunk-VLHOYZG2.js +0 -55
- package/dist/plugin-utils/chunk-2HFS2OOG.cjs +0 -14
- package/dist/plugin-utils/chunk-CVZA2RT3.js +0 -12
package/dist/lib/entry.cjs
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMPCVQK2D_cjs = require('./chunk-MPCVQK2D.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "getUniqueEntries", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkMPCVQK2D_cjs.getUniqueEntries; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "resolveEntries", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveEntries; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "resolveEntriesSync", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveEntriesSync; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "resolveEntry", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveEntry; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "resolveEntryInput", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveEntryInput; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "resolveEntryInputFile", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveEntryInputFile; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "resolveEntryOutput", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveEntryOutput; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "resolveVirtualEntry", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveVirtualEntry; }
|
|
39
39
|
});
|
package/dist/lib/entry.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
2
|
-
import { C as Context,
|
|
2
|
+
import { C as Context, g as ResolvedEntryTypeDefinition } from './config-7vXtXiGg.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -28,9 +28,7 @@ import './tsconfig-Bz-CiFqD.cjs';
|
|
|
28
28
|
import '@stryke/types/tsconfig';
|
|
29
29
|
import 'typescript';
|
|
30
30
|
import '@stryke/json/types';
|
|
31
|
-
import 'memfs';
|
|
32
31
|
import 'node:fs';
|
|
33
|
-
import 'unionfs';
|
|
34
32
|
|
|
35
33
|
declare function resolveEntryInputFile(context: Context, typeDefinition: TypeDefinition): string;
|
|
36
34
|
declare function resolveEntryInput(context: Context, typeDefinition: TypeDefinition): TypeDefinition;
|
package/dist/lib/entry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
2
|
-
import { C as Context,
|
|
2
|
+
import { C as Context, g as ResolvedEntryTypeDefinition } from './config-B9aVEiiX.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -28,9 +28,7 @@ import './tsconfig-Bz-CiFqD.js';
|
|
|
28
28
|
import '@stryke/types/tsconfig';
|
|
29
29
|
import 'typescript';
|
|
30
30
|
import '@stryke/json/types';
|
|
31
|
-
import 'memfs';
|
|
32
31
|
import 'node:fs';
|
|
33
|
-
import 'unionfs';
|
|
34
32
|
|
|
35
33
|
declare function resolveEntryInputFile(context: Context, typeDefinition: TypeDefinition): string;
|
|
36
34
|
declare function resolveEntryInput(context: Context, typeDefinition: TypeDefinition): TypeDefinition;
|
package/dist/lib/entry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getUniqueEntries, resolveEntries, resolveEntriesSync, resolveEntry, resolveEntryInput, resolveEntryInputFile, resolveEntryOutput, resolveVirtualEntry } from './chunk-
|
|
1
|
+
export { getUniqueEntries, resolveEntries, resolveEntriesSync, resolveEntry, resolveEntryInput, resolveEntryInputFile, resolveEntryOutput, resolveVirtualEntry } from './chunk-BHDQZ6YX.js';
|
|
2
2
|
import './chunk-SHUYVCID.js';
|
package/dist/lib/index.cjs
CHANGED
|
@@ -4,26 +4,26 @@ require('./chunk-EJ25PQEL.cjs');
|
|
|
4
4
|
var chunkJG4IL7XL_cjs = require('./chunk-JG4IL7XL.cjs');
|
|
5
5
|
var chunkVQ7CXQLT_cjs = require('./chunk-VQ7CXQLT.cjs');
|
|
6
6
|
var chunkT6KEXFRH_cjs = require('./chunk-T6KEXFRH.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var chunkE2MVGKGH_cjs = require('./chunk-E2MVGKGH.cjs');
|
|
8
|
+
var chunkFN7673NC_cjs = require('./chunk-FN7673NC.cjs');
|
|
9
9
|
var chunkMZJWK36Q_cjs = require('./chunk-MZJWK36Q.cjs');
|
|
10
10
|
require('./chunk-RJ4277VZ.cjs');
|
|
11
11
|
var chunkH7A5QVLY_cjs = require('./chunk-H7A5QVLY.cjs');
|
|
12
12
|
require('./chunk-VVSEE3JE.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkLPA7UJIR_cjs = require('./chunk-LPA7UJIR.cjs');
|
|
14
14
|
var chunk2NZADVP5_cjs = require('./chunk-2NZADVP5.cjs');
|
|
15
15
|
var chunk4NHFXDTQ_cjs = require('./chunk-4NHFXDTQ.cjs');
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
16
|
+
var chunk7XHBIYIN_cjs = require('./chunk-7XHBIYIN.cjs');
|
|
17
|
+
var chunkVGSV2BEL_cjs = require('./chunk-VGSV2BEL.cjs');
|
|
18
|
+
var chunkULJVBW4L_cjs = require('./chunk-ULJVBW4L.cjs');
|
|
19
19
|
var chunkIBPA3VN5_cjs = require('./chunk-IBPA3VN5.cjs');
|
|
20
20
|
var chunkBQU53ZNB_cjs = require('./chunk-BQU53ZNB.cjs');
|
|
21
21
|
var chunkXW5TELHB_cjs = require('./chunk-XW5TELHB.cjs');
|
|
22
22
|
var chunkCGYAL3S2_cjs = require('./chunk-CGYAL3S2.cjs');
|
|
23
23
|
var chunkJA4HSQRN_cjs = require('./chunk-JA4HSQRN.cjs');
|
|
24
24
|
var chunk3OCI4TH7_cjs = require('./chunk-3OCI4TH7.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
var
|
|
25
|
+
require('./chunk-27VJFYDM.cjs');
|
|
26
|
+
var chunkMPCVQK2D_cjs = require('./chunk-MPCVQK2D.cjs');
|
|
27
27
|
require('./chunk-USNT2KNT.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
@@ -50,11 +50,11 @@ Object.defineProperty(exports, "setCache", {
|
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "resolve", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkE2MVGKGH_cjs.resolve; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "bundle", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkFN7673NC_cjs.bundle; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "resolvePath", {
|
|
60
60
|
enumerable: true,
|
|
@@ -64,9 +64,13 @@ Object.defineProperty(exports, "isolatedDeclarations", {
|
|
|
64
64
|
enumerable: true,
|
|
65
65
|
get: function () { return chunkH7A5QVLY_cjs.isolatedDeclarations; }
|
|
66
66
|
});
|
|
67
|
+
Object.defineProperty(exports, "VirtualFileSystem", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () { return chunkLPA7UJIR_cjs.VirtualFileSystem; }
|
|
70
|
+
});
|
|
67
71
|
Object.defineProperty(exports, "createUnpluginFactory", {
|
|
68
72
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkLPA7UJIR_cjs.createUnpluginFactory; }
|
|
70
74
|
});
|
|
71
75
|
Object.defineProperty(exports, "writeFile", {
|
|
72
76
|
enumerable: true,
|
|
@@ -82,39 +86,39 @@ Object.defineProperty(exports, "getFileHeader", {
|
|
|
82
86
|
});
|
|
83
87
|
Object.defineProperty(exports, "CACHE_HASH_LENGTH", {
|
|
84
88
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk7XHBIYIN_cjs.CACHE_HASH_LENGTH; }
|
|
86
90
|
});
|
|
87
91
|
Object.defineProperty(exports, "PROJECT_ROOT_HASH_LENGTH", {
|
|
88
92
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk7XHBIYIN_cjs.PROJECT_ROOT_HASH_LENGTH; }
|
|
90
94
|
});
|
|
91
95
|
Object.defineProperty(exports, "discoverTemplates", {
|
|
92
96
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk7XHBIYIN_cjs.discoverTemplates; }
|
|
94
98
|
});
|
|
95
99
|
Object.defineProperty(exports, "getChecksum", {
|
|
96
100
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk7XHBIYIN_cjs.getChecksum; }
|
|
98
102
|
});
|
|
99
103
|
Object.defineProperty(exports, "getPersistedMeta", {
|
|
100
104
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk7XHBIYIN_cjs.getPersistedMeta; }
|
|
102
106
|
});
|
|
103
107
|
Object.defineProperty(exports, "getPrefixedProjectRootHash", {
|
|
104
108
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk7XHBIYIN_cjs.getPrefixedProjectRootHash; }
|
|
106
110
|
});
|
|
107
111
|
Object.defineProperty(exports, "writeMetaFile", {
|
|
108
112
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunk7XHBIYIN_cjs.writeMetaFile; }
|
|
110
114
|
});
|
|
111
115
|
Object.defineProperty(exports, "createUnplugin", {
|
|
112
116
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkVGSV2BEL_cjs.createUnplugin; }
|
|
114
118
|
});
|
|
115
119
|
Object.defineProperty(exports, "handleResolveId", {
|
|
116
120
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkULJVBW4L_cjs.handleResolveId; }
|
|
118
122
|
});
|
|
119
123
|
Object.defineProperty(exports, "SourcesMap", {
|
|
120
124
|
enumerable: true,
|
|
@@ -194,33 +198,33 @@ Object.defineProperty(exports, "getString", {
|
|
|
194
198
|
});
|
|
195
199
|
Object.defineProperty(exports, "getUniqueEntries", {
|
|
196
200
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkMPCVQK2D_cjs.getUniqueEntries; }
|
|
198
202
|
});
|
|
199
203
|
Object.defineProperty(exports, "resolveEntries", {
|
|
200
204
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveEntries; }
|
|
202
206
|
});
|
|
203
207
|
Object.defineProperty(exports, "resolveEntriesSync", {
|
|
204
208
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveEntriesSync; }
|
|
206
210
|
});
|
|
207
211
|
Object.defineProperty(exports, "resolveEntry", {
|
|
208
212
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveEntry; }
|
|
210
214
|
});
|
|
211
215
|
Object.defineProperty(exports, "resolveEntryInput", {
|
|
212
216
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveEntryInput; }
|
|
214
218
|
});
|
|
215
219
|
Object.defineProperty(exports, "resolveEntryInputFile", {
|
|
216
220
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveEntryInputFile; }
|
|
218
222
|
});
|
|
219
223
|
Object.defineProperty(exports, "resolveEntryOutput", {
|
|
220
224
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveEntryOutput; }
|
|
222
226
|
});
|
|
223
227
|
Object.defineProperty(exports, "resolveVirtualEntry", {
|
|
224
228
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkMPCVQK2D_cjs.resolveVirtualEntry; }
|
|
226
230
|
});
|
package/dist/lib/index.d.cts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { PartiallyResolvedContext, loadUserConfigFile, loadWorkspaceConfig } from './config-file.cjs';
|
|
2
2
|
export { createProgram } from './create-program.cjs';
|
|
3
3
|
export { getUniqueEntries, resolveEntries, resolveEntriesSync, resolveEntry, resolveEntryInput, resolveEntryInputFile, resolveEntryOutput, resolveVirtualEntry } from './entry.cjs';
|
|
4
|
+
import fs, { PathLike, ObjectEncodingOptions, PathOrFileDescriptor, Stats, StatSyncOptions } from 'node:fs';
|
|
5
|
+
import { V as VirtualFileSystemInterface, C as Context, a as VirtualFileMetadata, R as ResolvePathOptions, b as ResolveFSOptions, M as MakeDirectoryOptions, W as WriteFileData, c as WriteFileOptions, _ as __VFS_PATCH__, d as __VFS_REVERT__ } from './config-7vXtXiGg.cjs';
|
|
4
6
|
export { CreateLogOptions, createLog, extendLog } from './logger.cjs';
|
|
5
7
|
export { IsolatedDeclarationsResult, isolatedDeclarations } from './typescript/isolated-decl.cjs';
|
|
6
8
|
export { SourcesMap, createVirtualCompilerHost, createVirtualProgram, getDefaultCompilerOptions, loadLibFiles } from './typescript/program.cjs';
|
|
@@ -19,12 +21,12 @@ export { generateSourceMap } from './utilities/source-map.cjs';
|
|
|
19
21
|
export { Worker, WorkerOptions, createWorker } from './utilities/worker.cjs';
|
|
20
22
|
export { writeFile } from './utilities/write-file.cjs';
|
|
21
23
|
import 'jiti';
|
|
22
|
-
import '
|
|
24
|
+
import 'ts-morph';
|
|
25
|
+
import '@stryke/types/configuration';
|
|
23
26
|
import '@storm-software/build-tools/types';
|
|
24
27
|
import '@storm-software/config-tools/types';
|
|
25
28
|
import '@storm-software/config/types';
|
|
26
29
|
import '@stryke/types/base';
|
|
27
|
-
import '@stryke/types/configuration';
|
|
28
30
|
import '@stryke/types/file';
|
|
29
31
|
import 'c12';
|
|
30
32
|
import 'vite';
|
|
@@ -48,8 +50,325 @@ import './tsconfig-Bz-CiFqD.cjs';
|
|
|
48
50
|
import '@stryke/types/tsconfig';
|
|
49
51
|
import 'typescript';
|
|
50
52
|
import '@stryke/json/types';
|
|
51
|
-
import '
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
import './hooks-cvv50JDh.cjs';
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Represents a virtual file system (VFS) that stores files and their associated metadata in virtual memory.
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* This class provides methods to manage virtual files, check their existence, retrieve their content, and manipulate the virtual file system. It allows for efficient file management and retrieval without relying on the actual file system.
|
|
60
|
+
*/
|
|
61
|
+
declare class VirtualFileSystem implements VirtualFileSystemInterface {
|
|
62
|
+
#private;
|
|
63
|
+
/**
|
|
64
|
+
* Creates a virtual file system (VFS) that is backed up to a Cap'n Proto message buffer.
|
|
65
|
+
*
|
|
66
|
+
* @param context - The context of the virtual file system, typically containing options and logging functions.
|
|
67
|
+
* @returns A promise that resolves to a new virtual file system instance.
|
|
68
|
+
*/
|
|
69
|
+
static create(context: Context): Promise<VirtualFileSystem>;
|
|
70
|
+
/**
|
|
71
|
+
* Synchronously creates a virtual file system (VFS) that is backed up to a Cap'n Proto message buffer.
|
|
72
|
+
*
|
|
73
|
+
* @param context - The context of the virtual file system, typically containing options and logging functions.
|
|
74
|
+
* @returns A new virtual file system instance.
|
|
75
|
+
*/
|
|
76
|
+
static createSync(context: Context): VirtualFileSystem;
|
|
77
|
+
/**
|
|
78
|
+
* A map of file ids to their metadata.
|
|
79
|
+
*/
|
|
80
|
+
get metadata(): Record<string, VirtualFileMetadata>;
|
|
81
|
+
/**
|
|
82
|
+
* A map of module ids to their file paths.
|
|
83
|
+
*/
|
|
84
|
+
get ids(): Record<string, string>;
|
|
85
|
+
/**
|
|
86
|
+
* A map of virtual file paths to their IDs.
|
|
87
|
+
*/
|
|
88
|
+
get paths(): Record<string, string>;
|
|
89
|
+
/**
|
|
90
|
+
* Creates a new instance of the {@link VirtualFileSystem}.
|
|
91
|
+
*
|
|
92
|
+
* @param context - The context of the virtual file system, typically containing options and logging functions.
|
|
93
|
+
* @param data - A buffer containing the serialized virtual file system data.
|
|
94
|
+
*/
|
|
95
|
+
private constructor();
|
|
96
|
+
/**
|
|
97
|
+
* Check if a path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
98
|
+
*
|
|
99
|
+
* @param pathOrId - The path or id to check.
|
|
100
|
+
* @param options - Optional parameters for resolving the path.
|
|
101
|
+
* @returns Whether the path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
102
|
+
*/
|
|
103
|
+
isVirtual(pathOrId: string, options?: ResolvePathOptions): boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Check if a path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
106
|
+
*
|
|
107
|
+
* @param pathOrId - The path or id to check.
|
|
108
|
+
* @param options - Optional parameters for resolving the path.
|
|
109
|
+
* @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
110
|
+
*/
|
|
111
|
+
isPhysical(pathOrId: string, options?: ResolvePathOptions): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Lists files in a given path.
|
|
114
|
+
*
|
|
115
|
+
* @param path - The path to list files from.
|
|
116
|
+
* @param options - Options for listing files, such as encoding and recursion.
|
|
117
|
+
* @returns An array of file names in the specified path.
|
|
118
|
+
*/
|
|
119
|
+
readdirSync(path: fs.PathLike, options?: {
|
|
120
|
+
encoding: BufferEncoding | null;
|
|
121
|
+
withFileTypes?: false | undefined;
|
|
122
|
+
recursive?: boolean | undefined;
|
|
123
|
+
} | BufferEncoding): string[];
|
|
124
|
+
/**
|
|
125
|
+
* Removes a file in the virtual file system (VFS).
|
|
126
|
+
*
|
|
127
|
+
* @param path - The path to create the directory at.
|
|
128
|
+
*/
|
|
129
|
+
unlinkSync(path: fs.PathLike, options?: ResolveFSOptions): void;
|
|
130
|
+
/**
|
|
131
|
+
* Removes a file in the virtual file system (VFS).
|
|
132
|
+
*
|
|
133
|
+
* @param path - The path to create the directory at.
|
|
134
|
+
*/
|
|
135
|
+
unlink(path: fs.PathLike, options?: ResolveFSOptions): Promise<void>;
|
|
136
|
+
/**
|
|
137
|
+
* Removes a directory in the virtual file system (VFS).
|
|
138
|
+
*
|
|
139
|
+
* @param path - The path to create the directory at.
|
|
140
|
+
* @param options - Options for creating the directory.
|
|
141
|
+
*/
|
|
142
|
+
rmdirSync(path: fs.PathLike, options?: fs.RmDirOptions & ResolveFSOptions): void;
|
|
143
|
+
/**
|
|
144
|
+
* Removes a directory in the virtual file system (VFS).
|
|
145
|
+
*
|
|
146
|
+
* @param path - The path to create the directory at.
|
|
147
|
+
* @param options - Options for creating the directory.
|
|
148
|
+
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
149
|
+
*/
|
|
150
|
+
rmdir(path: fs.PathLike, options?: fs.RmDirOptions & ResolveFSOptions): Promise<void>;
|
|
151
|
+
/**
|
|
152
|
+
* Removes a file in the virtual file system (VFS).
|
|
153
|
+
*
|
|
154
|
+
* @param path - The path to the file to remove.
|
|
155
|
+
* @param options - Options for removing the file.
|
|
156
|
+
* @returns A promise that resolves when the file is removed.
|
|
157
|
+
*/
|
|
158
|
+
rm(path: fs.PathLike, options?: fs.RmOptions & ResolveFSOptions): Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* Synchronously removes a file or directory in the virtual file system (VFS).
|
|
161
|
+
*
|
|
162
|
+
* @param path - The path to the file or directory to remove.
|
|
163
|
+
* @param options - Options for removing the file or directory.
|
|
164
|
+
*/
|
|
165
|
+
rmSync(path: fs.PathLike, options?: fs.RmOptions & ResolveFSOptions): void;
|
|
166
|
+
/**
|
|
167
|
+
* Creates a directory in the virtual file system (VFS).
|
|
168
|
+
*
|
|
169
|
+
* @param path - The path to create the directory at.
|
|
170
|
+
* @param options - Options for creating the directory.
|
|
171
|
+
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
172
|
+
*/
|
|
173
|
+
mkdirSync(path: fs.PathLike, options?: MakeDirectoryOptions): string | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* Creates a directory in the virtual file system (VFS).
|
|
176
|
+
*
|
|
177
|
+
* @param path - The path to create the directory at.
|
|
178
|
+
* @param options - Options for creating the directory.
|
|
179
|
+
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
180
|
+
*/
|
|
181
|
+
mkdir(path: fs.PathLike, options?: MakeDirectoryOptions): Promise<string | undefined>;
|
|
182
|
+
/**
|
|
183
|
+
* Glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
184
|
+
*
|
|
185
|
+
* @param patterns - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
186
|
+
* @returns An array of file paths matching the provided pattern(s)
|
|
187
|
+
*/
|
|
188
|
+
glob(patterns: string | string[]): Promise<string[]>;
|
|
189
|
+
/**
|
|
190
|
+
* Synchronously glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
191
|
+
*
|
|
192
|
+
* @param patterns - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
193
|
+
* @returns An array of file paths matching the provided pattern(s)
|
|
194
|
+
*/
|
|
195
|
+
globSync(patterns: string | string[]): string[];
|
|
196
|
+
/**
|
|
197
|
+
* Moves a file from one path to another in the virtual file system (VFS).
|
|
198
|
+
*
|
|
199
|
+
* @param srcPath - The source path to move
|
|
200
|
+
* @param destPath - The destination path to move to
|
|
201
|
+
*/
|
|
202
|
+
move(srcPath: string, destPath: string): Promise<void>;
|
|
203
|
+
/**
|
|
204
|
+
* Synchronously moves a file from one path to another in the virtual file system (VFS).
|
|
205
|
+
*
|
|
206
|
+
* @param srcPath - The source path to move
|
|
207
|
+
* @param destPath - The destination path to move to
|
|
208
|
+
*/
|
|
209
|
+
moveSync(srcPath: string, destPath: string): void;
|
|
210
|
+
/**
|
|
211
|
+
* Copies a file from one path to another in the virtual file system (VFS).
|
|
212
|
+
*
|
|
213
|
+
* @param srcPath - The source path to copy
|
|
214
|
+
* @param destPath - The destination path to copy to
|
|
215
|
+
*/
|
|
216
|
+
copy(srcPath: string, destPath: string): Promise<void>;
|
|
217
|
+
/**
|
|
218
|
+
* Synchronously copies a file from one path to another in the virtual file system (VFS).
|
|
219
|
+
*
|
|
220
|
+
* @param srcPath - The source path to copy
|
|
221
|
+
* @param destPath - The destination path to copy to
|
|
222
|
+
*/
|
|
223
|
+
copySync(srcPath: string, destPath: string): void;
|
|
224
|
+
/**
|
|
225
|
+
* Lists files in a given path.
|
|
226
|
+
*
|
|
227
|
+
* @param pathOrId - The path to list files from.
|
|
228
|
+
* @param options - Options for listing files, such as encoding and recursion.
|
|
229
|
+
* @returns An array of file names in the specified path.
|
|
230
|
+
*/
|
|
231
|
+
readdir(pathOrId: PathLike, options?: {
|
|
232
|
+
encoding: BufferEncoding | null;
|
|
233
|
+
withFileTypes?: false | undefined;
|
|
234
|
+
recursive?: boolean | undefined;
|
|
235
|
+
} | BufferEncoding): Promise<string[]>;
|
|
236
|
+
/**
|
|
237
|
+
* Asynchronously reads a file from the virtual file system (VFS).
|
|
238
|
+
*
|
|
239
|
+
* @param pathOrId - The path or ID of the file to read.
|
|
240
|
+
* @returns A promise that resolves to the contents of the file as a string, or undefined if the file does not exist.
|
|
241
|
+
*/
|
|
242
|
+
readFile(pathOrId: PathLike, options?: (ObjectEncodingOptions & {
|
|
243
|
+
flag?: string | undefined;
|
|
244
|
+
}) | BufferEncoding): Promise<string | undefined>;
|
|
245
|
+
/**
|
|
246
|
+
* Synchronously reads a file from the virtual file system (VFS).
|
|
247
|
+
*
|
|
248
|
+
* @param pathOrId - The path or ID of the file to read.
|
|
249
|
+
* @returns The contents of the file as a string, or undefined if the file does not exist.
|
|
250
|
+
*/
|
|
251
|
+
readFileSync(pathOrId: PathLike, options?: (fs.ObjectEncodingOptions & {
|
|
252
|
+
flag?: string | undefined;
|
|
253
|
+
}) | BufferEncoding | null): string | undefined;
|
|
254
|
+
/**
|
|
255
|
+
* Writes a file to the virtual file system (VFS).
|
|
256
|
+
*
|
|
257
|
+
* @param path - The path to the file.
|
|
258
|
+
* @param data - The contents of the file.
|
|
259
|
+
* @param options - Optional parameters for writing the file.
|
|
260
|
+
* @returns A promise that resolves when the file is written.
|
|
261
|
+
*/
|
|
262
|
+
writeFile(path: PathOrFileDescriptor, data?: WriteFileData, options?: WriteFileOptions): Promise<void>;
|
|
263
|
+
/**
|
|
264
|
+
* Synchronously writes a file to the virtual file system (VFS).
|
|
265
|
+
*
|
|
266
|
+
* @param path - The file to write.
|
|
267
|
+
* @param data - The contents of the file.
|
|
268
|
+
* @param options - Optional parameters for writing the file.
|
|
269
|
+
*/
|
|
270
|
+
writeFileSync(path: PathOrFileDescriptor, data?: WriteFileData, options?: WriteFileOptions): void;
|
|
271
|
+
/**
|
|
272
|
+
* Synchronously checks if a file exists in the virtual file system (VFS).
|
|
273
|
+
*
|
|
274
|
+
* @param pathOrId - The path or ID of the file to check.
|
|
275
|
+
* @returns `true` if the file exists, otherwise `false`.
|
|
276
|
+
*/
|
|
277
|
+
existsSync(pathOrId: PathLike): boolean;
|
|
278
|
+
/**
|
|
279
|
+
* Retrieves the metadata of a file in the virtual file system (VFS).
|
|
280
|
+
*
|
|
281
|
+
* @param pathOrId - The path or ID of the file to retrieve metadata for.
|
|
282
|
+
* @returns The metadata of the file, or undefined if the file does not exist.
|
|
283
|
+
*/
|
|
284
|
+
getMetadata(pathOrId: PathLike): VirtualFileMetadata | undefined;
|
|
285
|
+
/**
|
|
286
|
+
* Checks if a file exists in the virtual file system (VFS).
|
|
287
|
+
*
|
|
288
|
+
* @remarks
|
|
289
|
+
* 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.
|
|
290
|
+
*
|
|
291
|
+
* @param pathOrId - The path of the file to check.
|
|
292
|
+
* @returns `true` if the file exists, otherwise `false`.
|
|
293
|
+
*/
|
|
294
|
+
isFile(pathOrId: PathLike): boolean;
|
|
295
|
+
/**
|
|
296
|
+
* Checks if a directory exists in the virtual file system (VFS).
|
|
297
|
+
*
|
|
298
|
+
* @param pathOrId - The path of the directory to check.
|
|
299
|
+
* @returns `true` if the directory exists, otherwise `false`.
|
|
300
|
+
*/
|
|
301
|
+
isDirectory(pathOrId: PathLike): boolean;
|
|
302
|
+
/**
|
|
303
|
+
* Retrieves the status of a file in the virtual file system (VFS).
|
|
304
|
+
*
|
|
305
|
+
* @param pathOrId - The path or ID of the file to retrieve status for.
|
|
306
|
+
* @returns A promise that resolves to the file's status information, or false if the file does not exist.
|
|
307
|
+
*/
|
|
308
|
+
stat(pathOrId: PathLike, options?: fs.StatOptions & {
|
|
309
|
+
bigint?: false | undefined;
|
|
310
|
+
}): Promise<Stats>;
|
|
311
|
+
/**
|
|
312
|
+
* Synchronously retrieves the status of a file in the virtual file system (VFS).
|
|
313
|
+
*
|
|
314
|
+
* @param pathOrId - The path or ID of the file to retrieve status for.
|
|
315
|
+
* @returns The file's status information, or false if the file does not exist.
|
|
316
|
+
*/
|
|
317
|
+
statSync(pathOrId: PathLike): Stats;
|
|
318
|
+
/**
|
|
319
|
+
* Retrieves the status of a symbolic link in the virtual file system (VFS).
|
|
320
|
+
*
|
|
321
|
+
* @param pathOrId - The path or ID of the symbolic link to retrieve status for.
|
|
322
|
+
* @returns A promise that resolves to the symbolic link's status information, or false if the link does not exist.
|
|
323
|
+
*/
|
|
324
|
+
lstat(pathOrId: PathLike, options?: fs.StatOptions & {
|
|
325
|
+
bigint?: false | undefined;
|
|
326
|
+
}): Promise<Stats>;
|
|
327
|
+
/**
|
|
328
|
+
* Synchronously retrieves the status of a symbolic link in the virtual file system (VFS).
|
|
329
|
+
*
|
|
330
|
+
* @param pathOrId - The path or ID of the symbolic link to retrieve status for.
|
|
331
|
+
* @returns The symbolic link's status information, or false if the link does not exist.
|
|
332
|
+
*/
|
|
333
|
+
lstatSync(pathOrId: PathLike, options?: StatSyncOptions & {
|
|
334
|
+
bigint?: false | undefined;
|
|
335
|
+
throwIfNoEntry: false;
|
|
336
|
+
}): Stats | undefined;
|
|
337
|
+
/**
|
|
338
|
+
* Resolves a path or ID to its real path in the virtual file system (VFS).
|
|
339
|
+
*
|
|
340
|
+
* @param pathOrId - The path or ID to resolve.
|
|
341
|
+
* @returns The resolved real path if it exists, otherwise undefined.
|
|
342
|
+
*/
|
|
343
|
+
realpathSync(pathOrId: PathLike): string;
|
|
344
|
+
/**
|
|
345
|
+
* Resolves a path or ID parameter to a corresponding virtual file path in the virtual file system (VFS).
|
|
346
|
+
*
|
|
347
|
+
* @param pathOrId - The path or ID to resolve.
|
|
348
|
+
* @param options - Optional parameters for resolving the path, such as whether to include the file extension.
|
|
349
|
+
* @returns The resolved file path if it exists, otherwise undefined.
|
|
350
|
+
*/
|
|
351
|
+
resolve(pathOrId: PathLike, options?: ResolvePathOptions): string | false;
|
|
352
|
+
/**
|
|
353
|
+
* Converts a relative path to an absolute path based on the workspace and project root.
|
|
354
|
+
*
|
|
355
|
+
* @param path - The relative path to convert.
|
|
356
|
+
* @returns The absolute path.
|
|
357
|
+
*/
|
|
358
|
+
formatPath(path: PathOrFileDescriptor): string;
|
|
359
|
+
/**
|
|
360
|
+
* Disposes of the virtual file system (VFS) by saving its state to disk.
|
|
361
|
+
*/
|
|
362
|
+
dispose(): Promise<void>;
|
|
363
|
+
/**
|
|
364
|
+
* Initializes the virtual file system (VFS) by patching the file system module if necessary.
|
|
365
|
+
*/
|
|
366
|
+
[__VFS_PATCH__](): void;
|
|
367
|
+
/**
|
|
368
|
+
* Reverts the file system module to its original state if it was previously patched.
|
|
369
|
+
*/
|
|
370
|
+
[__VFS_REVERT__](): void;
|
|
371
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export { VirtualFileSystem };
|