powerlines 0.23.2 → 0.23.4
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--9pVSIbm.d.cts +168 -0
- package/dist/api-DxPACGY4.d.ts +168 -0
- package/dist/api.cjs +3 -3
- package/dist/api.d.cts +16 -7
- package/dist/api.d.ts +16 -7
- package/dist/api.js +2 -2
- package/dist/astro.cjs +8 -8
- package/dist/astro.d.cts +3 -5
- package/dist/astro.d.ts +3 -5
- package/dist/astro.js +5 -5
- package/dist/{chunk-ZFO3FUM4.cjs → chunk-2FLICTDF.cjs} +2 -2
- package/dist/{chunk-JAJ4CI2F.cjs → chunk-3OQXZ5MM.cjs} +2 -2
- package/dist/{chunk-KFRKOIP3.js → chunk-5B6P2VUG.js} +1 -1
- package/dist/{chunk-GNNF5SG6.cjs → chunk-6ACGI52O.cjs} +2 -2
- package/dist/{chunk-JZAQW55G.cjs → chunk-AF5VNWZD.cjs} +2 -2
- package/dist/{chunk-J7MZRPLN.cjs → chunk-AIC2EHPW.cjs} +5 -4
- package/dist/{chunk-3WDMXRK6.cjs → chunk-AYKZK666.cjs} +1 -1
- package/dist/chunk-CHNKTBUA.cjs +32 -0
- package/dist/{chunk-M4QJ2474.cjs → chunk-CTSSNO5L.cjs} +4 -4
- package/dist/{chunk-5A7FM72H.cjs → chunk-GP6XGAJ4.cjs} +2 -2
- package/dist/{chunk-DUYZ3TCT.js → chunk-HLQGKQZY.js} +1 -1
- package/dist/{chunk-LKN52AAX.js → chunk-HNJC47JM.js} +1 -1
- package/dist/{chunk-IGWSCIES.js → chunk-ISLX4Z3L.js} +3 -2
- package/dist/{chunk-J5LKLH5Z.js → chunk-KFSVTJMR.js} +1 -1
- package/dist/{chunk-RWVNX2CP.js → chunk-MI3U2GAT.js} +1 -1
- package/dist/{chunk-4ODWTALP.js → chunk-N3F54RFW.js} +2 -2
- package/dist/{chunk-Q7HBETZW.js → chunk-O2WB6QZ6.js} +1 -1
- package/dist/{chunk-DWV5QAGZ.cjs → chunk-OEKSQ22R.cjs} +2997 -2710
- package/dist/{chunk-WSLPUUGZ.js → chunk-PTZB4LWS.js} +1 -1
- package/dist/{chunk-CPRXGMH2.js → chunk-QSNFMINQ.js} +1 -1
- package/dist/{chunk-YQ76DZYD.cjs → chunk-QUZ4T5AX.cjs} +2 -2
- package/dist/chunk-UTAJPBVT.js +29 -0
- package/dist/{chunk-WG55ZHJL.cjs → chunk-UW3MXOWV.cjs} +2 -2
- package/dist/{chunk-F6BDL4HD.js → chunk-VDBKZJV6.js} +1 -1
- package/dist/{chunk-J3LN5HOC.cjs → chunk-VFLCP3SA.cjs} +2 -2
- package/dist/{chunk-FM4ABZQ2.js → chunk-VT7NVLLU.js} +1 -1
- package/dist/{chunk-WDBPA4RQ.cjs → chunk-VXAKPZ3A.cjs} +2 -2
- package/dist/{chunk-WXU3KLBP.cjs → chunk-XOI5CY62.cjs} +2 -2
- package/dist/{chunk-NH7U3PTV.js → chunk-ZQ7PDXYO.js} +1 -1
- package/dist/{chunk-TNYZH6EG.js → chunk-ZYCPZLIG.js} +2982 -2700
- package/dist/config.d.cts +3 -5
- package/dist/config.d.ts +3 -5
- package/dist/esbuild.cjs +7 -7
- package/dist/esbuild.d.cts +3 -5
- package/dist/esbuild.d.ts +3 -5
- package/dist/esbuild.js +4 -4
- package/dist/farm.cjs +4 -4
- package/dist/farm.d.cts +3 -5
- package/dist/farm.d.ts +3 -5
- package/dist/farm.js +3 -3
- package/dist/index.cjs +54 -33
- package/dist/index.d.cts +191 -39
- package/dist/index.d.ts +191 -39
- package/dist/index.js +18 -17
- package/dist/lib/api-B6hfFxVS.d.ts +167 -0
- package/dist/lib/api-CD2QlMig.d.cts +167 -0
- package/dist/lib/build/esbuild.d.cts +2 -4
- package/dist/lib/build/esbuild.d.ts +2 -4
- package/dist/lib/build/index.d.cts +4 -5
- package/dist/lib/build/index.d.ts +4 -5
- package/dist/lib/build/rolldown.d.cts +2 -4
- package/dist/lib/build/rolldown.d.ts +2 -4
- package/dist/lib/build/rollup.d.cts +2 -4
- package/dist/lib/build/rollup.d.ts +2 -4
- package/dist/lib/build/rspack.d.cts +2 -4
- package/dist/lib/build/rspack.d.ts +2 -4
- package/dist/lib/build/tsup.d.cts +2 -4
- package/dist/lib/build/tsup.d.ts +2 -4
- package/dist/lib/build/unbuild.d.cts +4 -23
- package/dist/lib/build/unbuild.d.ts +4 -23
- package/dist/lib/build/vite.d.cts +2 -4
- package/dist/lib/build/vite.d.ts +2 -4
- package/dist/lib/build/webpack.d.cts +2 -4
- package/dist/lib/build/webpack.d.ts +2 -4
- package/dist/lib/chunk-32Q2PG5D.js +9 -0
- package/dist/lib/chunk-35FGUJFD.cjs +2 -0
- package/dist/lib/{chunk-LIN4KAV3.js → chunk-52VDUP5J.js} +5 -7
- package/dist/lib/chunk-B3EE3VHZ.cjs +127 -0
- package/dist/lib/{chunk-UWHGJ4JS.js → chunk-BLNW3ZQA.js} +483 -1776
- package/dist/lib/chunk-DX2VAXZB.cjs +11 -0
- package/dist/lib/{chunk-VGSV2BEL.cjs → chunk-EFYMNU53.cjs} +6 -12
- package/dist/lib/chunk-FBQIPNRV.cjs +146 -0
- package/dist/lib/chunk-FFT4PWRM.js +1 -0
- package/dist/lib/{chunk-L4NEN725.js → chunk-G7S5PIAC.js} +1 -1
- package/dist/lib/chunk-KFJCWNVG.js +120 -0
- package/dist/lib/chunk-M2U6XIQ2.js +144 -0
- package/dist/lib/chunk-MVIKYHBX.cjs +2 -0
- package/dist/lib/chunk-NYNHNTHT.js +1 -0
- package/dist/lib/{chunk-A5SB72VO.cjs → chunk-PYQADZVV.cjs} +493 -1779
- package/dist/lib/chunk-QP6WX3Q3.js +1190 -0
- package/dist/lib/chunk-S7LLEDQM.cjs +1218 -0
- package/dist/lib/chunk-UHGGYHSK.cjs +175 -0
- package/dist/lib/chunk-YNKFRPUY.js +168 -0
- package/dist/lib/{chunk-ULJVBW4L.cjs → chunk-ZBDVQVUK.cjs} +1 -1
- package/dist/lib/{config-BoGlIhnH.d.cts → config-DTSdCZsw.d.cts} +650 -633
- package/dist/lib/{config-CTej7RMP.d.ts → config-DeUaQYc_.d.ts} +650 -633
- package/dist/lib/config-file.d.cts +4 -5
- package/dist/lib/config-file.d.ts +4 -5
- package/dist/lib/contexts/api-context.cjs +18 -0
- package/dist/lib/contexts/api-context.d.cts +69 -0
- package/dist/lib/contexts/api-context.d.ts +69 -0
- package/dist/lib/contexts/api-context.js +9 -0
- package/dist/lib/contexts/context.cjs +15 -0
- package/dist/lib/contexts/context.d.cts +255 -0
- package/dist/lib/contexts/context.d.ts +255 -0
- package/dist/lib/contexts/context.js +6 -0
- package/dist/lib/contexts/environment-context.cjs +17 -0
- package/dist/lib/contexts/environment-context.d.cts +65 -0
- package/dist/lib/contexts/environment-context.d.ts +65 -0
- package/dist/lib/contexts/environment-context.js +8 -0
- package/dist/lib/contexts/index.cjs +31 -0
- package/dist/lib/contexts/index.d.cts +35 -0
- package/dist/lib/contexts/index.d.ts +35 -0
- package/dist/lib/contexts/index.js +10 -0
- package/dist/lib/contexts/plugin-context.cjs +11 -0
- package/dist/lib/contexts/plugin-context.d.cts +42 -0
- package/dist/lib/contexts/plugin-context.d.ts +42 -0
- package/dist/lib/contexts/plugin-context.js +2 -0
- package/dist/lib/entry.d.cts +2 -4
- package/dist/lib/entry.d.ts +2 -4
- package/dist/lib/index.cjs +96 -74
- package/dist/lib/index.d.cts +26 -23
- package/dist/lib/index.d.ts +26 -23
- package/dist/lib/index.js +18 -12
- package/dist/lib/internal-CpVMJCaU.d.ts +39 -0
- package/dist/lib/internal-ypnrUNZy.d.cts +39 -0
- package/dist/lib/logger.d.cts +4 -5
- package/dist/lib/logger.d.ts +4 -5
- package/dist/lib/typescript/compiler-host.cjs +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +5 -5
- package/dist/lib/typescript/compiler-host.d.ts +5 -5
- package/dist/lib/typescript/compiler-host.js +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +2 -4
- package/dist/lib/typescript/import-transformer.d.ts +2 -4
- package/dist/lib/typescript/index.cjs +29 -24
- package/dist/lib/typescript/index.d.cts +6 -6
- package/dist/lib/typescript/index.d.ts +6 -6
- package/dist/lib/typescript/index.js +3 -2
- package/dist/lib/typescript/isolated-decl.d.cts +2 -1
- package/dist/lib/typescript/isolated-decl.d.ts +2 -1
- package/dist/lib/typescript/program.d.cts +5 -5
- package/dist/lib/typescript/program.d.ts +5 -5
- package/dist/lib/typescript/ts-morph.cjs +11 -0
- package/dist/lib/{create-program.d.ts → typescript/ts-morph.d.cts} +3 -5
- package/dist/lib/{create-program.d.cts → typescript/ts-morph.d.ts} +3 -5
- package/dist/lib/typescript/ts-morph.js +2 -0
- package/dist/lib/unplugin/factory.cjs +8 -4
- package/dist/lib/unplugin/factory.d.cts +27 -10
- package/dist/lib/unplugin/factory.d.ts +27 -10
- package/dist/lib/unplugin/factory.js +7 -3
- package/dist/lib/unplugin/helpers.cjs +11 -0
- package/dist/lib/unplugin/helpers.d.cts +128 -0
- package/dist/lib/unplugin/helpers.d.ts +128 -0
- package/dist/lib/unplugin/helpers.js +2 -0
- package/dist/lib/unplugin/index.cjs +12 -7
- package/dist/lib/unplugin/index.d.cts +6 -8
- package/dist/lib/unplugin/index.d.ts +6 -8
- package/dist/lib/unplugin/index.js +9 -4
- package/dist/lib/unplugin/plugin.cjs +4 -3
- package/dist/lib/unplugin/plugin.d.cts +4 -5
- package/dist/lib/unplugin/plugin.d.ts +4 -5
- package/dist/lib/unplugin/plugin.js +3 -2
- package/dist/lib/unplugin/resolve-id.cjs +2 -2
- package/dist/lib/unplugin/resolve-id.d.cts +5 -5
- package/dist/lib/unplugin/resolve-id.d.ts +5 -5
- package/dist/lib/unplugin/resolve-id.js +1 -1
- package/dist/lib/utilities/bundle.d.cts +2 -4
- package/dist/lib/utilities/bundle.d.ts +2 -4
- package/dist/lib/utilities/cache.d.cts +2 -4
- package/dist/lib/utilities/cache.d.ts +2 -4
- package/dist/lib/utilities/file-header.d.cts +4 -5
- package/dist/lib/utilities/file-header.d.ts +4 -5
- package/dist/lib/utilities/index.cjs +18 -18
- package/dist/lib/utilities/index.d.cts +5 -7
- package/dist/lib/utilities/index.d.ts +5 -7
- package/dist/lib/utilities/index.js +4 -4
- package/dist/lib/utilities/meta.d.cts +4 -5
- package/dist/lib/utilities/meta.d.ts +4 -5
- package/dist/lib/utilities/resolve-path.d.cts +2 -4
- package/dist/lib/utilities/resolve-path.d.ts +2 -4
- package/dist/lib/utilities/resolve.d.cts +2 -4
- package/dist/lib/utilities/resolve.d.ts +2 -4
- package/dist/lib/utilities/source-file.d.cts +2 -4
- package/dist/lib/utilities/source-file.d.ts +2 -4
- package/dist/lib/utilities/source-map.d.cts +2 -4
- package/dist/lib/utilities/source-map.d.ts +2 -4
- package/dist/lib/utilities/worker.d.cts +4 -5
- package/dist/lib/utilities/worker.d.ts +4 -5
- package/dist/lib/utilities/write-file.d.cts +2 -4
- package/dist/lib/utilities/write-file.d.ts +2 -4
- package/dist/next.cjs +8 -8
- package/dist/next.js +5 -5
- package/dist/nuxt.cjs +9 -9
- package/dist/nuxt.js +6 -6
- package/dist/plugin-utils/{context-D1I2JQgs.d.cts → context-DRFZE3XI.d.cts} +535 -518
- package/dist/plugin-utils/{context-D1I2JQgs.d.ts → context-DRFZE3XI.d.ts} +535 -518
- package/dist/plugin-utils/context-helpers.d.cts +2 -4
- package/dist/plugin-utils/context-helpers.d.ts +2 -4
- package/dist/plugin-utils/enforce.d.cts +2 -4
- package/dist/plugin-utils/enforce.d.ts +2 -4
- package/dist/plugin-utils/extend.d.cts +2 -4
- package/dist/plugin-utils/extend.d.ts +2 -4
- 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/helpers.d.cts +2 -4
- package/dist/plugin-utils/helpers.d.ts +2 -4
- package/dist/plugin-utils/index.d.cts +3 -5
- package/dist/plugin-utils/index.d.ts +3 -5
- package/dist/plugin-utils/merge.d.cts +4 -5
- package/dist/plugin-utils/merge.d.ts +4 -5
- package/dist/plugin-utils/paths.d.cts +2 -4
- package/dist/plugin-utils/paths.d.ts +2 -4
- package/dist/{resolved-DYLxPDut.d.cts → resolved-C00CJgsk.d.cts} +128 -9
- package/dist/{resolved-D1ySEdUv.d.ts → resolved-DKFZ11S7.d.ts} +128 -9
- package/dist/rolldown.cjs +7 -7
- package/dist/rolldown.d.cts +3 -5
- package/dist/rolldown.d.ts +3 -5
- package/dist/rolldown.js +4 -4
- package/dist/rollup.cjs +7 -7
- package/dist/rollup.d.cts +3 -5
- package/dist/rollup.d.ts +3 -5
- package/dist/rollup.js +4 -4
- package/dist/rspack.cjs +7 -7
- package/dist/rspack.d.cts +3 -5
- package/dist/rspack.d.ts +3 -5
- package/dist/rspack.js +4 -4
- package/dist/tsup.cjs +8 -8
- package/dist/tsup.js +5 -5
- package/dist/types/api.cjs +4 -0
- package/dist/types/api.d.cts +36 -0
- package/dist/types/api.d.ts +36 -0
- package/dist/types/api.js +1 -0
- package/dist/types/babel.d.cts +3 -5
- package/dist/types/babel.d.ts +3 -5
- package/dist/types/build.d.cts +26 -1
- package/dist/types/build.d.ts +26 -1
- package/dist/types/commands.d.cts +3 -5
- package/dist/types/commands.d.ts +3 -5
- package/dist/types/config.d.cts +3 -5
- package/dist/types/config.d.ts +3 -5
- package/dist/types/context.d.cts +3 -5
- package/dist/types/context.d.ts +3 -5
- package/dist/types/{vfs.cjs → fs.cjs} +3 -3
- package/dist/types/{vfs.d.cts → fs.d.cts} +54 -35
- package/dist/types/{vfs.d.ts → fs.d.ts} +54 -35
- package/dist/types/fs.js +2 -0
- package/dist/types/hooks.d.cts +3 -5
- package/dist/types/hooks.d.ts +3 -5
- package/dist/types/index.cjs +9 -8
- package/dist/types/index.d.cts +8 -9
- package/dist/types/index.d.ts +8 -9
- package/dist/types/index.js +3 -2
- package/dist/types/internal.d.cts +46 -9
- package/dist/types/internal.d.ts +46 -9
- package/dist/types/plugin.d.cts +3 -5
- package/dist/types/plugin.d.ts +3 -5
- package/dist/types/resolved.d.cts +3 -5
- package/dist/types/resolved.d.ts +3 -5
- package/dist/types/tsconfig.d.cts +8 -1
- package/dist/types/tsconfig.d.ts +8 -1
- package/dist/types/typedoc.d.cts +3 -1
- package/dist/types/typedoc.d.ts +3 -1
- package/dist/types/unplugin.d.cts +22 -11
- package/dist/types/unplugin.d.ts +22 -11
- package/dist/unloader.cjs +7 -7
- package/dist/unloader.d.cts +12 -14
- package/dist/unloader.d.ts +12 -14
- package/dist/unloader.js +4 -4
- package/dist/unplugin.cjs +18 -18
- package/dist/unplugin.d.cts +6 -9
- package/dist/unplugin.d.ts +6 -9
- package/dist/unplugin.js +15 -15
- package/dist/vite.cjs +7 -7
- package/dist/vite.d.cts +3 -5
- package/dist/vite.d.ts +3 -5
- package/dist/vite.js +4 -4
- package/dist/webpack.cjs +7 -7
- package/dist/webpack.d.cts +3 -5
- package/dist/webpack.d.ts +3 -5
- package/dist/webpack.js +4 -4
- package/package.json +39 -11
- package/schemas/fs.capnp +73 -15
- package/dist/chunk-RODEAGIJ.cjs +0 -32
- package/dist/chunk-SKLSRHBU.js +0 -29
- package/dist/hooks-D2UGCryi.d.ts +0 -28
- package/dist/hooks-DJG3B-Hw.d.cts +0 -28
- package/dist/lib/create-program.cjs +0 -11
- package/dist/lib/create-program.js +0 -2
- package/dist/lib/hooks-CDLPWf7j.d.cts +0 -28
- package/dist/lib/hooks-Cn-IqwYp.d.ts +0 -28
- package/dist/types/vfs.js +0 -2
- /package/dist/{chunk-KIKTWMI3.cjs → chunk-2NCILNCH.cjs} +0 -0
- /package/dist/{chunk-XVLT2RQ2.js → chunk-BLNT5INX.js} +0 -0
- /package/dist/{lib/chunk-RJ4277VZ.cjs → chunk-GRU7B3QM.cjs} +0 -0
- /package/dist/{lib/chunk-ZBLDAREE.js → chunk-T2P533I5.js} +0 -0
- /package/dist/lib/{chunk-CGYAL3S2.cjs → chunk-4EIXDLFP.cjs} +0 -0
- /package/dist/lib/{chunk-CXRSMYEX.js → chunk-RD5AUWXN.js} +0 -0
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import { PrimitiveJsonValue } from '@stryke/json/types';
|
|
2
1
|
import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
3
2
|
|
|
4
3
|
type VirtualFileExtension = "js" | "ts" | "jsx" | "tsx";
|
|
5
4
|
declare const __VFS_PATCH__ = "__VFS_PATCH__";
|
|
6
5
|
declare const __VFS_REVERT__ = "__VFS_REVERT__";
|
|
7
6
|
type OutputModeType = "fs" | "virtual";
|
|
8
|
-
interface
|
|
7
|
+
interface VirtualFileMetadata {
|
|
9
8
|
/**
|
|
10
|
-
* The
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* If no specific id is provided, it defaults to the file's {@link path}.
|
|
9
|
+
* The identifier for the file data.
|
|
14
10
|
*/
|
|
15
11
|
id: string;
|
|
16
12
|
/**
|
|
17
|
-
*
|
|
13
|
+
* The timestamp of the virtual file.
|
|
18
14
|
*/
|
|
19
|
-
|
|
15
|
+
timestamp: number;
|
|
20
16
|
/**
|
|
21
|
-
* The
|
|
17
|
+
* The type of the file.
|
|
22
18
|
*
|
|
23
19
|
* @remarks
|
|
24
20
|
* This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
|
|
@@ -26,62 +22,72 @@ interface VirtualFile {
|
|
|
26
22
|
* - `entry`: Indicates that the file is an entry point for execution.
|
|
27
23
|
* - `normal`: Indicates that the file is a standard file without any special role.
|
|
28
24
|
*/
|
|
29
|
-
|
|
25
|
+
type: string;
|
|
30
26
|
/**
|
|
31
27
|
* The output mode of the file.
|
|
32
|
-
*
|
|
33
|
-
* @remarks
|
|
34
|
-
* This indicates whether the file is intended to be written to the actual file system (`fs`) or kept in the virtual file system (`virtual`).
|
|
35
|
-
*/
|
|
36
|
-
mode: OutputModeType;
|
|
37
|
-
/**
|
|
38
|
-
* A virtual (or actual) path to the file in the file system.
|
|
39
28
|
*/
|
|
40
|
-
|
|
29
|
+
mode: string;
|
|
41
30
|
/**
|
|
42
|
-
*
|
|
31
|
+
* Additional metadata associated with the file.
|
|
43
32
|
*/
|
|
44
|
-
|
|
33
|
+
properties: Record<string, string>;
|
|
45
34
|
}
|
|
46
|
-
interface
|
|
35
|
+
interface VirtualFileData {
|
|
47
36
|
/**
|
|
48
37
|
* The identifier for the file data.
|
|
49
38
|
*/
|
|
50
|
-
id
|
|
39
|
+
id?: string;
|
|
51
40
|
/**
|
|
52
|
-
* The
|
|
41
|
+
* The contents of the virtual file.
|
|
53
42
|
*/
|
|
54
|
-
|
|
43
|
+
code: string;
|
|
44
|
+
/**
|
|
45
|
+
* The type of the file.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
|
|
49
|
+
* - `builtin`: Indicates that the file is a built-in module provided by the system.
|
|
50
|
+
* - `entry`: Indicates that the file is an entry point for execution.
|
|
51
|
+
* - `chunk`: Indicates that the file is a code chunk, typically used in code-splitting scenarios.
|
|
52
|
+
* - `prebuilt-chunk`: Indicates that the file is a prebuilt code chunk.
|
|
53
|
+
* - `asset`: Indicates that the file is a static asset, such as an image or stylesheet.
|
|
54
|
+
* - `normal`: Indicates that the file is a standard file without any special role.
|
|
55
|
+
*/
|
|
56
|
+
type?: string;
|
|
55
57
|
/**
|
|
56
58
|
* The output mode of the file.
|
|
57
59
|
*/
|
|
58
|
-
mode
|
|
60
|
+
mode?: string;
|
|
59
61
|
/**
|
|
60
62
|
* Additional metadata associated with the file.
|
|
61
63
|
*/
|
|
62
|
-
properties
|
|
64
|
+
properties?: Record<string, string>;
|
|
63
65
|
}
|
|
64
|
-
interface
|
|
66
|
+
interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
|
|
65
67
|
/**
|
|
66
|
-
*
|
|
68
|
+
* An additional name for the file.
|
|
67
69
|
*/
|
|
68
|
-
|
|
70
|
+
path: string;
|
|
69
71
|
/**
|
|
70
|
-
*
|
|
72
|
+
* The timestamp of the virtual file.
|
|
71
73
|
*/
|
|
72
|
-
|
|
74
|
+
timestamp: number;
|
|
73
75
|
}
|
|
74
76
|
interface ResolveFSOptions {
|
|
75
77
|
mode?: OutputModeType;
|
|
76
78
|
}
|
|
77
79
|
type MakeDirectoryOptions = (Mode | MakeDirectoryOptions$1) & ResolveFSOptions;
|
|
78
80
|
interface PowerlinesWriteFileOptions extends ResolveFSOptions {
|
|
81
|
+
/**
|
|
82
|
+
* Should the file skip formatting before being written?
|
|
83
|
+
*
|
|
84
|
+
* @defaultValue false
|
|
85
|
+
*/
|
|
79
86
|
skipFormat?: boolean;
|
|
80
87
|
}
|
|
81
88
|
type NodeWriteFileOptions = WriteFileOptions$1;
|
|
82
89
|
type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
|
|
83
|
-
type
|
|
84
|
-
type WriteFileData = string | NodeJS.ArrayBufferView | PowerLinesWriteFileData;
|
|
90
|
+
type WriteFileData = string | NodeJS.ArrayBufferView | VirtualFileData;
|
|
85
91
|
interface ResolvePathOptions extends ResolveFSOptions {
|
|
86
92
|
/**
|
|
87
93
|
* Should the resolved path include the file extension?
|
|
@@ -96,7 +102,7 @@ interface ResolvePathOptions extends ResolveFSOptions {
|
|
|
96
102
|
/**
|
|
97
103
|
* The type of the path to resolve.
|
|
98
104
|
*/
|
|
99
|
-
|
|
105
|
+
pathType?: "file" | "directory";
|
|
100
106
|
}
|
|
101
107
|
interface VirtualFileSystemInterface {
|
|
102
108
|
/**
|
|
@@ -384,5 +390,18 @@ interface VirtualFileSystemInterface {
|
|
|
384
390
|
*/
|
|
385
391
|
dispose: () => Promise<void>;
|
|
386
392
|
}
|
|
393
|
+
declare type __ΩVirtualFileExtension = any[];
|
|
394
|
+
declare type __ΩOutputModeType = any[];
|
|
395
|
+
declare type __ΩVirtualFileMetadata = any[];
|
|
396
|
+
declare type __ΩVirtualFileData = any[];
|
|
397
|
+
declare type __ΩVirtualFile = any[];
|
|
398
|
+
declare type __ΩResolveFSOptions = any[];
|
|
399
|
+
declare type __ΩMakeDirectoryOptions = any[];
|
|
400
|
+
declare type __ΩPowerlinesWriteFileOptions = any[];
|
|
401
|
+
declare type __ΩNodeWriteFileOptions = any[];
|
|
402
|
+
declare type __ΩWriteFileOptions = any[];
|
|
403
|
+
declare type __ΩWriteFileData = any[];
|
|
404
|
+
declare type __ΩResolvePathOptions = any[];
|
|
405
|
+
declare type __ΩVirtualFileSystemInterface = any[];
|
|
387
406
|
|
|
388
|
-
export { type MakeDirectoryOptions, type NodeWriteFileOptions, type OutputModeType, type
|
|
407
|
+
export { type MakeDirectoryOptions, type NodeWriteFileOptions, type OutputModeType, type PowerlinesWriteFileOptions, type ResolveFSOptions, type ResolvePathOptions, type VirtualFile, type VirtualFileData, type VirtualFileExtension, type VirtualFileMetadata, type VirtualFileSystemInterface, type WriteFileData, type WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, type __ΩMakeDirectoryOptions, type __ΩNodeWriteFileOptions, type __ΩOutputModeType, type __ΩPowerlinesWriteFileOptions, type __ΩResolveFSOptions, type __ΩResolvePathOptions, type __ΩVirtualFile, type __ΩVirtualFileData, type __ΩVirtualFileExtension, type __ΩVirtualFileMetadata, type __ΩVirtualFileSystemInterface, type __ΩWriteFileData, type __ΩWriteFileOptions };
|
package/dist/types/fs.js
ADDED
package/dist/types/hooks.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { bw as BaseHookKeys, bv as BaseHooks, bC as BaseHooksList, bB as BaseHooksListItem, by as ExternalHookKeys, bx as ExternalHooks, bD as ExternalHooksListItem, bA as HookKeys, bz as Hooks, bE as HooksList, bF as InferHookHandler, bH as InferHookParameters, bG as InferHookReturnType, bI as InferHookThisType, bK as __ΩBaseHookKeys, bJ as __ΩBaseHooks, bQ as __ΩBaseHooksList, bP as __ΩBaseHooksListItem, bM as __ΩExternalHookKeys, bL as __ΩExternalHooks, bR as __ΩExternalHooksListItem, bO as __ΩHookKeys, bN as __ΩHooks, bS as __ΩHooksList, bT as __ΩInferHookHandler, bV as __ΩInferHookParameters, bU as __ΩInferHookReturnType, bW as __ΩInferHookThisType } from '../resolved-C00CJgsk.cjs';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import '@stryke/types/configuration';
|
|
4
4
|
import '@stryke/types/file';
|
|
@@ -24,14 +24,12 @@ import 'jest-worker';
|
|
|
24
24
|
import 'jiti';
|
|
25
25
|
import 'magic-string';
|
|
26
26
|
import 'memfs';
|
|
27
|
-
import 'oxc-parser';
|
|
28
27
|
import 'semver';
|
|
29
28
|
import 'unimport';
|
|
30
29
|
import 'unplugin';
|
|
30
|
+
import './fs.cjs';
|
|
31
|
+
import 'node:fs';
|
|
31
32
|
import '@stryke/types/array';
|
|
32
33
|
import './tsconfig.cjs';
|
|
33
34
|
import '@stryke/types/tsconfig';
|
|
34
35
|
import 'typescript';
|
|
35
|
-
import './vfs.cjs';
|
|
36
|
-
import '@stryke/json/types';
|
|
37
|
-
import 'node:fs';
|
package/dist/types/hooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { bw as BaseHookKeys, bv as BaseHooks, bC as BaseHooksList, bB as BaseHooksListItem, by as ExternalHookKeys, bx as ExternalHooks, bD as ExternalHooksListItem, bA as HookKeys, bz as Hooks, bE as HooksList, bF as InferHookHandler, bH as InferHookParameters, bG as InferHookReturnType, bI as InferHookThisType, bK as __ΩBaseHookKeys, bJ as __ΩBaseHooks, bQ as __ΩBaseHooksList, bP as __ΩBaseHooksListItem, bM as __ΩExternalHookKeys, bL as __ΩExternalHooks, bR as __ΩExternalHooksListItem, bO as __ΩHookKeys, bN as __ΩHooks, bS as __ΩHooksList, bT as __ΩInferHookHandler, bV as __ΩInferHookParameters, bU as __ΩInferHookReturnType, bW as __ΩInferHookThisType } from '../resolved-DKFZ11S7.js';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import '@stryke/types/configuration';
|
|
4
4
|
import '@stryke/types/file';
|
|
@@ -24,14 +24,12 @@ import 'jest-worker';
|
|
|
24
24
|
import 'jiti';
|
|
25
25
|
import 'magic-string';
|
|
26
26
|
import 'memfs';
|
|
27
|
-
import 'oxc-parser';
|
|
28
27
|
import 'semver';
|
|
29
28
|
import 'unimport';
|
|
30
29
|
import 'unplugin';
|
|
30
|
+
import './fs.js';
|
|
31
|
+
import 'node:fs';
|
|
31
32
|
import '@stryke/types/array';
|
|
32
33
|
import './tsconfig.js';
|
|
33
34
|
import '@stryke/types/tsconfig';
|
|
34
35
|
import 'typescript';
|
|
35
|
-
import './vfs.js';
|
|
36
|
-
import '@stryke/json/types';
|
|
37
|
-
import 'node:fs';
|
package/dist/types/index.cjs
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../chunk-
|
|
3
|
+
require('../chunk-2NCILNCH.cjs');
|
|
4
4
|
require('../chunk-KALR2O2F.cjs');
|
|
5
5
|
require('../chunk-YRJ4MLVL.cjs');
|
|
6
6
|
require('../chunk-AENPRFWJ.cjs');
|
|
7
7
|
require('../chunk-GHJU2KGP.cjs');
|
|
8
|
+
require('../chunk-GRU7B3QM.cjs');
|
|
8
9
|
require('../chunk-ZC43PZXS.cjs');
|
|
9
10
|
require('../chunk-2NO7N5OW.cjs');
|
|
10
11
|
require('../chunk-7GYTTM4M.cjs');
|
|
11
12
|
var chunkXP7OML7S_cjs = require('../chunk-XP7OML7S.cjs');
|
|
12
13
|
require('../chunk-HQFZ64VC.cjs');
|
|
13
14
|
var chunkETKZMGLN_cjs = require('../chunk-ETKZMGLN.cjs');
|
|
14
|
-
var chunk3WDMXRK6_cjs = require('../chunk-3WDMXRK6.cjs');
|
|
15
15
|
var chunkPAMSESZV_cjs = require('../chunk-PAMSESZV.cjs');
|
|
16
|
+
var chunkAYKZK666_cjs = require('../chunk-AYKZK666.cjs');
|
|
16
17
|
require('../chunk-USNT2KNT.cjs');
|
|
17
18
|
|
|
18
19
|
|
|
@@ -25,15 +26,15 @@ Object.defineProperty(exports, "PLUGIN_NON_HOOK_FIELDS", {
|
|
|
25
26
|
enumerable: true,
|
|
26
27
|
get: function () { return chunkETKZMGLN_cjs.PLUGIN_NON_HOOK_FIELDS; }
|
|
27
28
|
});
|
|
28
|
-
Object.defineProperty(exports, "
|
|
29
|
+
Object.defineProperty(exports, "SUPPORTED_COMMANDS", {
|
|
29
30
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkPAMSESZV_cjs.SUPPORTED_COMMANDS; }
|
|
31
32
|
});
|
|
32
|
-
Object.defineProperty(exports, "
|
|
33
|
+
Object.defineProperty(exports, "__VFS_PATCH__", {
|
|
33
34
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkAYKZK666_cjs.__VFS_PATCH__; }
|
|
35
36
|
});
|
|
36
|
-
Object.defineProperty(exports, "
|
|
37
|
+
Object.defineProperty(exports, "__VFS_REVERT__", {
|
|
37
38
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkAYKZK666_cjs.__VFS_REVERT__; }
|
|
39
40
|
});
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
1
|
+
export { A as API, _ as __ΩAPI } from '../api--9pVSIbm.cjs';
|
|
2
|
+
export { b8 as APIContext, ae as AnyUserConfig, B as BabelPluginPass, cn as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, G as BabelUserConfig, H as BaseConfig, bw as BaseHookKeys, bv as BaseHooks, bC as BaseHooksList, bB as BaseHooksListItem, b$ as BasePluginHookFunctions, a9 as BuildInlineConfig, c0 as BuildPlugin, bc as BuildPluginContext, a7 as CleanInlineConfig, C as CommandType, u as Commands, K as CommonUserConfig, ad as ConfigEnv, b_ as ConfigResult, b7 as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, ac as DeployInlineConfig, ab as DocsInlineConfig, cv as ESBuildResolvedConfig, Y as ESBuildUserConfig, J as EnvironmentConfig, ba as EnvironmentContext, b9 as EnvironmentContextPlugin, co as EnvironmentResolvedConfig, by as ExternalHookKeys, bx as ExternalHooks, bD as ExternalHooksListItem, c2 as ExternalPluginHookFunctions, c1 as ExternalPluginHookFunctionsVariant, cA as FarmResolvedConfig, a0 as FarmUserConfig, bZ as GenerateTypesResult, bA as HookKeys, bz as Hooks, bE as HooksList, I as ImportDefinition, h as ImportSpecifier, bF as InferHookHandler, bH as InferHookParameters, bG as InferHookReturnType, bI as InferHookThisType, cB as InferResolvedConfig, a1 as InferUserConfig, b5 as InitContextOptions, a2 as InitialUserConfig, a5 as InlineConfig, aa as LintInlineConfig, L as LogFn, aZ as LogLevel, a$ as MetaInfo, N as NamedImportDefinition, a6 as NewInlineConfig, O as OutputConfig, cq as OutputResolvedConfig, c7 as PLUGIN_NON_HOOK_FIELDS, a3 as ParsedUserConfig, A as PartialPlugin, E as PartialPluginFactory, c6 as Plugin, c5 as PluginBuildPlugins, z as PluginConfig, y as PluginConfigObject, x as PluginConfigTuple, bb as PluginContext, P as PluginFactory, bY as PluginHook, c3 as PluginHookFunctions, bX as PluginHookObject, c4 as PluginHooks, c8 as PluginNonHookFields, a4 as PowerlinesCommand, a8 as PrepareInlineConfig, F as ProjectType, cp as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, cr as ResolvedConfig, cm as ResolvedEntryTypeDefinition, b0 as Resolver, cx as RolldownResolvedConfig, V as RolldownUserConfig, cw as RollupResolvedConfig, T as RollupUserConfig, cu as RspackResolvedConfig, Q as RspackUserConfig, S as SUPPORTED_COMMANDS, b4 as SelectHooksOptions, bd as SerializedVirtualFileSystem, b2 as SourceFile, b1 as TransformResult, cy as TsupResolvedConfig, $ as TsupUserConfig, cz as UnbuildResolvedConfig, Z as UnbuildUserConfig, b3 as UnimportContext, b6 as UnresolvedContext, U as UserConfig, ai as UserConfigExport, ah as UserConfigFn, af as UserConfigFnObject, ag as UserConfigFnPromise, cs as ViteResolvedConfig, X as ViteUserConfig, ct as WebpackResolvedConfig, M as WebpackUserConfig, a_ as WorkerProcess, W as WorkspaceConfig, bp as __ΩAPIContext, aU as __ΩAnyUserConfig, k as __ΩBabelPluginPass, cD as __ΩBabelResolvedConfig, p as __ΩBabelTransformInput, m as __ΩBabelTransformPlugin, r as __ΩBabelTransformPluginBuilder, q as __ΩBabelTransformPluginBuilderParams, l as __ΩBabelTransformPluginFilter, n as __ΩBabelTransformPluginOptions, as as __ΩBabelUserConfig, au as __ΩBaseConfig, bK as __ΩBaseHookKeys, bJ as __ΩBaseHooks, bQ as __ΩBaseHooksList, bP as __ΩBaseHooksListItem, cd as __ΩBasePluginHookFunctions, aP as __ΩBuildInlineConfig, ce as __ΩBuildPlugin, bt as __ΩBuildPluginContext, aN as __ΩCleanInlineConfig, v as __ΩCommandType, w as __ΩCommands, aw as __ΩCommonUserConfig, aT as __ΩConfigEnv, cc as __ΩConfigResult, bo as __ΩContext, s as __ΩDeclareBabelTransformPluginReturn, i as __ΩDefaultImportDefinition, aS as __ΩDeployInlineConfig, aR as __ΩDocsInlineConfig, cL as __ΩESBuildResolvedConfig, aD as __ΩESBuildUserConfig, av as __ΩEnvironmentConfig, br as __ΩEnvironmentContext, bq as __ΩEnvironmentContextPlugin, cE as __ΩEnvironmentResolvedConfig, bM as __ΩExternalHookKeys, bL as __ΩExternalHooks, bR as __ΩExternalHooksListItem, cg as __ΩExternalPluginHookFunctions, cf as __ΩExternalPluginHookFunctionsVariant, cQ as __ΩFarmResolvedConfig, aG as __ΩFarmUserConfig, cb as __ΩGenerateTypesResult, bO as __ΩHookKeys, bN as __ΩHooks, bS as __ΩHooksList, j as __ΩImportDefinition, t as __ΩImportSpecifier, bT as __ΩInferHookHandler, bV as __ΩInferHookParameters, bU as __ΩInferHookReturnType, bW as __ΩInferHookThisType, cR as __ΩInferResolvedConfig, aH as __ΩInferUserConfig, bm as __ΩInitContextOptions, aI as __ΩInitialUserConfig, aL as __ΩInlineConfig, aQ as __ΩLintInlineConfig, aj as __ΩLogFn, be as __ΩLogLevel, bg as __ΩMetaInfo, _ as __ΩNamedImportDefinition, aM as __ΩNewInlineConfig, at as __ΩOutputConfig, cG as __ΩOutputResolvedConfig, aJ as __ΩParsedUserConfig, ap as __ΩPartialPlugin, aq as __ΩPartialPluginFactory, ck as __ΩPlugin, cj as __ΩPluginBuildPlugins, ao as __ΩPluginConfig, an as __ΩPluginConfigObject, am as __ΩPluginConfigTuple, bs as __ΩPluginContext, al as __ΩPluginFactory, ca as __ΩPluginHook, ch as __ΩPluginHookFunctions, c9 as __ΩPluginHookObject, ci as __ΩPluginHooks, cl as __ΩPluginNonHookFields, aK as __ΩPowerlinesCommand, aO as __ΩPrepareInlineConfig, ar as __ΩProjectType, cF as __ΩResolvedAssetGlob, o as __ΩResolvedBabelTransformPluginOptions, cH as __ΩResolvedConfig, cC as __ΩResolvedEntryTypeDefinition, bh as __ΩResolver, cN as __ΩRolldownResolvedConfig, aB as __ΩRolldownUserConfig, cM as __ΩRollupResolvedConfig, aA as __ΩRollupUserConfig, cK as __ΩRspackResolvedConfig, az as __ΩRspackUserConfig, bl as __ΩSelectHooksOptions, bu as __ΩSerializedVirtualFileSystem, bj as __ΩSourceFile, bi as __ΩTransformResult, cO as __ΩTsupResolvedConfig, aF as __ΩTsupUserConfig, cP as __ΩUnbuildResolvedConfig, aE as __ΩUnbuildUserConfig, bk as __ΩUnimportContext, bn as __ΩUnresolvedContext, ax as __ΩUserConfig, aY as __ΩUserConfigExport, aX as __ΩUserConfigFn, aV as __ΩUserConfigFnObject, aW as __ΩUserConfigFnPromise, cI as __ΩViteResolvedConfig, aC as __ΩViteUserConfig, cJ as __ΩWebpackResolvedConfig, ay as __ΩWebpackUserConfig, bf as __ΩWorkerProcess, ak as __ΩWorkspaceConfig } from '../resolved-C00CJgsk.cjs';
|
|
3
|
+
export { BuildConfig, BuildResolvedConfig, BuildVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownBuildOutputConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuildVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, __ΩBuildConfig, __ΩBuildResolvedConfig, __ΩBuildVariant, __ΩESBuildBuildConfig, __ΩESBuildResolvedBuildConfig, __ΩFarmBuildConfig, __ΩFarmResolvedBuildConfig, __ΩInferUnpluginVariant, __ΩRolldownBuildConfig, __ΩRolldownBuildOutputConfig, __ΩRolldownResolvedBuildConfig, __ΩRollupBuildConfig, __ΩRollupBuildOutputConfig, __ΩRollupResolvedBuildConfig, __ΩRspackBuildConfig, __ΩRspackResolvedBuildConfig, __ΩTsupBuildConfig, __ΩTsupResolvedBuildConfig, __ΩUnbuildBuildConfig, __ΩUnbuildResolvedBuildConfig, __ΩUnpluginBuildVariant, __ΩViteBuildConfig, __ΩViteResolvedBuildConfig, __ΩWebpackBuildConfig, __ΩWebpackResolvedBuildConfig } from './build.cjs';
|
|
4
|
+
export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerlinesWriteFileOptions, ResolveFSOptions, ResolvePathOptions, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteFileData, WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, __ΩMakeDirectoryOptions, __ΩNodeWriteFileOptions, __ΩOutputModeType, __ΩPowerlinesWriteFileOptions, __ΩResolveFSOptions, __ΩResolvePathOptions, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteFileData, __ΩWriteFileOptions } from './fs.cjs';
|
|
5
|
+
export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from './tsconfig.cjs';
|
|
6
|
+
export { MarkdownPageEvent, MarkdownRendererEvent, __ΩMarkdownPageEvent, __ΩMarkdownRendererEvent } from './typedoc.cjs';
|
|
7
|
+
export { InferUnpluginOptions, PowerlinesUnpluginFactory, PowerlinesUnpluginOptions, UnpluginUserConfig, __ΩInferUnpluginOptions, __ΩPowerlinesUnpluginFactory, __ΩPowerlinesUnpluginOptions, __ΩUnpluginUserConfig } from './unplugin.cjs';
|
|
7
8
|
import '@stryke/types/base';
|
|
8
9
|
import '@stryke/types/configuration';
|
|
9
10
|
import '@stryke/types/file';
|
|
@@ -20,7 +21,6 @@ import 'jest-worker';
|
|
|
20
21
|
import 'jiti';
|
|
21
22
|
import 'magic-string';
|
|
22
23
|
import 'memfs';
|
|
23
|
-
import 'oxc-parser';
|
|
24
24
|
import 'semver';
|
|
25
25
|
import 'unimport';
|
|
26
26
|
import 'unplugin';
|
|
@@ -33,9 +33,8 @@ import 'esbuild';
|
|
|
33
33
|
import 'rolldown';
|
|
34
34
|
import 'rollup';
|
|
35
35
|
import 'webpack';
|
|
36
|
+
import 'node:fs';
|
|
36
37
|
import '@stryke/types/tsconfig';
|
|
37
38
|
import 'typescript';
|
|
38
39
|
import 'typedoc';
|
|
39
40
|
import 'typedoc-plugin-markdown';
|
|
40
|
-
import '@stryke/json/types';
|
|
41
|
-
import 'node:fs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
1
|
+
export { A as API, _ as __ΩAPI } from '../api-DxPACGY4.js';
|
|
2
|
+
export { b8 as APIContext, ae as AnyUserConfig, B as BabelPluginPass, cn as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, G as BabelUserConfig, H as BaseConfig, bw as BaseHookKeys, bv as BaseHooks, bC as BaseHooksList, bB as BaseHooksListItem, b$ as BasePluginHookFunctions, a9 as BuildInlineConfig, c0 as BuildPlugin, bc as BuildPluginContext, a7 as CleanInlineConfig, C as CommandType, u as Commands, K as CommonUserConfig, ad as ConfigEnv, b_ as ConfigResult, b7 as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, ac as DeployInlineConfig, ab as DocsInlineConfig, cv as ESBuildResolvedConfig, Y as ESBuildUserConfig, J as EnvironmentConfig, ba as EnvironmentContext, b9 as EnvironmentContextPlugin, co as EnvironmentResolvedConfig, by as ExternalHookKeys, bx as ExternalHooks, bD as ExternalHooksListItem, c2 as ExternalPluginHookFunctions, c1 as ExternalPluginHookFunctionsVariant, cA as FarmResolvedConfig, a0 as FarmUserConfig, bZ as GenerateTypesResult, bA as HookKeys, bz as Hooks, bE as HooksList, I as ImportDefinition, h as ImportSpecifier, bF as InferHookHandler, bH as InferHookParameters, bG as InferHookReturnType, bI as InferHookThisType, cB as InferResolvedConfig, a1 as InferUserConfig, b5 as InitContextOptions, a2 as InitialUserConfig, a5 as InlineConfig, aa as LintInlineConfig, L as LogFn, aZ as LogLevel, a$ as MetaInfo, N as NamedImportDefinition, a6 as NewInlineConfig, O as OutputConfig, cq as OutputResolvedConfig, c7 as PLUGIN_NON_HOOK_FIELDS, a3 as ParsedUserConfig, A as PartialPlugin, E as PartialPluginFactory, c6 as Plugin, c5 as PluginBuildPlugins, z as PluginConfig, y as PluginConfigObject, x as PluginConfigTuple, bb as PluginContext, P as PluginFactory, bY as PluginHook, c3 as PluginHookFunctions, bX as PluginHookObject, c4 as PluginHooks, c8 as PluginNonHookFields, a4 as PowerlinesCommand, a8 as PrepareInlineConfig, F as ProjectType, cp as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, cr as ResolvedConfig, cm as ResolvedEntryTypeDefinition, b0 as Resolver, cx as RolldownResolvedConfig, V as RolldownUserConfig, cw as RollupResolvedConfig, T as RollupUserConfig, cu as RspackResolvedConfig, Q as RspackUserConfig, S as SUPPORTED_COMMANDS, b4 as SelectHooksOptions, bd as SerializedVirtualFileSystem, b2 as SourceFile, b1 as TransformResult, cy as TsupResolvedConfig, $ as TsupUserConfig, cz as UnbuildResolvedConfig, Z as UnbuildUserConfig, b3 as UnimportContext, b6 as UnresolvedContext, U as UserConfig, ai as UserConfigExport, ah as UserConfigFn, af as UserConfigFnObject, ag as UserConfigFnPromise, cs as ViteResolvedConfig, X as ViteUserConfig, ct as WebpackResolvedConfig, M as WebpackUserConfig, a_ as WorkerProcess, W as WorkspaceConfig, bp as __ΩAPIContext, aU as __ΩAnyUserConfig, k as __ΩBabelPluginPass, cD as __ΩBabelResolvedConfig, p as __ΩBabelTransformInput, m as __ΩBabelTransformPlugin, r as __ΩBabelTransformPluginBuilder, q as __ΩBabelTransformPluginBuilderParams, l as __ΩBabelTransformPluginFilter, n as __ΩBabelTransformPluginOptions, as as __ΩBabelUserConfig, au as __ΩBaseConfig, bK as __ΩBaseHookKeys, bJ as __ΩBaseHooks, bQ as __ΩBaseHooksList, bP as __ΩBaseHooksListItem, cd as __ΩBasePluginHookFunctions, aP as __ΩBuildInlineConfig, ce as __ΩBuildPlugin, bt as __ΩBuildPluginContext, aN as __ΩCleanInlineConfig, v as __ΩCommandType, w as __ΩCommands, aw as __ΩCommonUserConfig, aT as __ΩConfigEnv, cc as __ΩConfigResult, bo as __ΩContext, s as __ΩDeclareBabelTransformPluginReturn, i as __ΩDefaultImportDefinition, aS as __ΩDeployInlineConfig, aR as __ΩDocsInlineConfig, cL as __ΩESBuildResolvedConfig, aD as __ΩESBuildUserConfig, av as __ΩEnvironmentConfig, br as __ΩEnvironmentContext, bq as __ΩEnvironmentContextPlugin, cE as __ΩEnvironmentResolvedConfig, bM as __ΩExternalHookKeys, bL as __ΩExternalHooks, bR as __ΩExternalHooksListItem, cg as __ΩExternalPluginHookFunctions, cf as __ΩExternalPluginHookFunctionsVariant, cQ as __ΩFarmResolvedConfig, aG as __ΩFarmUserConfig, cb as __ΩGenerateTypesResult, bO as __ΩHookKeys, bN as __ΩHooks, bS as __ΩHooksList, j as __ΩImportDefinition, t as __ΩImportSpecifier, bT as __ΩInferHookHandler, bV as __ΩInferHookParameters, bU as __ΩInferHookReturnType, bW as __ΩInferHookThisType, cR as __ΩInferResolvedConfig, aH as __ΩInferUserConfig, bm as __ΩInitContextOptions, aI as __ΩInitialUserConfig, aL as __ΩInlineConfig, aQ as __ΩLintInlineConfig, aj as __ΩLogFn, be as __ΩLogLevel, bg as __ΩMetaInfo, _ as __ΩNamedImportDefinition, aM as __ΩNewInlineConfig, at as __ΩOutputConfig, cG as __ΩOutputResolvedConfig, aJ as __ΩParsedUserConfig, ap as __ΩPartialPlugin, aq as __ΩPartialPluginFactory, ck as __ΩPlugin, cj as __ΩPluginBuildPlugins, ao as __ΩPluginConfig, an as __ΩPluginConfigObject, am as __ΩPluginConfigTuple, bs as __ΩPluginContext, al as __ΩPluginFactory, ca as __ΩPluginHook, ch as __ΩPluginHookFunctions, c9 as __ΩPluginHookObject, ci as __ΩPluginHooks, cl as __ΩPluginNonHookFields, aK as __ΩPowerlinesCommand, aO as __ΩPrepareInlineConfig, ar as __ΩProjectType, cF as __ΩResolvedAssetGlob, o as __ΩResolvedBabelTransformPluginOptions, cH as __ΩResolvedConfig, cC as __ΩResolvedEntryTypeDefinition, bh as __ΩResolver, cN as __ΩRolldownResolvedConfig, aB as __ΩRolldownUserConfig, cM as __ΩRollupResolvedConfig, aA as __ΩRollupUserConfig, cK as __ΩRspackResolvedConfig, az as __ΩRspackUserConfig, bl as __ΩSelectHooksOptions, bu as __ΩSerializedVirtualFileSystem, bj as __ΩSourceFile, bi as __ΩTransformResult, cO as __ΩTsupResolvedConfig, aF as __ΩTsupUserConfig, cP as __ΩUnbuildResolvedConfig, aE as __ΩUnbuildUserConfig, bk as __ΩUnimportContext, bn as __ΩUnresolvedContext, ax as __ΩUserConfig, aY as __ΩUserConfigExport, aX as __ΩUserConfigFn, aV as __ΩUserConfigFnObject, aW as __ΩUserConfigFnPromise, cI as __ΩViteResolvedConfig, aC as __ΩViteUserConfig, cJ as __ΩWebpackResolvedConfig, ay as __ΩWebpackUserConfig, bf as __ΩWorkerProcess, ak as __ΩWorkspaceConfig } from '../resolved-DKFZ11S7.js';
|
|
3
|
+
export { BuildConfig, BuildResolvedConfig, BuildVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownBuildOutputConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuildVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, __ΩBuildConfig, __ΩBuildResolvedConfig, __ΩBuildVariant, __ΩESBuildBuildConfig, __ΩESBuildResolvedBuildConfig, __ΩFarmBuildConfig, __ΩFarmResolvedBuildConfig, __ΩInferUnpluginVariant, __ΩRolldownBuildConfig, __ΩRolldownBuildOutputConfig, __ΩRolldownResolvedBuildConfig, __ΩRollupBuildConfig, __ΩRollupBuildOutputConfig, __ΩRollupResolvedBuildConfig, __ΩRspackBuildConfig, __ΩRspackResolvedBuildConfig, __ΩTsupBuildConfig, __ΩTsupResolvedBuildConfig, __ΩUnbuildBuildConfig, __ΩUnbuildResolvedBuildConfig, __ΩUnpluginBuildVariant, __ΩViteBuildConfig, __ΩViteResolvedBuildConfig, __ΩWebpackBuildConfig, __ΩWebpackResolvedBuildConfig } from './build.js';
|
|
4
|
+
export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerlinesWriteFileOptions, ResolveFSOptions, ResolvePathOptions, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteFileData, WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, __ΩMakeDirectoryOptions, __ΩNodeWriteFileOptions, __ΩOutputModeType, __ΩPowerlinesWriteFileOptions, __ΩResolveFSOptions, __ΩResolvePathOptions, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteFileData, __ΩWriteFileOptions } from './fs.js';
|
|
5
|
+
export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from './tsconfig.js';
|
|
6
|
+
export { MarkdownPageEvent, MarkdownRendererEvent, __ΩMarkdownPageEvent, __ΩMarkdownRendererEvent } from './typedoc.js';
|
|
7
|
+
export { InferUnpluginOptions, PowerlinesUnpluginFactory, PowerlinesUnpluginOptions, UnpluginUserConfig, __ΩInferUnpluginOptions, __ΩPowerlinesUnpluginFactory, __ΩPowerlinesUnpluginOptions, __ΩUnpluginUserConfig } from './unplugin.js';
|
|
7
8
|
import '@stryke/types/base';
|
|
8
9
|
import '@stryke/types/configuration';
|
|
9
10
|
import '@stryke/types/file';
|
|
@@ -20,7 +21,6 @@ import 'jest-worker';
|
|
|
20
21
|
import 'jiti';
|
|
21
22
|
import 'magic-string';
|
|
22
23
|
import 'memfs';
|
|
23
|
-
import 'oxc-parser';
|
|
24
24
|
import 'semver';
|
|
25
25
|
import 'unimport';
|
|
26
26
|
import 'unplugin';
|
|
@@ -33,9 +33,8 @@ import 'esbuild';
|
|
|
33
33
|
import 'rolldown';
|
|
34
34
|
import 'rollup';
|
|
35
35
|
import 'webpack';
|
|
36
|
+
import 'node:fs';
|
|
36
37
|
import '@stryke/types/tsconfig';
|
|
37
38
|
import 'typescript';
|
|
38
39
|
import 'typedoc';
|
|
39
40
|
import 'typedoc-plugin-markdown';
|
|
40
|
-
import '@stryke/json/types';
|
|
41
|
-
import 'node:fs';
|
package/dist/types/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import '../chunk-
|
|
1
|
+
import '../chunk-BLNT5INX.js';
|
|
2
2
|
import '../chunk-J4BQZHTQ.js';
|
|
3
3
|
import '../chunk-SMNKPH4T.js';
|
|
4
4
|
import '../chunk-V3MLQDZQ.js';
|
|
5
5
|
import '../chunk-OO3YXM72.js';
|
|
6
|
+
import '../chunk-T2P533I5.js';
|
|
6
7
|
import '../chunk-QE3WGMAP.js';
|
|
7
8
|
import '../chunk-FNZDWE4L.js';
|
|
8
9
|
import '../chunk-DRXFQCNC.js';
|
|
9
10
|
export { LogLevel } from '../chunk-W5X3ZEZ5.js';
|
|
10
11
|
import '../chunk-JGB5YQ2U.js';
|
|
11
12
|
export { PLUGIN_NON_HOOK_FIELDS } from '../chunk-JQCWV4DT.js';
|
|
12
|
-
export { __VFS_PATCH__, __VFS_REVERT__ } from '../chunk-FM4ABZQ2.js';
|
|
13
13
|
export { SUPPORTED_COMMANDS } from '../chunk-JKBJF3UI.js';
|
|
14
|
+
export { __VFS_PATCH__, __VFS_REVERT__ } from '../chunk-VT7NVLLU.js';
|
|
14
15
|
import '../chunk-SHUYVCID.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CallHookOptions } from '../
|
|
2
|
-
import {
|
|
1
|
+
import { A as API, C as CallHookOptions } from '../api--9pVSIbm.cjs';
|
|
2
|
+
import { cr as ResolvedConfig, b7 as Context, b8 as APIContext, ba as EnvironmentContext, bA as HookKeys, bb as PluginContext, bH as InferHookParameters, bG as InferHookReturnType } from '../resolved-C00CJgsk.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -25,25 +25,56 @@ import 'jest-worker';
|
|
|
25
25
|
import 'jiti';
|
|
26
26
|
import 'magic-string';
|
|
27
27
|
import 'memfs';
|
|
28
|
-
import 'oxc-parser';
|
|
29
28
|
import 'semver';
|
|
30
29
|
import 'unimport';
|
|
31
30
|
import 'unplugin';
|
|
31
|
+
import './fs.cjs';
|
|
32
|
+
import 'node:fs';
|
|
32
33
|
import '@stryke/types/array';
|
|
33
34
|
import './tsconfig.cjs';
|
|
34
35
|
import '@stryke/types/tsconfig';
|
|
35
36
|
import 'typescript';
|
|
36
|
-
import './vfs.cjs';
|
|
37
|
-
import '@stryke/json/types';
|
|
38
|
-
import 'node:fs';
|
|
39
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Internal fields and methods for internal contexts
|
|
40
|
+
*
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
interface UNSAFE_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
44
|
+
api: API<TResolvedConfig>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* An internal representation of the context, used for managing hooks and environment data.
|
|
48
|
+
*
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
interface UNSAFE_Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
52
|
+
$$internal: UNSAFE_ContextInternal<TResolvedConfig>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* An internal representation of the API context, used for managing hooks and environment data.
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
interface UNSAFE_APIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends APIContext<TResolvedConfig> {
|
|
60
|
+
$$internal: UNSAFE_ContextInternal<TResolvedConfig>;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* An internal representation of the environment context, used for managing hooks and environment data.
|
|
64
|
+
*
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
interface UNSAFE_EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends EnvironmentContext<TResolvedConfig> {
|
|
68
|
+
$$internal: UNSAFE_ContextInternal<TResolvedConfig>;
|
|
69
|
+
}
|
|
40
70
|
/**
|
|
41
71
|
* Internal fields and methods for the internal plugin context
|
|
42
72
|
*
|
|
43
73
|
* @internal
|
|
44
74
|
*/
|
|
45
|
-
interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
46
|
-
|
|
75
|
+
interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends UNSAFE_ContextInternal<TResolvedConfig> {
|
|
76
|
+
api: API<TResolvedConfig>;
|
|
77
|
+
environment: UNSAFE_EnvironmentContext<TResolvedConfig>;
|
|
47
78
|
callHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: CallHookOptions, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
48
79
|
}
|
|
49
80
|
/**
|
|
@@ -54,5 +85,11 @@ interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig =
|
|
|
54
85
|
interface UNSAFE_PluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PluginContext<TResolvedConfig> {
|
|
55
86
|
$$internal: UNSAFE_PluginContextInternal<TResolvedConfig>;
|
|
56
87
|
}
|
|
88
|
+
declare type __ΩUNSAFE_ContextInternal = any[];
|
|
89
|
+
declare type __ΩUNSAFE_Context = any[];
|
|
90
|
+
declare type __ΩUNSAFE_APIContext = any[];
|
|
91
|
+
declare type __ΩUNSAFE_EnvironmentContext = any[];
|
|
92
|
+
declare type __ΩUNSAFE_PluginContextInternal = any[];
|
|
93
|
+
declare type __ΩUNSAFE_PluginContext = any[];
|
|
57
94
|
|
|
58
|
-
export type { UNSAFE_PluginContext, UNSAFE_PluginContextInternal };
|
|
95
|
+
export type { UNSAFE_APIContext, UNSAFE_Context, UNSAFE_ContextInternal, UNSAFE_EnvironmentContext, UNSAFE_PluginContext, UNSAFE_PluginContextInternal, __ΩUNSAFE_APIContext, __ΩUNSAFE_Context, __ΩUNSAFE_ContextInternal, __ΩUNSAFE_EnvironmentContext, __ΩUNSAFE_PluginContext, __ΩUNSAFE_PluginContextInternal };
|
package/dist/types/internal.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CallHookOptions } from '../
|
|
2
|
-
import {
|
|
1
|
+
import { A as API, C as CallHookOptions } from '../api-DxPACGY4.js';
|
|
2
|
+
import { cr as ResolvedConfig, b7 as Context, b8 as APIContext, ba as EnvironmentContext, bA as HookKeys, bb as PluginContext, bH as InferHookParameters, bG as InferHookReturnType } from '../resolved-DKFZ11S7.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -25,25 +25,56 @@ import 'jest-worker';
|
|
|
25
25
|
import 'jiti';
|
|
26
26
|
import 'magic-string';
|
|
27
27
|
import 'memfs';
|
|
28
|
-
import 'oxc-parser';
|
|
29
28
|
import 'semver';
|
|
30
29
|
import 'unimport';
|
|
31
30
|
import 'unplugin';
|
|
31
|
+
import './fs.js';
|
|
32
|
+
import 'node:fs';
|
|
32
33
|
import '@stryke/types/array';
|
|
33
34
|
import './tsconfig.js';
|
|
34
35
|
import '@stryke/types/tsconfig';
|
|
35
36
|
import 'typescript';
|
|
36
|
-
import './vfs.js';
|
|
37
|
-
import '@stryke/json/types';
|
|
38
|
-
import 'node:fs';
|
|
39
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Internal fields and methods for internal contexts
|
|
40
|
+
*
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
interface UNSAFE_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
44
|
+
api: API<TResolvedConfig>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* An internal representation of the context, used for managing hooks and environment data.
|
|
48
|
+
*
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
interface UNSAFE_Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
52
|
+
$$internal: UNSAFE_ContextInternal<TResolvedConfig>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* An internal representation of the API context, used for managing hooks and environment data.
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
interface UNSAFE_APIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends APIContext<TResolvedConfig> {
|
|
60
|
+
$$internal: UNSAFE_ContextInternal<TResolvedConfig>;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* An internal representation of the environment context, used for managing hooks and environment data.
|
|
64
|
+
*
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
interface UNSAFE_EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends EnvironmentContext<TResolvedConfig> {
|
|
68
|
+
$$internal: UNSAFE_ContextInternal<TResolvedConfig>;
|
|
69
|
+
}
|
|
40
70
|
/**
|
|
41
71
|
* Internal fields and methods for the internal plugin context
|
|
42
72
|
*
|
|
43
73
|
* @internal
|
|
44
74
|
*/
|
|
45
|
-
interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
46
|
-
|
|
75
|
+
interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends UNSAFE_ContextInternal<TResolvedConfig> {
|
|
76
|
+
api: API<TResolvedConfig>;
|
|
77
|
+
environment: UNSAFE_EnvironmentContext<TResolvedConfig>;
|
|
47
78
|
callHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: CallHookOptions, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
48
79
|
}
|
|
49
80
|
/**
|
|
@@ -54,5 +85,11 @@ interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig =
|
|
|
54
85
|
interface UNSAFE_PluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PluginContext<TResolvedConfig> {
|
|
55
86
|
$$internal: UNSAFE_PluginContextInternal<TResolvedConfig>;
|
|
56
87
|
}
|
|
88
|
+
declare type __ΩUNSAFE_ContextInternal = any[];
|
|
89
|
+
declare type __ΩUNSAFE_Context = any[];
|
|
90
|
+
declare type __ΩUNSAFE_APIContext = any[];
|
|
91
|
+
declare type __ΩUNSAFE_EnvironmentContext = any[];
|
|
92
|
+
declare type __ΩUNSAFE_PluginContextInternal = any[];
|
|
93
|
+
declare type __ΩUNSAFE_PluginContext = any[];
|
|
57
94
|
|
|
58
|
-
export type { UNSAFE_PluginContext, UNSAFE_PluginContextInternal };
|
|
95
|
+
export type { UNSAFE_APIContext, UNSAFE_Context, UNSAFE_ContextInternal, UNSAFE_EnvironmentContext, UNSAFE_PluginContext, UNSAFE_PluginContextInternal, __ΩUNSAFE_APIContext, __ΩUNSAFE_Context, __ΩUNSAFE_ContextInternal, __ΩUNSAFE_EnvironmentContext, __ΩUNSAFE_PluginContext, __ΩUNSAFE_PluginContextInternal };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import '@stryke/types/array';
|
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import 'unplugin';
|
|
4
4
|
import './build.cjs';
|
|
5
|
-
export {
|
|
5
|
+
export { b$ as BasePluginHookFunctions, c0 as BuildPlugin, b_ as ConfigResult, c2 as ExternalPluginHookFunctions, c1 as ExternalPluginHookFunctionsVariant, bZ as GenerateTypesResult, c7 as PLUGIN_NON_HOOK_FIELDS, c6 as Plugin, c5 as PluginBuildPlugins, bY as PluginHook, c3 as PluginHookFunctions, bX as PluginHookObject, c4 as PluginHooks, c8 as PluginNonHookFields, cd as __ΩBasePluginHookFunctions, ce as __ΩBuildPlugin, cc as __ΩConfigResult, cg as __ΩExternalPluginHookFunctions, cf as __ΩExternalPluginHookFunctionsVariant, cb as __ΩGenerateTypesResult, ck as __ΩPlugin, cj as __ΩPluginBuildPlugins, ca as __ΩPluginHook, ch as __ΩPluginHookFunctions, c9 as __ΩPluginHookObject, ci as __ΩPluginHooks, cl as __ΩPluginNonHookFields } from '../resolved-C00CJgsk.cjs';
|
|
6
6
|
import '@farmfe/core';
|
|
7
7
|
import '@rspack/core';
|
|
8
8
|
import '@storm-software/tsup/types';
|
|
@@ -26,12 +26,10 @@ import 'jest-worker';
|
|
|
26
26
|
import 'jiti';
|
|
27
27
|
import 'magic-string';
|
|
28
28
|
import 'memfs';
|
|
29
|
-
import 'oxc-parser';
|
|
30
29
|
import 'semver';
|
|
31
30
|
import 'unimport';
|
|
31
|
+
import './fs.cjs';
|
|
32
|
+
import 'node:fs';
|
|
32
33
|
import './tsconfig.cjs';
|
|
33
34
|
import '@stryke/types/tsconfig';
|
|
34
35
|
import 'typescript';
|
|
35
|
-
import './vfs.cjs';
|
|
36
|
-
import '@stryke/json/types';
|
|
37
|
-
import 'node:fs';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import '@stryke/types/array';
|
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import 'unplugin';
|
|
4
4
|
import './build.js';
|
|
5
|
-
export {
|
|
5
|
+
export { b$ as BasePluginHookFunctions, c0 as BuildPlugin, b_ as ConfigResult, c2 as ExternalPluginHookFunctions, c1 as ExternalPluginHookFunctionsVariant, bZ as GenerateTypesResult, c7 as PLUGIN_NON_HOOK_FIELDS, c6 as Plugin, c5 as PluginBuildPlugins, bY as PluginHook, c3 as PluginHookFunctions, bX as PluginHookObject, c4 as PluginHooks, c8 as PluginNonHookFields, cd as __ΩBasePluginHookFunctions, ce as __ΩBuildPlugin, cc as __ΩConfigResult, cg as __ΩExternalPluginHookFunctions, cf as __ΩExternalPluginHookFunctionsVariant, cb as __ΩGenerateTypesResult, ck as __ΩPlugin, cj as __ΩPluginBuildPlugins, ca as __ΩPluginHook, ch as __ΩPluginHookFunctions, c9 as __ΩPluginHookObject, ci as __ΩPluginHooks, cl as __ΩPluginNonHookFields } from '../resolved-DKFZ11S7.js';
|
|
6
6
|
import '@farmfe/core';
|
|
7
7
|
import '@rspack/core';
|
|
8
8
|
import '@storm-software/tsup/types';
|
|
@@ -26,12 +26,10 @@ import 'jest-worker';
|
|
|
26
26
|
import 'jiti';
|
|
27
27
|
import 'magic-string';
|
|
28
28
|
import 'memfs';
|
|
29
|
-
import 'oxc-parser';
|
|
30
29
|
import 'semver';
|
|
31
30
|
import 'unimport';
|
|
31
|
+
import './fs.js';
|
|
32
|
+
import 'node:fs';
|
|
32
33
|
import './tsconfig.js';
|
|
33
34
|
import '@stryke/types/tsconfig';
|
|
34
35
|
import 'typescript';
|
|
35
|
-
import './vfs.js';
|
|
36
|
-
import '@stryke/json/types';
|
|
37
|
-
import 'node:fs';
|