powerlines 0.23.3 → 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/babel-types.d.ts +292 -0
- 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 +188 -36
- package/dist/index.d.ts +188 -36
- 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 +2 -4
- package/dist/lib/config-file.d.ts +2 -4
- 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 +17 -14
- package/dist/lib/index.d.ts +17 -14
- 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 +2 -4
- package/dist/lib/logger.d.ts +2 -4
- package/dist/lib/typescript/compiler-host.cjs +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +2 -4
- package/dist/lib/typescript/compiler-host.d.ts +2 -4
- 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 +4 -4
- package/dist/lib/typescript/index.d.ts +4 -4
- package/dist/lib/typescript/index.js +3 -2
- package/dist/lib/typescript/program.d.cts +2 -4
- package/dist/lib/typescript/program.d.ts +2 -4
- 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 +4 -6
- package/dist/lib/unplugin/index.d.ts +4 -6
- package/dist/lib/unplugin/index.js +9 -4
- package/dist/lib/unplugin/plugin.cjs +4 -3
- package/dist/lib/unplugin/plugin.d.cts +2 -4
- package/dist/lib/unplugin/plugin.d.ts +2 -4
- 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 +2 -4
- package/dist/lib/unplugin/resolve-id.d.ts +2 -4
- 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 +2 -4
- package/dist/lib/utilities/file-header.d.ts +2 -4
- package/dist/lib/utilities/index.cjs +18 -18
- package/dist/lib/utilities/index.d.cts +2 -4
- package/dist/lib/utilities/index.d.ts +2 -4
- package/dist/lib/utilities/index.js +4 -4
- package/dist/lib/utilities/meta.d.cts +2 -4
- package/dist/lib/utilities/meta.d.ts +2 -4
- 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 +2 -4
- package/dist/lib/utilities/worker.d.ts +2 -4
- 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 +2 -4
- package/dist/plugin-utils/index.d.ts +2 -4
- package/dist/plugin-utils/merge.d.cts +2 -4
- package/dist/plugin-utils/merge.d.ts +2 -4
- package/dist/plugin-utils/paths.d.cts +2 -4
- package/dist/plugin-utils/paths.d.ts +2 -4
- package/dist/{resolved-Dem-rX6I.d.cts → resolved-C00CJgsk.d.cts} +9 -8
- package/dist/{resolved-BVakEeek.d.ts → resolved-DKFZ11S7.d.ts} +9 -8
- 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/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} +43 -38
- package/dist/types/{vfs.d.ts → fs.d.ts} +43 -38
- 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 +5 -6
- package/dist/types/index.d.ts +5 -6
- package/dist/types/index.js +3 -2
- package/dist/types/internal.d.cts +44 -9
- package/dist/types/internal.d.ts +44 -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/unplugin.d.cts +20 -12
- package/dist/types/unplugin.d.ts +20 -12
- 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 +38 -10
- package/schemas/fs.capnp +73 -15
- package/dist/chunk-RODEAGIJ.cjs +0 -32
- package/dist/chunk-SKLSRHBU.js +0 -29
- package/dist/hooks-B3vzw6La.d.ts +0 -28
- package/dist/hooks-YACA4jMY.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,5 +1,5 @@
|
|
|
1
|
-
import { C as CallHookOptions } from '../
|
|
2
|
-
import { cr as ResolvedConfig, ba as EnvironmentContext, bA as HookKeys, bb as PluginContext, bH as InferHookParameters, bG as InferHookReturnType } from '../resolved-
|
|
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,7 +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[];
|
|
57
92
|
declare type __ΩUNSAFE_PluginContextInternal = any[];
|
|
58
93
|
declare type __ΩUNSAFE_PluginContext = any[];
|
|
59
94
|
|
|
60
|
-
export type { UNSAFE_PluginContext, UNSAFE_PluginContextInternal, __Ω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 { cr as ResolvedConfig, ba as EnvironmentContext, bA as HookKeys, bb as PluginContext, bH as InferHookParameters, bG as InferHookReturnType } from '../resolved-
|
|
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,7 +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[];
|
|
57
92
|
declare type __ΩUNSAFE_PluginContextInternal = any[];
|
|
58
93
|
declare type __ΩUNSAFE_PluginContext = any[];
|
|
59
94
|
|
|
60
|
-
export type { UNSAFE_PluginContext, UNSAFE_PluginContextInternal, __Ω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 { 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-
|
|
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 { 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-
|
|
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';
|
|
@@ -3,7 +3,7 @@ import '@stryke/types/configuration';
|
|
|
3
3
|
import '@stryke/types/file';
|
|
4
4
|
import 'vite';
|
|
5
5
|
import './build.cjs';
|
|
6
|
-
export { cn as BabelResolvedConfig, cv as ESBuildResolvedConfig, co as EnvironmentResolvedConfig, cA as FarmResolvedConfig, cB as InferResolvedConfig, cq as OutputResolvedConfig, cp as ResolvedAssetGlob, cr as ResolvedConfig, cm as ResolvedEntryTypeDefinition, cx as RolldownResolvedConfig, cw as RollupResolvedConfig, cu as RspackResolvedConfig, cy as TsupResolvedConfig, cz as UnbuildResolvedConfig, cs as ViteResolvedConfig, ct as WebpackResolvedConfig, cD as __ΩBabelResolvedConfig, cL as __ΩESBuildResolvedConfig, cE as __ΩEnvironmentResolvedConfig, cQ as __ΩFarmResolvedConfig, cR as __ΩInferResolvedConfig, cG as __ΩOutputResolvedConfig, cF as __ΩResolvedAssetGlob, cH as __ΩResolvedConfig, cC as __ΩResolvedEntryTypeDefinition, cN as __ΩRolldownResolvedConfig, cM as __ΩRollupResolvedConfig, cK as __ΩRspackResolvedConfig, cO as __ΩTsupResolvedConfig, cP as __ΩUnbuildResolvedConfig, cI as __ΩViteResolvedConfig, cJ as __ΩWebpackResolvedConfig } from '../resolved-
|
|
6
|
+
export { cn as BabelResolvedConfig, cv as ESBuildResolvedConfig, co as EnvironmentResolvedConfig, cA as FarmResolvedConfig, cB as InferResolvedConfig, cq as OutputResolvedConfig, cp as ResolvedAssetGlob, cr as ResolvedConfig, cm as ResolvedEntryTypeDefinition, cx as RolldownResolvedConfig, cw as RollupResolvedConfig, cu as RspackResolvedConfig, cy as TsupResolvedConfig, cz as UnbuildResolvedConfig, cs as ViteResolvedConfig, ct as WebpackResolvedConfig, cD as __ΩBabelResolvedConfig, cL as __ΩESBuildResolvedConfig, cE as __ΩEnvironmentResolvedConfig, cQ as __ΩFarmResolvedConfig, cR as __ΩInferResolvedConfig, cG as __ΩOutputResolvedConfig, cF as __ΩResolvedAssetGlob, cH as __ΩResolvedConfig, cC as __ΩResolvedEntryTypeDefinition, cN as __ΩRolldownResolvedConfig, cM as __ΩRollupResolvedConfig, cK as __ΩRspackResolvedConfig, cO as __ΩTsupResolvedConfig, cP as __ΩUnbuildResolvedConfig, cI as __ΩViteResolvedConfig, cJ as __ΩWebpackResolvedConfig } from '../resolved-C00CJgsk.cjs';
|
|
7
7
|
import '@farmfe/core';
|
|
8
8
|
import '@rspack/core';
|
|
9
9
|
import '@storm-software/tsup/types';
|
|
@@ -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/resolved.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import '@stryke/types/configuration';
|
|
|
3
3
|
import '@stryke/types/file';
|
|
4
4
|
import 'vite';
|
|
5
5
|
import './build.js';
|
|
6
|
-
export { cn as BabelResolvedConfig, cv as ESBuildResolvedConfig, co as EnvironmentResolvedConfig, cA as FarmResolvedConfig, cB as InferResolvedConfig, cq as OutputResolvedConfig, cp as ResolvedAssetGlob, cr as ResolvedConfig, cm as ResolvedEntryTypeDefinition, cx as RolldownResolvedConfig, cw as RollupResolvedConfig, cu as RspackResolvedConfig, cy as TsupResolvedConfig, cz as UnbuildResolvedConfig, cs as ViteResolvedConfig, ct as WebpackResolvedConfig, cD as __ΩBabelResolvedConfig, cL as __ΩESBuildResolvedConfig, cE as __ΩEnvironmentResolvedConfig, cQ as __ΩFarmResolvedConfig, cR as __ΩInferResolvedConfig, cG as __ΩOutputResolvedConfig, cF as __ΩResolvedAssetGlob, cH as __ΩResolvedConfig, cC as __ΩResolvedEntryTypeDefinition, cN as __ΩRolldownResolvedConfig, cM as __ΩRollupResolvedConfig, cK as __ΩRspackResolvedConfig, cO as __ΩTsupResolvedConfig, cP as __ΩUnbuildResolvedConfig, cI as __ΩViteResolvedConfig, cJ as __ΩWebpackResolvedConfig } from '../resolved-
|
|
6
|
+
export { cn as BabelResolvedConfig, cv as ESBuildResolvedConfig, co as EnvironmentResolvedConfig, cA as FarmResolvedConfig, cB as InferResolvedConfig, cq as OutputResolvedConfig, cp as ResolvedAssetGlob, cr as ResolvedConfig, cm as ResolvedEntryTypeDefinition, cx as RolldownResolvedConfig, cw as RollupResolvedConfig, cu as RspackResolvedConfig, cy as TsupResolvedConfig, cz as UnbuildResolvedConfig, cs as ViteResolvedConfig, ct as WebpackResolvedConfig, cD as __ΩBabelResolvedConfig, cL as __ΩESBuildResolvedConfig, cE as __ΩEnvironmentResolvedConfig, cQ as __ΩFarmResolvedConfig, cR as __ΩInferResolvedConfig, cG as __ΩOutputResolvedConfig, cF as __ΩResolvedAssetGlob, cH as __ΩResolvedConfig, cC as __ΩResolvedEntryTypeDefinition, cN as __ΩRolldownResolvedConfig, cM as __ΩRollupResolvedConfig, cK as __ΩRspackResolvedConfig, cO as __ΩTsupResolvedConfig, cP as __ΩUnbuildResolvedConfig, cI as __ΩViteResolvedConfig, cJ as __ΩWebpackResolvedConfig } from '../resolved-DKFZ11S7.js';
|
|
7
7
|
import '@farmfe/core';
|
|
8
8
|
import '@rspack/core';
|
|
9
9
|
import '@storm-software/tsup/types';
|
|
@@ -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';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { UnpluginOptions, UnpluginContextMeta
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { UnpluginOptions, UnpluginContextMeta } from 'unplugin';
|
|
2
|
+
import { A as API } from '../api--9pVSIbm.cjs';
|
|
3
|
+
import { UnpluginBuildVariant, InferUnpluginVariant } from './build.cjs';
|
|
4
|
+
import { cB as InferResolvedConfig, c0 as BuildPlugin, bb as PluginContext, a1 as InferUserConfig } from '../resolved-C00CJgsk.cjs';
|
|
4
5
|
import '@farmfe/core';
|
|
5
6
|
import '@rspack/core';
|
|
6
7
|
import '@storm-software/tsup/types';
|
|
@@ -25,29 +26,36 @@ import 'jest-worker';
|
|
|
25
26
|
import 'jiti';
|
|
26
27
|
import 'magic-string';
|
|
27
28
|
import 'memfs';
|
|
28
|
-
import 'oxc-parser';
|
|
29
29
|
import 'semver';
|
|
30
30
|
import 'unimport';
|
|
31
|
+
import './fs.cjs';
|
|
32
|
+
import 'node:fs';
|
|
31
33
|
import '@stryke/types/array';
|
|
32
34
|
import './tsconfig.cjs';
|
|
33
35
|
import '@stryke/types/tsconfig';
|
|
34
36
|
import 'typescript';
|
|
35
|
-
import './vfs.cjs';
|
|
36
|
-
import '@stryke/json/types';
|
|
37
|
-
import 'node:fs';
|
|
38
37
|
|
|
39
|
-
type
|
|
38
|
+
type PowerlinesUnpluginOptions<TBuildVariant extends UnpluginBuildVariant> = UnpluginOptions & {
|
|
39
|
+
/**
|
|
40
|
+
* An API object that can be used for inter-plugin communication.
|
|
41
|
+
*
|
|
42
|
+
* @see https://rollupjs.org/plugin-development/#direct-plugin-communication
|
|
43
|
+
*/
|
|
44
|
+
api: API<InferResolvedConfig<TBuildVariant>>;
|
|
45
|
+
};
|
|
46
|
+
type InferUnpluginOptions<TBuildVariant extends UnpluginBuildVariant> = PowerlinesUnpluginOptions<TBuildVariant> & {
|
|
40
47
|
[TKey in InferUnpluginVariant<TBuildVariant>]: BuildPlugin<PluginContext<InferResolvedConfig<TBuildVariant>>, TKey>;
|
|
41
48
|
};
|
|
42
|
-
type UnpluginUserConfig<TBuildVariant extends
|
|
49
|
+
type UnpluginUserConfig<TBuildVariant extends UnpluginBuildVariant | undefined> = InferUserConfig<TBuildVariant> & {
|
|
43
50
|
/**
|
|
44
51
|
* The meta information for the unplugin context
|
|
45
52
|
*/
|
|
46
53
|
unplugin: UnpluginContextMeta;
|
|
47
54
|
};
|
|
48
|
-
type
|
|
55
|
+
type PowerlinesUnpluginFactory<TBuildVariant extends UnpluginBuildVariant> = (options: Partial<InferUserConfig<TBuildVariant>>, meta: UnpluginContextMeta) => PowerlinesUnpluginOptions<TBuildVariant>;
|
|
56
|
+
declare type __ΩPowerlinesUnpluginOptions = any[];
|
|
49
57
|
declare type __ΩInferUnpluginOptions = any[];
|
|
50
58
|
declare type __ΩUnpluginUserConfig = any[];
|
|
51
|
-
declare type __Ω
|
|
59
|
+
declare type __ΩPowerlinesUnpluginFactory = any[];
|
|
52
60
|
|
|
53
|
-
export type { InferUnpluginOptions,
|
|
61
|
+
export type { InferUnpluginOptions, PowerlinesUnpluginFactory, PowerlinesUnpluginOptions, UnpluginUserConfig, __ΩInferUnpluginOptions, __ΩPowerlinesUnpluginFactory, __ΩPowerlinesUnpluginOptions, __ΩUnpluginUserConfig };
|
package/dist/types/unplugin.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { UnpluginOptions, UnpluginContextMeta
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { UnpluginOptions, UnpluginContextMeta } from 'unplugin';
|
|
2
|
+
import { A as API } from '../api-DxPACGY4.js';
|
|
3
|
+
import { UnpluginBuildVariant, InferUnpluginVariant } from './build.js';
|
|
4
|
+
import { cB as InferResolvedConfig, c0 as BuildPlugin, bb as PluginContext, a1 as InferUserConfig } from '../resolved-DKFZ11S7.js';
|
|
4
5
|
import '@farmfe/core';
|
|
5
6
|
import '@rspack/core';
|
|
6
7
|
import '@storm-software/tsup/types';
|
|
@@ -25,29 +26,36 @@ import 'jest-worker';
|
|
|
25
26
|
import 'jiti';
|
|
26
27
|
import 'magic-string';
|
|
27
28
|
import 'memfs';
|
|
28
|
-
import 'oxc-parser';
|
|
29
29
|
import 'semver';
|
|
30
30
|
import 'unimport';
|
|
31
|
+
import './fs.js';
|
|
32
|
+
import 'node:fs';
|
|
31
33
|
import '@stryke/types/array';
|
|
32
34
|
import './tsconfig.js';
|
|
33
35
|
import '@stryke/types/tsconfig';
|
|
34
36
|
import 'typescript';
|
|
35
|
-
import './vfs.js';
|
|
36
|
-
import '@stryke/json/types';
|
|
37
|
-
import 'node:fs';
|
|
38
37
|
|
|
39
|
-
type
|
|
38
|
+
type PowerlinesUnpluginOptions<TBuildVariant extends UnpluginBuildVariant> = UnpluginOptions & {
|
|
39
|
+
/**
|
|
40
|
+
* An API object that can be used for inter-plugin communication.
|
|
41
|
+
*
|
|
42
|
+
* @see https://rollupjs.org/plugin-development/#direct-plugin-communication
|
|
43
|
+
*/
|
|
44
|
+
api: API<InferResolvedConfig<TBuildVariant>>;
|
|
45
|
+
};
|
|
46
|
+
type InferUnpluginOptions<TBuildVariant extends UnpluginBuildVariant> = PowerlinesUnpluginOptions<TBuildVariant> & {
|
|
40
47
|
[TKey in InferUnpluginVariant<TBuildVariant>]: BuildPlugin<PluginContext<InferResolvedConfig<TBuildVariant>>, TKey>;
|
|
41
48
|
};
|
|
42
|
-
type UnpluginUserConfig<TBuildVariant extends
|
|
49
|
+
type UnpluginUserConfig<TBuildVariant extends UnpluginBuildVariant | undefined> = InferUserConfig<TBuildVariant> & {
|
|
43
50
|
/**
|
|
44
51
|
* The meta information for the unplugin context
|
|
45
52
|
*/
|
|
46
53
|
unplugin: UnpluginContextMeta;
|
|
47
54
|
};
|
|
48
|
-
type
|
|
55
|
+
type PowerlinesUnpluginFactory<TBuildVariant extends UnpluginBuildVariant> = (options: Partial<InferUserConfig<TBuildVariant>>, meta: UnpluginContextMeta) => PowerlinesUnpluginOptions<TBuildVariant>;
|
|
56
|
+
declare type __ΩPowerlinesUnpluginOptions = any[];
|
|
49
57
|
declare type __ΩInferUnpluginOptions = any[];
|
|
50
58
|
declare type __ΩUnpluginUserConfig = any[];
|
|
51
|
-
declare type __Ω
|
|
59
|
+
declare type __ΩPowerlinesUnpluginFactory = any[];
|
|
52
60
|
|
|
53
|
-
export type { InferUnpluginOptions,
|
|
61
|
+
export type { InferUnpluginOptions, PowerlinesUnpluginFactory, PowerlinesUnpluginOptions, UnpluginUserConfig, __ΩInferUnpluginOptions, __ΩPowerlinesUnpluginFactory, __ΩPowerlinesUnpluginOptions, __ΩUnpluginUserConfig };
|
package/dist/unloader.cjs
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunkGP6XGAJ4_cjs = require('./chunk-GP6XGAJ4.cjs');
|
|
6
|
+
require('./chunk-AIC2EHPW.cjs');
|
|
7
|
+
require('./chunk-OEKSQ22R.cjs');
|
|
8
8
|
require('./chunk-ETKZMGLN.cjs');
|
|
9
|
-
require('./chunk-3WDMXRK6.cjs');
|
|
10
9
|
require('./chunk-PAMSESZV.cjs');
|
|
10
|
+
require('./chunk-AYKZK666.cjs');
|
|
11
11
|
require('./chunk-USNT2KNT.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkGP6XGAJ4_cjs.unloader_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "module.exports", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkGP6XGAJ4_cjs.unloader; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "unloader", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkGP6XGAJ4_cjs.unloader; }
|
|
26
26
|
});
|
package/dist/unloader.d.cts
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import * as unloader$1 from 'unloader';
|
|
2
|
-
import { U as UserConfig } from './resolved-Dem-rX6I.cjs';
|
|
3
2
|
import { BuildConfig, BuildResolvedConfig } from './types/build.cjs';
|
|
3
|
+
import { U as UserConfig } from './resolved-C00CJgsk.cjs';
|
|
4
|
+
import '@farmfe/core';
|
|
5
|
+
import '@rspack/core';
|
|
6
|
+
import '@storm-software/tsup/types';
|
|
7
|
+
import '@storm-software/unbuild/types';
|
|
8
|
+
import 'esbuild';
|
|
9
|
+
import 'rolldown';
|
|
10
|
+
import 'rollup';
|
|
11
|
+
import 'vite';
|
|
12
|
+
import 'webpack';
|
|
4
13
|
import '@stryke/types/base';
|
|
5
14
|
import '@stryke/types/configuration';
|
|
6
15
|
import '@stryke/types/file';
|
|
7
|
-
import 'vite';
|
|
8
16
|
import '@babel/core';
|
|
9
17
|
import '@storm-software/build-tools/types';
|
|
10
18
|
import '@storm-software/config-tools/types';
|
|
@@ -17,25 +25,15 @@ import 'jest-worker';
|
|
|
17
25
|
import 'jiti';
|
|
18
26
|
import 'magic-string';
|
|
19
27
|
import 'memfs';
|
|
20
|
-
import 'oxc-parser';
|
|
21
28
|
import 'semver';
|
|
22
29
|
import 'unimport';
|
|
23
30
|
import 'unplugin';
|
|
31
|
+
import './types/fs.cjs';
|
|
32
|
+
import 'node:fs';
|
|
24
33
|
import '@stryke/types/array';
|
|
25
34
|
import './types/tsconfig.cjs';
|
|
26
35
|
import '@stryke/types/tsconfig';
|
|
27
36
|
import 'typescript';
|
|
28
|
-
import './types/vfs.cjs';
|
|
29
|
-
import '@stryke/json/types';
|
|
30
|
-
import 'node:fs';
|
|
31
|
-
import '@farmfe/core';
|
|
32
|
-
import '@rspack/core';
|
|
33
|
-
import '@storm-software/tsup/types';
|
|
34
|
-
import '@storm-software/unbuild/types';
|
|
35
|
-
import 'esbuild';
|
|
36
|
-
import 'rolldown';
|
|
37
|
-
import 'rollup';
|
|
38
|
-
import 'webpack';
|
|
39
37
|
|
|
40
38
|
/**
|
|
41
39
|
* An Unloader plugin that will invoke the Powerlines API hooks during processing.
|
package/dist/unloader.d.ts
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import * as unloader$1 from 'unloader';
|
|
2
|
-
import { U as UserConfig } from './resolved-BVakEeek.js';
|
|
3
2
|
import { BuildConfig, BuildResolvedConfig } from './types/build.js';
|
|
3
|
+
import { U as UserConfig } from './resolved-DKFZ11S7.js';
|
|
4
|
+
import '@farmfe/core';
|
|
5
|
+
import '@rspack/core';
|
|
6
|
+
import '@storm-software/tsup/types';
|
|
7
|
+
import '@storm-software/unbuild/types';
|
|
8
|
+
import 'esbuild';
|
|
9
|
+
import 'rolldown';
|
|
10
|
+
import 'rollup';
|
|
11
|
+
import 'vite';
|
|
12
|
+
import 'webpack';
|
|
4
13
|
import '@stryke/types/base';
|
|
5
14
|
import '@stryke/types/configuration';
|
|
6
15
|
import '@stryke/types/file';
|
|
7
|
-
import 'vite';
|
|
8
16
|
import '@babel/core';
|
|
9
17
|
import '@storm-software/build-tools/types';
|
|
10
18
|
import '@storm-software/config-tools/types';
|
|
@@ -17,25 +25,15 @@ import 'jest-worker';
|
|
|
17
25
|
import 'jiti';
|
|
18
26
|
import 'magic-string';
|
|
19
27
|
import 'memfs';
|
|
20
|
-
import 'oxc-parser';
|
|
21
28
|
import 'semver';
|
|
22
29
|
import 'unimport';
|
|
23
30
|
import 'unplugin';
|
|
31
|
+
import './types/fs.js';
|
|
32
|
+
import 'node:fs';
|
|
24
33
|
import '@stryke/types/array';
|
|
25
34
|
import './types/tsconfig.js';
|
|
26
35
|
import '@stryke/types/tsconfig';
|
|
27
36
|
import 'typescript';
|
|
28
|
-
import './types/vfs.js';
|
|
29
|
-
import '@stryke/json/types';
|
|
30
|
-
import 'node:fs';
|
|
31
|
-
import '@farmfe/core';
|
|
32
|
-
import '@rspack/core';
|
|
33
|
-
import '@storm-software/tsup/types';
|
|
34
|
-
import '@storm-software/unbuild/types';
|
|
35
|
-
import 'esbuild';
|
|
36
|
-
import 'rolldown';
|
|
37
|
-
import 'rollup';
|
|
38
|
-
import 'webpack';
|
|
39
37
|
|
|
40
38
|
/**
|
|
41
39
|
* An Unloader plugin that will invoke the Powerlines API hooks during processing.
|
package/dist/unloader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { unloader_default as default, unloader as "module.exports", unloader } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { unloader_default as default, unloader as "module.exports", unloader } from './chunk-PTZB4LWS.js';
|
|
2
|
+
import './chunk-ISLX4Z3L.js';
|
|
3
|
+
import './chunk-ZYCPZLIG.js';
|
|
4
4
|
import './chunk-JQCWV4DT.js';
|
|
5
|
-
import './chunk-FM4ABZQ2.js';
|
|
6
5
|
import './chunk-JKBJF3UI.js';
|
|
6
|
+
import './chunk-VT7NVLLU.js';
|
|
7
7
|
import './chunk-SHUYVCID.js';
|
package/dist/unplugin.cjs
CHANGED
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
5
|
+
var chunkCHNKTBUA_cjs = require('./chunk-CHNKTBUA.cjs');
|
|
6
|
+
require('./chunk-XOI5CY62.cjs');
|
|
7
|
+
require('./chunk-6ACGI52O.cjs');
|
|
8
|
+
require('./chunk-QUZ4T5AX.cjs');
|
|
9
|
+
require('./chunk-2FLICTDF.cjs');
|
|
10
|
+
require('./chunk-GP6XGAJ4.cjs');
|
|
11
|
+
require('./chunk-VXAKPZ3A.cjs');
|
|
12
|
+
require('./chunk-AF5VNWZD.cjs');
|
|
13
|
+
require('./chunk-VFLCP3SA.cjs');
|
|
14
|
+
require('./chunk-CTSSNO5L.cjs');
|
|
15
|
+
require('./chunk-UW3MXOWV.cjs');
|
|
16
16
|
require('./chunk-5IBA5HC2.cjs');
|
|
17
|
-
require('./chunk-
|
|
18
|
-
var
|
|
19
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-3OQXZ5MM.cjs');
|
|
18
|
+
var chunkAIC2EHPW_cjs = require('./chunk-AIC2EHPW.cjs');
|
|
19
|
+
require('./chunk-OEKSQ22R.cjs');
|
|
20
20
|
require('./chunk-ETKZMGLN.cjs');
|
|
21
|
-
require('./chunk-3WDMXRK6.cjs');
|
|
22
21
|
require('./chunk-PAMSESZV.cjs');
|
|
22
|
+
require('./chunk-AYKZK666.cjs');
|
|
23
23
|
require('./chunk-USNT2KNT.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
Object.defineProperty(exports, "default", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkCHNKTBUA_cjs.unplugin_default; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "plugins", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkCHNKTBUA_cjs.plugins; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createUnpluginFactory", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkAIC2EHPW_cjs.createUnpluginFactory; }
|
|
38
38
|
});
|