powerlines 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/config.d.cts +3 -5
- package/dist/config.d.ts +3 -5
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/{hooks-DcH9z5L5.d.cts → hooks-BDXmrP9O.d.cts} +1 -1
- package/dist/{hooks-ByM-4_UN.d.ts → hooks-BMy1XRpA.d.ts} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/plugin-utils/chunk-F57OBGVS.js +28 -0
- package/dist/plugin-utils/chunk-FWGYTED4.js +30 -0
- package/dist/plugin-utils/chunk-GRVUSUEO.cjs +30 -0
- package/dist/plugin-utils/chunk-HRDV3U4S.cjs +32 -0
- package/dist/plugin-utils/{config-ClPkPCYC.d.cts → config-BvVaLOty.d.cts} +4 -2
- package/dist/plugin-utils/{config-ClPkPCYC.d.ts → config-BvVaLOty.d.ts} +4 -2
- package/dist/plugin-utils/extend.cjs +5 -3
- package/dist/plugin-utils/extend.d.cts +6 -5
- package/dist/plugin-utils/extend.d.ts +6 -5
- package/dist/plugin-utils/extend.js +3 -1
- package/dist/plugin-utils/get-config-path.d.cts +1 -1
- package/dist/plugin-utils/get-config-path.d.ts +1 -1
- package/dist/plugin-utils/helpers.d.cts +1 -1
- package/dist/plugin-utils/helpers.d.ts +1 -1
- package/dist/plugin-utils/index.cjs +8 -3
- package/dist/plugin-utils/index.d.cts +3 -2
- package/dist/plugin-utils/index.d.ts +3 -2
- package/dist/plugin-utils/index.js +2 -1
- package/dist/plugin-utils/merge.cjs +12 -0
- package/dist/plugin-utils/merge.d.cts +33 -0
- package/dist/plugin-utils/merge.d.ts +33 -0
- package/dist/plugin-utils/merge.js +3 -0
- package/dist/plugin-utils/paths.d.cts +1 -1
- package/dist/plugin-utils/paths.d.ts +1 -1
- package/dist/{resolved-CugLn_3B.d.cts → resolved-9OdFeVV0.d.cts} +5 -3
- package/dist/{resolved-DnI1mqEb.d.ts → resolved-Bgn0EfLS.d.ts} +5 -3
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/types/babel.d.cts +1 -1
- package/dist/types/babel.d.ts +1 -1
- package/dist/types/build.d.cts +6 -6
- package/dist/types/build.d.ts +6 -6
- package/dist/types/commands.d.cts +1 -1
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.d.cts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal.d.cts +2 -2
- package/dist/types/internal.d.ts +2 -2
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +1 -1
- package/dist/types/unplugin.d.ts +1 -1
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.ts +1 -1
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/package.json +3 -3
- package/dist/plugin-utils/chunk-3G5FJKN2.js +0 -12
- package/dist/plugin-utils/chunk-MIKPJJNG.cjs +0 -18
package/dist/api.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CallHookOptions } from './hooks-
|
|
2
|
-
import {
|
|
1
|
+
import { C as CallHookOptions } from './hooks-BDXmrP9O.cjs';
|
|
2
|
+
import { aQ as ResolvedConfig, ae as APIContext, z as InitialUserConfig, M as PrepareInlineConfig, J as NewInlineConfig, K as CleanInlineConfig, Q as BuildInlineConfig, X as LintInlineConfig, Y as DocsInlineConfig, Z as ReleaseInlineConfig, ap as HookKeys, ah as PluginContext, ag as EnvironmentContext, aw as InferHookParameters, av as InferHookReturnType } from './resolved-9OdFeVV0.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CallHookOptions } from './hooks-
|
|
2
|
-
import {
|
|
1
|
+
import { C as CallHookOptions } from './hooks-BMy1XRpA.js';
|
|
2
|
+
import { aQ as ResolvedConfig, ae as APIContext, z as InitialUserConfig, M as PrepareInlineConfig, J as NewInlineConfig, K as CleanInlineConfig, Q as BuildInlineConfig, X as LintInlineConfig, Y as DocsInlineConfig, Z as ReleaseInlineConfig, ap as HookKeys, ah as PluginContext, ag as EnvironmentContext, aw as InferHookParameters, av as InferHookReturnType } from './resolved-Bgn0EfLS.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import {
|
|
2
|
+
import { aR as ViteResolvedConfig } from './resolved-9OdFeVV0.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import {
|
|
2
|
+
import { aR as ViteResolvedConfig } from './resolved-Bgn0EfLS.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '
|
|
1
|
+
import { DeepPartial } from '@stryke/types/base';
|
|
2
|
+
import { U as UserConfig } from './resolved-9OdFeVV0.cjs';
|
|
3
3
|
import '@stryke/types/configuration';
|
|
4
4
|
import '@stryke/types/file';
|
|
5
5
|
import 'vite';
|
|
@@ -43,8 +43,6 @@ import 'unionfs';
|
|
|
43
43
|
* @remarks
|
|
44
44
|
* The function accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigEnv} object.
|
|
45
45
|
*/
|
|
46
|
-
declare function defineConfig(config:
|
|
47
|
-
[key: string]: any;
|
|
48
|
-
}): AnyUserConfig;
|
|
46
|
+
declare function defineConfig(config: Record<string, any> & DeepPartial<UserConfig>): UserConfig;
|
|
49
47
|
|
|
50
48
|
export { defineConfig };
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '
|
|
1
|
+
import { DeepPartial } from '@stryke/types/base';
|
|
2
|
+
import { U as UserConfig } from './resolved-Bgn0EfLS.js';
|
|
3
3
|
import '@stryke/types/configuration';
|
|
4
4
|
import '@stryke/types/file';
|
|
5
5
|
import 'vite';
|
|
@@ -43,8 +43,6 @@ import 'unionfs';
|
|
|
43
43
|
* @remarks
|
|
44
44
|
* The function accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigEnv} object.
|
|
45
45
|
*/
|
|
46
|
-
declare function defineConfig(config:
|
|
47
|
-
[key: string]: any;
|
|
48
|
-
}): AnyUserConfig;
|
|
46
|
+
declare function defineConfig(config: Record<string, any> & DeepPartial<UserConfig>): UserConfig;
|
|
49
47
|
|
|
50
48
|
export { defineConfig };
|
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import {
|
|
2
|
+
import { w as ESBuildUserConfig } from './resolved-9OdFeVV0.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import {
|
|
2
|
+
import { w as ESBuildUserConfig } from './resolved-Bgn0EfLS.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/farm.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _farmfe_core from '@farmfe/core';
|
|
2
|
-
import { F as FarmUserConfig } from './resolved-
|
|
2
|
+
import { F as FarmUserConfig } from './resolved-9OdFeVV0.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/farm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _farmfe_core from '@farmfe/core';
|
|
2
|
-
import { F as FarmUserConfig } from './resolved-
|
|
2
|
+
import { F as FarmUserConfig } from './resolved-Bgn0EfLS.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PowerlinesAPI } from './api.cjs';
|
|
2
2
|
export { default as plugins } from './unplugin.cjs';
|
|
3
3
|
export { defineConfig } from './config.cjs';
|
|
4
|
-
export {
|
|
4
|
+
export { ae as APIContext, $ as AnyUserConfig, B as BabelPluginPass, aM as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, p as BabelUserConfig, q as BaseConfig, al as BaseHookKeys, ak as BaseHooks, ar as BaseHooksList, aq as BaseHooksListItem, aB as BasePluginHookFunctions, Q as BuildInlineConfig, aC as BuildPlugin, ai as BuildPluginContext, K as CleanInlineConfig, C as CommandType, i as Commands, r as CommonUserConfig, _ as ConfigEnv, ad as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, Y as DocsInlineConfig, aU as ESBuildResolvedConfig, w as ESBuildUserConfig, E as EnvironmentConfig, ag as EnvironmentContext, af as EnvironmentContextPlugin, aN as EnvironmentResolvedConfig, an as ExternalHookKeys, am as ExternalHooks, as as ExternalHooksListItem, aE as ExternalPluginHookFunctions, aD as ExternalPluginHookFunctionsVariant, aZ as FarmResolvedConfig, F as FarmUserConfig, aA as GenerateTypesResult, ap as HookKeys, ao as Hooks, at as HooksList, I as ImportDefinition, h as ImportSpecifier, au as InferHookHandler, aw as InferHookParameters, av as InferHookReturnType, ax as InferHookThisType, a_ as InferResolvedConfig, y as InferUserConfig, ac as InitContextOptions, z as InitialUserConfig, H as InlineConfig, X as LintInlineConfig, L as LogFn, a4 as LogLevel, a6 as MetaInfo, N as NamedImportDefinition, J as NewInlineConfig, O as OutputConfig, aP as OutputResolvedConfig, aJ as PLUGIN_NON_HOOK_FIELDS, A as ParsedUserConfig, m as PartialPlugin, n as PartialPluginFactory, aI as Plugin, aH as PluginBuildPlugins, l as PluginConfig, k as PluginConfigObject, j as PluginConfigTuple, ah as PluginContext, P as PluginFactory, az as PluginHook, aF as PluginHookFunctions, ay as PluginHookObject, aG as PluginHooks, aK as PluginNonHookFields, G as PowerlinesCommand, M as PrepareInlineConfig, o as ProjectType, Z as ReleaseInlineConfig, aO as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, aQ as ResolvedConfig, aL as ResolvedEntryTypeDefinition, a7 as Resolver, aW as RolldownResolvedConfig, v as RolldownUserConfig, aV as RollupResolvedConfig, u as RollupUserConfig, aT as RspackResolvedConfig, t as RspackUserConfig, S as SUPPORTED_COMMANDS, ab as SelectHooksOptions, aj as SerializedVirtualFileSystem, a9 as SourceFile, a8 as TransformResult, aX as TsupResolvedConfig, T as TsupUserConfig, aY as UnbuildResolvedConfig, x as UnbuildUserConfig, aa as UnimportContext, U as UserConfig, a3 as UserConfigExport, a2 as UserConfigFn, a0 as UserConfigFnObject, a1 as UserConfigFnPromise, aR as ViteResolvedConfig, V as ViteUserConfig, aS as WebpackResolvedConfig, s as WebpackUserConfig, a5 as WorkerProcess, W as WorkspaceConfig } from './resolved-9OdFeVV0.cjs';
|
|
5
5
|
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 } from './types/build.cjs';
|
|
6
6
|
export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig } from './types/tsconfig.cjs';
|
|
7
7
|
export { MarkdownPageEvent, MarkdownRendererEvent } from './types/typedoc.cjs';
|
|
8
8
|
export { InferUnpluginOptions, StormStackUnpluginFactory, UnpluginUserConfig } from './types/unplugin.cjs';
|
|
9
9
|
export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerLinesWriteFileData, PowerlinesWriteFileOptions, ResolveFSOptions, ResolvePathOptions, VirtualFile, VirtualFileExtension, VirtualFileSystemInterface, VirtualFileSystemMetadata, WriteFileData, WriteFileOptions, __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__ } from './types/vfs.cjs';
|
|
10
|
-
import './hooks-
|
|
10
|
+
import './hooks-BDXmrP9O.cjs';
|
|
11
11
|
import 'webpack';
|
|
12
12
|
import 'vite';
|
|
13
13
|
import 'unloader';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PowerlinesAPI } from './api.js';
|
|
2
2
|
export { default as plugins } from './unplugin.js';
|
|
3
3
|
export { defineConfig } from './config.js';
|
|
4
|
-
export {
|
|
4
|
+
export { ae as APIContext, $ as AnyUserConfig, B as BabelPluginPass, aM as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, p as BabelUserConfig, q as BaseConfig, al as BaseHookKeys, ak as BaseHooks, ar as BaseHooksList, aq as BaseHooksListItem, aB as BasePluginHookFunctions, Q as BuildInlineConfig, aC as BuildPlugin, ai as BuildPluginContext, K as CleanInlineConfig, C as CommandType, i as Commands, r as CommonUserConfig, _ as ConfigEnv, ad as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, Y as DocsInlineConfig, aU as ESBuildResolvedConfig, w as ESBuildUserConfig, E as EnvironmentConfig, ag as EnvironmentContext, af as EnvironmentContextPlugin, aN as EnvironmentResolvedConfig, an as ExternalHookKeys, am as ExternalHooks, as as ExternalHooksListItem, aE as ExternalPluginHookFunctions, aD as ExternalPluginHookFunctionsVariant, aZ as FarmResolvedConfig, F as FarmUserConfig, aA as GenerateTypesResult, ap as HookKeys, ao as Hooks, at as HooksList, I as ImportDefinition, h as ImportSpecifier, au as InferHookHandler, aw as InferHookParameters, av as InferHookReturnType, ax as InferHookThisType, a_ as InferResolvedConfig, y as InferUserConfig, ac as InitContextOptions, z as InitialUserConfig, H as InlineConfig, X as LintInlineConfig, L as LogFn, a4 as LogLevel, a6 as MetaInfo, N as NamedImportDefinition, J as NewInlineConfig, O as OutputConfig, aP as OutputResolvedConfig, aJ as PLUGIN_NON_HOOK_FIELDS, A as ParsedUserConfig, m as PartialPlugin, n as PartialPluginFactory, aI as Plugin, aH as PluginBuildPlugins, l as PluginConfig, k as PluginConfigObject, j as PluginConfigTuple, ah as PluginContext, P as PluginFactory, az as PluginHook, aF as PluginHookFunctions, ay as PluginHookObject, aG as PluginHooks, aK as PluginNonHookFields, G as PowerlinesCommand, M as PrepareInlineConfig, o as ProjectType, Z as ReleaseInlineConfig, aO as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, aQ as ResolvedConfig, aL as ResolvedEntryTypeDefinition, a7 as Resolver, aW as RolldownResolvedConfig, v as RolldownUserConfig, aV as RollupResolvedConfig, u as RollupUserConfig, aT as RspackResolvedConfig, t as RspackUserConfig, S as SUPPORTED_COMMANDS, ab as SelectHooksOptions, aj as SerializedVirtualFileSystem, a9 as SourceFile, a8 as TransformResult, aX as TsupResolvedConfig, T as TsupUserConfig, aY as UnbuildResolvedConfig, x as UnbuildUserConfig, aa as UnimportContext, U as UserConfig, a3 as UserConfigExport, a2 as UserConfigFn, a0 as UserConfigFnObject, a1 as UserConfigFnPromise, aR as ViteResolvedConfig, V as ViteUserConfig, aS as WebpackResolvedConfig, s as WebpackUserConfig, a5 as WorkerProcess, W as WorkspaceConfig } from './resolved-Bgn0EfLS.js';
|
|
5
5
|
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 } from './types/build.js';
|
|
6
6
|
export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig } from './types/tsconfig.js';
|
|
7
7
|
export { MarkdownPageEvent, MarkdownRendererEvent } from './types/typedoc.js';
|
|
8
8
|
export { InferUnpluginOptions, StormStackUnpluginFactory, UnpluginUserConfig } from './types/unplugin.js';
|
|
9
9
|
export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerLinesWriteFileData, PowerlinesWriteFileOptions, ResolveFSOptions, ResolvePathOptions, VirtualFile, VirtualFileExtension, VirtualFileSystemInterface, VirtualFileSystemMetadata, WriteFileData, WriteFileOptions, __VFS_CACHE__, __VFS_INIT__, __VFS_RESOLVER__, __VFS_REVERT__, __VFS_UNIFIED__, __VFS_VIRTUAL__ } from './types/vfs.js';
|
|
10
|
-
import './hooks-
|
|
10
|
+
import './hooks-BMy1XRpA.js';
|
|
11
11
|
import 'webpack';
|
|
12
12
|
import 'vite';
|
|
13
13
|
import 'unloader';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { merge } from './chunk-FWGYTED4.js';
|
|
2
|
+
import { __name } from './chunk-SHUYVCID.js';
|
|
3
|
+
import { isFunction } from '@stryke/type-checks/is-function';
|
|
4
|
+
|
|
5
|
+
function extend(plugin, extension) {
|
|
6
|
+
if (isFunction(plugin)) {
|
|
7
|
+
if (isFunction(extension)) {
|
|
8
|
+
return async (options) => {
|
|
9
|
+
const pluginResult = await Promise.resolve(plugin(options));
|
|
10
|
+
const extensionResult = await Promise.resolve(extension(options));
|
|
11
|
+
return merge(extensionResult, pluginResult);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return async (options) => {
|
|
15
|
+
const result = await Promise.resolve(plugin(options));
|
|
16
|
+
return merge(extension, result);
|
|
17
|
+
};
|
|
18
|
+
} else if (isFunction(extension)) {
|
|
19
|
+
return async (options) => {
|
|
20
|
+
const result = await Promise.resolve(extension(options));
|
|
21
|
+
return merge(plugin, result);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return merge(plugin, extension);
|
|
25
|
+
}
|
|
26
|
+
__name(extend, "extend");
|
|
27
|
+
|
|
28
|
+
export { extend };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { isPluginHook, getHookHandler } from './chunk-PK6PYFWY.js';
|
|
2
|
+
import { __name } from './chunk-SHUYVCID.js';
|
|
3
|
+
import { createDefu } from 'defu';
|
|
4
|
+
|
|
5
|
+
var mergePlugin = createDefu((obj, key, value) => {
|
|
6
|
+
if (isPluginHook(obj[key]) && isPluginHook(value)) {
|
|
7
|
+
obj[key] = {
|
|
8
|
+
...obj[key],
|
|
9
|
+
...value,
|
|
10
|
+
handler: /* @__PURE__ */ __name(async (...params) => {
|
|
11
|
+
const [resultA, resultB] = await Promise.all([
|
|
12
|
+
getHookHandler(obj[key])(...params),
|
|
13
|
+
getHookHandler(value)(...params)
|
|
14
|
+
]);
|
|
15
|
+
return resultB && resultA ? [
|
|
16
|
+
...resultA,
|
|
17
|
+
...resultB
|
|
18
|
+
] : resultA || resultB;
|
|
19
|
+
}, "handler")
|
|
20
|
+
};
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
return false;
|
|
24
|
+
});
|
|
25
|
+
function merge(pluginA, pluginB) {
|
|
26
|
+
return mergePlugin(pluginA, pluginB);
|
|
27
|
+
}
|
|
28
|
+
__name(merge, "merge");
|
|
29
|
+
|
|
30
|
+
export { merge };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHRDV3U4S_cjs = require('./chunk-HRDV3U4S.cjs');
|
|
4
|
+
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
|
+
var isFunction = require('@stryke/type-checks/is-function');
|
|
6
|
+
|
|
7
|
+
function extend(plugin, extension) {
|
|
8
|
+
if (isFunction.isFunction(plugin)) {
|
|
9
|
+
if (isFunction.isFunction(extension)) {
|
|
10
|
+
return async (options) => {
|
|
11
|
+
const pluginResult = await Promise.resolve(plugin(options));
|
|
12
|
+
const extensionResult = await Promise.resolve(extension(options));
|
|
13
|
+
return chunkHRDV3U4S_cjs.merge(extensionResult, pluginResult);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
return async (options) => {
|
|
17
|
+
const result = await Promise.resolve(plugin(options));
|
|
18
|
+
return chunkHRDV3U4S_cjs.merge(extension, result);
|
|
19
|
+
};
|
|
20
|
+
} else if (isFunction.isFunction(extension)) {
|
|
21
|
+
return async (options) => {
|
|
22
|
+
const result = await Promise.resolve(extension(options));
|
|
23
|
+
return chunkHRDV3U4S_cjs.merge(plugin, result);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return chunkHRDV3U4S_cjs.merge(plugin, extension);
|
|
27
|
+
}
|
|
28
|
+
chunkUSNT2KNT_cjs.__name(extend, "extend");
|
|
29
|
+
|
|
30
|
+
exports.extend = extend;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkMQOW6ENT_cjs = require('./chunk-MQOW6ENT.cjs');
|
|
4
|
+
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
|
+
var defu = require('defu');
|
|
6
|
+
|
|
7
|
+
var mergePlugin = defu.createDefu((obj, key, value) => {
|
|
8
|
+
if (chunkMQOW6ENT_cjs.isPluginHook(obj[key]) && chunkMQOW6ENT_cjs.isPluginHook(value)) {
|
|
9
|
+
obj[key] = {
|
|
10
|
+
...obj[key],
|
|
11
|
+
...value,
|
|
12
|
+
handler: /* @__PURE__ */ chunkUSNT2KNT_cjs.__name(async (...params) => {
|
|
13
|
+
const [resultA, resultB] = await Promise.all([
|
|
14
|
+
chunkMQOW6ENT_cjs.getHookHandler(obj[key])(...params),
|
|
15
|
+
chunkMQOW6ENT_cjs.getHookHandler(value)(...params)
|
|
16
|
+
]);
|
|
17
|
+
return resultB && resultA ? [
|
|
18
|
+
...resultA,
|
|
19
|
+
...resultB
|
|
20
|
+
] : resultA || resultB;
|
|
21
|
+
}, "handler")
|
|
22
|
+
};
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
return false;
|
|
26
|
+
});
|
|
27
|
+
function merge(pluginA, pluginB) {
|
|
28
|
+
return mergePlugin(pluginA, pluginB);
|
|
29
|
+
}
|
|
30
|
+
chunkUSNT2KNT_cjs.__name(merge, "merge");
|
|
31
|
+
|
|
32
|
+
exports.merge = merge;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Format } from '@storm-software/build-tools/types';
|
|
2
2
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
3
3
|
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
4
|
-
import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
|
|
4
|
+
import { NonUndefined, MaybePromise, FunctionLike, DeepPartial } from '@stryke/types/base';
|
|
5
5
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
6
6
|
import { AssetGlob } from '@stryke/types/file';
|
|
7
7
|
import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
@@ -1037,6 +1037,8 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
|
|
|
1037
1037
|
* A configuration tuple for a Powerlines plugin.
|
|
1038
1038
|
*/
|
|
1039
1039
|
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
|
|
1040
|
+
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial<Plugin<TContext>>;
|
|
1041
|
+
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext>>;
|
|
1040
1042
|
type ProjectType = "application" | "library";
|
|
1041
1043
|
interface OutputConfig {
|
|
1042
1044
|
/**
|
|
@@ -1306,4 +1308,4 @@ type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserCo
|
|
|
1306
1308
|
command: PowerlinesCommand;
|
|
1307
1309
|
};
|
|
1308
1310
|
|
|
1309
|
-
export type { BasePluginHookFunctions as B, Context as C, ExternalPluginHookFunctions as E, GenerateTypesResult as G, PluginContext as P, ResolvedConfig as R,
|
|
1311
|
+
export type { BasePluginHookFunctions as B, Context as C, ExternalPluginHookFunctions as E, GenerateTypesResult as G, PluginContext as P, ResolvedConfig as R, Plugin as a, PluginFactory as b, PartialPlugin as c, PartialPluginFactory as d, PluginHookFunctions as e, PluginHookObject as f, PluginConfigObject as g, PluginConfigTuple as h, PluginConfig as i, PluginHook as j, EnvironmentConfig as k, EnvironmentResolvedConfig as l };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Format } from '@storm-software/build-tools/types';
|
|
2
2
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
3
3
|
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
4
|
-
import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
|
|
4
|
+
import { NonUndefined, MaybePromise, FunctionLike, DeepPartial } from '@stryke/types/base';
|
|
5
5
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
6
6
|
import { AssetGlob } from '@stryke/types/file';
|
|
7
7
|
import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
@@ -1037,6 +1037,8 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
|
|
|
1037
1037
|
* A configuration tuple for a Powerlines plugin.
|
|
1038
1038
|
*/
|
|
1039
1039
|
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
|
|
1040
|
+
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial<Plugin<TContext>>;
|
|
1041
|
+
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext>>;
|
|
1040
1042
|
type ProjectType = "application" | "library";
|
|
1041
1043
|
interface OutputConfig {
|
|
1042
1044
|
/**
|
|
@@ -1306,4 +1308,4 @@ type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserCo
|
|
|
1306
1308
|
command: PowerlinesCommand;
|
|
1307
1309
|
};
|
|
1308
1310
|
|
|
1309
|
-
export type { BasePluginHookFunctions as B, Context as C, ExternalPluginHookFunctions as E, GenerateTypesResult as G, PluginContext as P, ResolvedConfig as R,
|
|
1311
|
+
export type { BasePluginHookFunctions as B, Context as C, ExternalPluginHookFunctions as E, GenerateTypesResult as G, PluginContext as P, ResolvedConfig as R, Plugin as a, PluginFactory as b, PartialPlugin as c, PartialPluginFactory as d, PluginHookFunctions as e, PluginHookObject as f, PluginConfigObject as g, PluginConfigTuple as h, PluginConfig as i, PluginHook as j, EnvironmentConfig as k, EnvironmentResolvedConfig as l };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGRVUSUEO_cjs = require('./chunk-GRVUSUEO.cjs');
|
|
4
|
+
require('./chunk-HRDV3U4S.cjs');
|
|
5
|
+
require('./chunk-MQOW6ENT.cjs');
|
|
4
6
|
require('./chunk-USNT2KNT.cjs');
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
|
|
8
|
-
Object.defineProperty(exports, "
|
|
10
|
+
Object.defineProperty(exports, "extend", {
|
|
9
11
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkGRVUSUEO_cjs.extend; }
|
|
11
13
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, a as
|
|
1
|
+
import { P as PluginContext, a as Plugin, b as PluginFactory, c as PartialPlugin, d as PartialPluginFactory } from './config-BvVaLOty.cjs';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
@@ -23,9 +23,10 @@ import 'unionfs';
|
|
|
23
23
|
/**
|
|
24
24
|
* Adds additional helper functionality to a plugin via a plugin builder function.
|
|
25
25
|
*
|
|
26
|
-
* @param
|
|
27
|
-
* @
|
|
26
|
+
* @param plugin - The base plugin object or factory function to extend.
|
|
27
|
+
* @param extension - The plugin extension object or factory function. This function receives the plugin options and returns a plugin object.
|
|
28
|
+
* @returns A function accepting the plugin options and returning the extended plugin.
|
|
28
29
|
*/
|
|
29
|
-
declare function
|
|
30
|
+
declare function extend<TContext extends PluginContext = PluginContext>(plugin: Plugin<TContext> | PluginFactory<TContext>, extension: PartialPlugin<TContext> | PartialPluginFactory<TContext>): typeof plugin extends PluginFactory<TContext> ? PluginFactory<TContext, (typeof extension extends PluginFactory<TContext> ? Parameters<typeof extension>[0] : never) & Parameters<typeof plugin>[0]> : typeof plugin extends PluginFactory<TContext> ? PluginFactory<TContext> : Plugin<TContext>;
|
|
30
31
|
|
|
31
|
-
export {
|
|
32
|
+
export { extend };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, a as
|
|
1
|
+
import { P as PluginContext, a as Plugin, b as PluginFactory, c as PartialPlugin, d as PartialPluginFactory } from './config-BvVaLOty.js';
|
|
2
2
|
import '@storm-software/build-tools/types';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@storm-software/config/types';
|
|
@@ -23,9 +23,10 @@ import 'unionfs';
|
|
|
23
23
|
/**
|
|
24
24
|
* Adds additional helper functionality to a plugin via a plugin builder function.
|
|
25
25
|
*
|
|
26
|
-
* @param
|
|
27
|
-
* @
|
|
26
|
+
* @param plugin - The base plugin object or factory function to extend.
|
|
27
|
+
* @param extension - The plugin extension object or factory function. This function receives the plugin options and returns a plugin object.
|
|
28
|
+
* @returns A function accepting the plugin options and returning the extended plugin.
|
|
28
29
|
*/
|
|
29
|
-
declare function
|
|
30
|
+
declare function extend<TContext extends PluginContext = PluginContext>(plugin: Plugin<TContext> | PluginFactory<TContext>, extension: PartialPlugin<TContext> | PartialPluginFactory<TContext>): typeof plugin extends PluginFactory<TContext> ? PluginFactory<TContext, (typeof extension extends PluginFactory<TContext> ? Parameters<typeof extension>[0] : never) & Parameters<typeof plugin>[0]> : typeof plugin extends PluginFactory<TContext> ? PluginFactory<TContext> : Plugin<TContext>;
|
|
30
31
|
|
|
31
|
-
export {
|
|
32
|
+
export { extend };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, B as BasePluginHookFunctions,
|
|
1
|
+
import { P as PluginContext, B as BasePluginHookFunctions, e as PluginHookFunctions, E as ExternalPluginHookFunctions, f as PluginHookObject, a as Plugin, R as ResolvedConfig, g as PluginConfigObject, h as PluginConfigTuple, i as PluginConfig, j as PluginHook, C as Context, k as EnvironmentConfig, l as EnvironmentResolvedConfig, G as GenerateTypesResult } from './config-BvVaLOty.cjs';
|
|
2
2
|
import * as unplugin from 'unplugin';
|
|
3
3
|
import * as _stryke_types_base from '@stryke/types/base';
|
|
4
4
|
import { AnyFunction } from '@stryke/types/base';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, B as BasePluginHookFunctions,
|
|
1
|
+
import { P as PluginContext, B as BasePluginHookFunctions, e as PluginHookFunctions, E as ExternalPluginHookFunctions, f as PluginHookObject, a as Plugin, R as ResolvedConfig, g as PluginConfigObject, h as PluginConfigTuple, i as PluginConfig, j as PluginHook, C as Context, k as EnvironmentConfig, l as EnvironmentResolvedConfig, G as GenerateTypesResult } from './config-BvVaLOty.js';
|
|
2
2
|
import * as unplugin from 'unplugin';
|
|
3
3
|
import * as _stryke_types_base from '@stryke/types/base';
|
|
4
4
|
import { AnyFunction } from '@stryke/types/base';
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGRVUSUEO_cjs = require('./chunk-GRVUSUEO.cjs');
|
|
4
4
|
var chunkYKIS7BLU_cjs = require('./chunk-YKIS7BLU.cjs');
|
|
5
|
+
var chunkHRDV3U4S_cjs = require('./chunk-HRDV3U4S.cjs');
|
|
5
6
|
var chunkMQOW6ENT_cjs = require('./chunk-MQOW6ENT.cjs');
|
|
6
7
|
var chunk2HFS2OOG_cjs = require('./chunk-2HFS2OOG.cjs');
|
|
7
8
|
require('./chunk-USNT2KNT.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "extend", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkGRVUSUEO_cjs.extend; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "getConfigPath", {
|
|
16
17
|
enumerable: true,
|
|
17
18
|
get: function () { return chunkYKIS7BLU_cjs.getConfigPath; }
|
|
18
19
|
});
|
|
20
|
+
Object.defineProperty(exports, "merge", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkHRDV3U4S_cjs.merge; }
|
|
23
|
+
});
|
|
19
24
|
Object.defineProperty(exports, "addPluginHook", {
|
|
20
25
|
enumerable: true,
|
|
21
26
|
get: function () { return chunkMQOW6ENT_cjs.addPluginHook; }
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { extend } from './extend.cjs';
|
|
2
2
|
export { getConfigPath } from './get-config-path.cjs';
|
|
3
3
|
export { addPluginHook, checkDedupe, extractPluginHook, getHookHandler, isHookExternal, isHookInternal, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookFunction, isPluginHookObject } from './helpers.cjs';
|
|
4
|
+
export { MergeResult, merge } from './merge.cjs';
|
|
4
5
|
export { replacePathTokens } from './paths.cjs';
|
|
5
|
-
import './config-
|
|
6
|
+
import './config-BvVaLOty.cjs';
|
|
6
7
|
import '@storm-software/build-tools/types';
|
|
7
8
|
import '@storm-software/config-tools/types';
|
|
8
9
|
import '@storm-software/config/types';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { extend } from './extend.js';
|
|
2
2
|
export { getConfigPath } from './get-config-path.js';
|
|
3
3
|
export { addPluginHook, checkDedupe, extractPluginHook, getHookHandler, isHookExternal, isHookInternal, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookFunction, isPluginHookObject } from './helpers.js';
|
|
4
|
+
export { MergeResult, merge } from './merge.js';
|
|
4
5
|
export { replacePathTokens } from './paths.js';
|
|
5
|
-
import './config-
|
|
6
|
+
import './config-BvVaLOty.js';
|
|
6
7
|
import '@storm-software/build-tools/types';
|
|
7
8
|
import '@storm-software/config-tools/types';
|
|
8
9
|
import '@storm-software/config/types';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { extend } from './chunk-F57OBGVS.js';
|
|
2
2
|
export { getConfigPath } from './chunk-HHFA3IEZ.js';
|
|
3
|
+
export { merge } from './chunk-FWGYTED4.js';
|
|
3
4
|
export { addPluginHook, checkDedupe, extractPluginHook, getHookHandler, isHookExternal, isHookInternal, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookFunction, isPluginHookObject } from './chunk-PK6PYFWY.js';
|
|
4
5
|
export { replacePathTokens } from './chunk-CVZA2RT3.js';
|
|
5
6
|
import './chunk-SHUYVCID.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHRDV3U4S_cjs = require('./chunk-HRDV3U4S.cjs');
|
|
4
|
+
require('./chunk-MQOW6ENT.cjs');
|
|
5
|
+
require('./chunk-USNT2KNT.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "merge", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkHRDV3U4S_cjs.merge; }
|
|
12
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { P as PluginContext, a as Plugin, c as PartialPlugin } from './config-BvVaLOty.cjs';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/array';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
|
|
23
|
+
type MergeResult<TContext extends PluginContext, TPluginA extends Plugin<TContext> | PartialPlugin<TContext>, TPluginB extends Plugin<TContext> | PartialPlugin<TContext>> = TPluginA extends Plugin<TContext> ? Plugin<TContext> : TPluginB extends Plugin<TContext> ? Plugin<TContext> : PartialPlugin<TContext>;
|
|
24
|
+
/**
|
|
25
|
+
* Merges two {@link Plugin | plugins} or {@link PartialPlugin | partial plugins} together.
|
|
26
|
+
*
|
|
27
|
+
* @param pluginA - The first {@link Plugin | plugin} or {@link PartialPlugin | partial plugin} to merge.
|
|
28
|
+
* @param pluginB - The second {@link Plugin | plugin} or {@link PartialPlugin | partial plugin} to merge.
|
|
29
|
+
* @returns The merged {@link Plugin | plugin} or {@link PartialPlugin | partial plugin}.
|
|
30
|
+
*/
|
|
31
|
+
declare function merge<TContext extends PluginContext = PluginContext>(pluginA: Plugin<TContext> | PartialPlugin<TContext>, pluginB: Plugin<TContext> | PartialPlugin<TContext>): MergeResult<TContext, typeof pluginA, typeof pluginB>;
|
|
32
|
+
|
|
33
|
+
export { type MergeResult, merge };
|