@powerlines/plugin-satori 0.1.124 → 0.1.125

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.
@@ -1,14 +1,16 @@
1
- import { UnpluginBuildVariant } from "./build.mjs";
1
+ import { BuilderVariant } from "./build.mjs";
2
2
  import { EnvironmentConfig, PluginConfig } from "./config.mjs";
3
3
  import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
4
4
  import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
5
5
  import { CommandType } from "./commands.mjs";
6
+ import { InferUnpluginOptions } from "./unplugin.mjs";
6
7
  import { ArrayValues } from "@stryke/types/array";
7
- import { FunctionLike, MaybePromise } from "@stryke/types/base";
8
- import { ExternalIdResult, HookFilter, TransformResult, UnpluginOptions } from "unplugin";
8
+ import { AnyFunction, MaybePromise } from "@stryke/types/base";
9
+ import { LoadResult } from "rollup";
10
+ import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
9
11
 
10
12
  //#region ../powerlines/src/types/plugin.d.ts
11
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
13
+ interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
12
14
  /**
13
15
  * The order in which the plugin should be applied.
14
16
  */
@@ -22,7 +24,7 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
22
24
  */
23
25
  handler: THookFunction;
24
26
  }
25
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
27
+ type PluginHook<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
26
28
  /**
27
29
  * A result returned by the plugin from the `types` hook that describes the declaration types output file.
28
30
  */
@@ -30,9 +32,7 @@ interface TypesResult {
30
32
  directives?: string[];
31
33
  code: string;
32
34
  }
33
- type DeepPartial<T> = { [K in keyof T]?: DeepPartial<T[K]> };
34
- type ConfigResult<TContext extends PluginContext = PluginContext> = DeepPartial<TContext["config"]> & Record<string, any>;
35
- interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
35
+ type PluginHookFunctions<TContext extends PluginContext> = { [TCommandType in CommandType]: (this: TContext) => MaybePromise<void> } & {
36
36
  /**
37
37
  * A function that returns configuration options to be merged with the build context's options.
38
38
  *
@@ -47,7 +47,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
47
47
  * @param config - The partial configuration object to be modified.
48
48
  * @returns A promise that resolves to a partial configuration object.
49
49
  */
50
- config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>;
50
+ config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<DeepPartial<TContext["config"]> & Record<string, any>>;
51
51
  /**
52
52
  * Modify environment configs before it's resolved. The hook can either mutate the passed-in environment config directly, or return a partial config object that will be deeply merged into existing config.
53
53
  *
@@ -109,7 +109,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
109
109
  * @param id - The identifier of the source code.
110
110
  * @returns A promise that resolves when the hook is complete.
111
111
  */
112
- load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>;
112
+ load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<LoadResult>;
113
113
  /**
114
114
  * A hook that is called to resolve the identifier of the source code.
115
115
  *
@@ -129,56 +129,14 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
129
129
  * @returns A promise that resolves when the hook is complete.
130
130
  */
131
131
  writeBundle: (this: TContext) => MaybePromise<void>;
132
- }
133
- type BuildPlugin<TContext extends PluginContext = PluginContext, TBuildVariant$1 extends UnpluginBuildVariant = UnpluginBuildVariant, TOptions extends Required<UnpluginOptions>[TBuildVariant$1] = Required<UnpluginOptions>[TBuildVariant$1]> = { [TKey in keyof TOptions]: TOptions[TKey] extends FunctionLike ? (this: ThisParameterType<TOptions[TKey]> & TContext, ...args: Parameters<TOptions[TKey]>) => ReturnType<TOptions[TKey]> | MaybePromise<ReturnType<TOptions[TKey]>> : TOptions[TKey] };
134
- type PluginHooks<TContext extends PluginContext = PluginContext> = { [TKey in keyof BasePluginHookFunctions<TContext>]: PluginHook<BasePluginHookFunctions<TContext>[TKey]> } & {
135
- /**
136
- * A function that returns configuration options to be merged with the build context's options.
137
- *
138
- * @remarks
139
- * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
140
- *
141
- * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
142
- *
143
- * @see https://vitejs.dev/guide/api-plugin#config
144
- *
145
- * @param this - The build context.
146
- * @param config - The partial configuration object to be modified.
147
- * @returns A promise that resolves to a partial configuration object.
148
- */
149
- config: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>> | ConfigResult<TContext>;
150
- /**
151
- * A hook that is called to transform the source code.
152
- *
153
- * @param this - The build context, unplugin build context, and unplugin context.
154
- * @param code - The source code to transform.
155
- * @param id - The identifier of the source code.
156
- * @returns A promise that resolves when the hook is complete.
157
- */
158
- transform: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>, "code" | "id">;
159
- /**
160
- * A hook that is called to load the source code.
161
- *
162
- * @param this - The build context, unplugin build context, and unplugin context.
163
- * @param id - The identifier of the source code.
164
- * @returns A promise that resolves when the hook is complete.
165
- */
166
- load: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>, "id">;
167
- /**
168
- * A hook that is called to resolve the identifier of the source code.
169
- *
170
- * @param this - The build context, unplugin build context, and unplugin context.
171
- * @param id - The identifier of the source code.
172
- * @param importer - The importer of the source code.
173
- * @param options - The options for resolving the identifier.
174
- * @returns A promise that resolves when the hook is complete.
175
- */
176
- resolveId: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
177
- isEntry: boolean;
178
- }) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
179
132
  };
180
- type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = { [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant> };
181
- interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
133
+ type PluginHooks<TContext extends PluginContext> = { [TPluginHook in keyof PluginHookFunctions<TContext>]?: PluginHook<PluginHookFunctions<TContext>[TPluginHook]> } & {
134
+ transform: PluginHook<PluginHookFunctions<TContext>["transform"], "code" | "id">;
135
+ load: PluginHook<PluginHookFunctions<TContext>["load"], "id">;
136
+ resolveId: PluginHook<PluginHookFunctions<TContext>["resolveId"], "id">;
137
+ };
138
+ type DeepPartial<T> = { [K in keyof T]?: DeepPartial<T[K]> };
139
+ type Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> = Partial<PluginHooks<TContext>> & {
182
140
  /**
183
141
  * The name of the plugin, for use in deduplication, error messages and logs.
184
142
  */
@@ -226,6 +184,22 @@ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<
226
184
  * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
227
185
  */
228
186
  applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<TContext>;
229
- }
187
+ /**
188
+ * A function that returns configuration options to be merged with the build context's options.
189
+ *
190
+ * @remarks
191
+ * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
192
+ *
193
+ * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
194
+ *
195
+ * @see https://vitejs.dev/guide/api-plugin#config
196
+ *
197
+ * @param this - The build context.
198
+ * @param config - The partial configuration object to be modified.
199
+ * @returns A promise that resolves to a partial configuration object.
200
+ */
201
+ config?: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<DeepPartial<TContext["config"]> & Record<string, any>>> | (DeepPartial<TContext["config"]> & Record<string, any>);
202
+ } & { [TBuilderVariant in BuilderVariant]?: InferUnpluginOptions<TContext, TBuilderVariant> };
203
+ type PluginHookFields<TContext extends PluginContext = PluginContext> = keyof PluginHookFunctions<TContext>;
230
204
  //#endregion
231
- export { Plugin };
205
+ export { Plugin, PluginHook, PluginHookFields, PluginHookFunctions };
@@ -1,4 +1,5 @@
1
- import { EnvironmentConfig, InlineConfig, OutputConfig, UserConfig } from "./config.cjs";
1
+ import { BuilderVariant } from "./build.cjs";
2
+ import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
2
3
  import { NonUndefined } from "@stryke/types/base";
3
4
  import { ResolvedPreviewOptions } from "vite";
4
5
  import { TypeDefinition } from "@stryke/types/configuration";
@@ -32,7 +33,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
32
33
  /**
33
34
  * The resolved options for the Powerlines project configuration.
34
35
  */
35
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "organization" | "compatibilityDate" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "organization" | "compatibilityDate" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
36
+ type ResolvedConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUserConfig, "name" | "title" | "organization" | "compatibilityDate" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "organization" | "compatibilityDate" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
36
37
  /**
37
38
  * The configuration options that were provided inline to the Powerlines CLI.
38
39
  */
@@ -67,7 +68,7 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
67
68
  * Configuration provided to build processes
68
69
  *
69
70
  * @remarks
70
- * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
71
+ * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuilderVariant | build variant}.
71
72
  */
72
73
  build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
73
74
  /**
@@ -77,5 +78,16 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
77
78
  */
78
79
  logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
79
80
  };
81
+ type ViteResolvedConfig = ResolvedConfig<ViteUserConfig>;
82
+ type WebpackResolvedConfig = ResolvedConfig<WebpackUserConfig>;
83
+ type RspackResolvedConfig = ResolvedConfig<RspackUserConfig>;
84
+ type ESBuildResolvedConfig = ResolvedConfig<ESBuildUserConfig>;
85
+ type RollupResolvedConfig = ResolvedConfig<RollupUserConfig>;
86
+ type RolldownResolvedConfig = ResolvedConfig<RolldownUserConfig>;
87
+ type TsupResolvedConfig = ResolvedConfig<TsupUserConfig>;
88
+ type TsdownResolvedConfig = ResolvedConfig<TsdownUserConfig>;
89
+ type UnbuildResolvedConfig = ResolvedConfig<UnbuildUserConfig>;
90
+ type FarmResolvedConfig = ResolvedConfig<FarmUserConfig>;
91
+ type InferResolvedConfig<TBuildVariant extends BuilderVariant | undefined> = TBuildVariant extends undefined ? ResolvedConfig : TBuildVariant extends "webpack" ? WebpackResolvedConfig : TBuildVariant extends "rspack" ? RspackResolvedConfig : TBuildVariant extends "vite" ? ViteResolvedConfig : TBuildVariant extends "esbuild" ? ESBuildResolvedConfig : TBuildVariant extends "unbuild" ? UnbuildResolvedConfig : TBuildVariant extends "tsup" ? TsupResolvedConfig : TBuildVariant extends "tsdown" ? TsdownResolvedConfig : TBuildVariant extends "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
80
92
  //#endregion
81
- export { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition };
93
+ export { EnvironmentResolvedConfig, InferResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition };
@@ -1,4 +1,5 @@
1
- import { EnvironmentConfig, InlineConfig, OutputConfig, UserConfig } from "./config.mjs";
1
+ import { BuilderVariant } from "./build.mjs";
2
+ import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
2
3
  import { NonUndefined } from "@stryke/types/base";
3
4
  import { ResolvedPreviewOptions } from "vite";
4
5
  import { TypeDefinition } from "@stryke/types/configuration";
@@ -32,7 +33,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
32
33
  /**
33
34
  * The resolved options for the Powerlines project configuration.
34
35
  */
35
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "organization" | "compatibilityDate" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "organization" | "compatibilityDate" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
36
+ type ResolvedConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUserConfig, "name" | "title" | "organization" | "compatibilityDate" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "organization" | "compatibilityDate" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
36
37
  /**
37
38
  * The configuration options that were provided inline to the Powerlines CLI.
38
39
  */
@@ -67,7 +68,7 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
67
68
  * Configuration provided to build processes
68
69
  *
69
70
  * @remarks
70
- * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
71
+ * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuilderVariant | build variant}.
71
72
  */
72
73
  build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
73
74
  /**
@@ -77,5 +78,16 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
77
78
  */
78
79
  logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
79
80
  };
81
+ type ViteResolvedConfig = ResolvedConfig<ViteUserConfig>;
82
+ type WebpackResolvedConfig = ResolvedConfig<WebpackUserConfig>;
83
+ type RspackResolvedConfig = ResolvedConfig<RspackUserConfig>;
84
+ type ESBuildResolvedConfig = ResolvedConfig<ESBuildUserConfig>;
85
+ type RollupResolvedConfig = ResolvedConfig<RollupUserConfig>;
86
+ type RolldownResolvedConfig = ResolvedConfig<RolldownUserConfig>;
87
+ type TsupResolvedConfig = ResolvedConfig<TsupUserConfig>;
88
+ type TsdownResolvedConfig = ResolvedConfig<TsdownUserConfig>;
89
+ type UnbuildResolvedConfig = ResolvedConfig<UnbuildUserConfig>;
90
+ type FarmResolvedConfig = ResolvedConfig<FarmUserConfig>;
91
+ type InferResolvedConfig<TBuildVariant extends BuilderVariant | undefined> = TBuildVariant extends undefined ? ResolvedConfig : TBuildVariant extends "webpack" ? WebpackResolvedConfig : TBuildVariant extends "rspack" ? RspackResolvedConfig : TBuildVariant extends "vite" ? ViteResolvedConfig : TBuildVariant extends "esbuild" ? ESBuildResolvedConfig : TBuildVariant extends "unbuild" ? UnbuildResolvedConfig : TBuildVariant extends "tsup" ? TsupResolvedConfig : TBuildVariant extends "tsdown" ? TsdownResolvedConfig : TBuildVariant extends "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
80
92
  //#endregion
81
- export { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition };
93
+ export { EnvironmentResolvedConfig, InferResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition };
@@ -0,0 +1,22 @@
1
+ import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.cjs";
2
+ import { InferResolvedConfig } from "./resolved.cjs";
3
+ import { Context } from "./context.cjs";
4
+ import { API } from "./api.cjs";
5
+ import { PluginHook } from "./plugin.cjs";
6
+ import { MaybePromise } from "@stryke/types/base";
7
+ import { HookFilter, UnpluginOptions } from "unplugin";
8
+
9
+ //#region ../powerlines/src/types/unplugin.d.ts
10
+ interface UnpluginOptions$1<TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant> extends UnpluginOptions {
11
+ /**
12
+ * An API object that can be used for inter-plugin communication.
13
+ *
14
+ * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
15
+ */
16
+ api: API<InferResolvedConfig<TUnpluginBuilderVariant>>;
17
+ }
18
+ type InferUnpluginOptions<TContext extends Context = Context, TBuilderVariant extends BuilderVariant = BuilderVariant, TUnpluginVariant extends InferUnpluginVariant<TBuilderVariant> = InferUnpluginVariant<TBuilderVariant>> = { [TKey in keyof Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant]]?: Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant][TKey] extends infer THandler | {
19
+ handler: infer THandler;
20
+ } ? THandler extends ((this: infer TOriginalContext, ...args: infer TArgs) => infer TReturn) ? PluginHook<(this: TOriginalContext & TContext, ...args: TArgs) => MaybePromise<TReturn>, keyof HookFilter> : Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant][TKey] : Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant][TKey] };
21
+ //#endregion
22
+ export { InferUnpluginOptions };
@@ -0,0 +1,23 @@
1
+ import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.mjs";
2
+ import "./config.mjs";
3
+ import { InferResolvedConfig } from "./resolved.mjs";
4
+ import { Context } from "./context.mjs";
5
+ import { API } from "./api.mjs";
6
+ import { PluginHook } from "./plugin.mjs";
7
+ import { MaybePromise } from "@stryke/types/base";
8
+ import { HookFilter, UnpluginOptions } from "unplugin";
9
+
10
+ //#region ../powerlines/src/types/unplugin.d.ts
11
+ interface UnpluginOptions$1<TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant> extends UnpluginOptions {
12
+ /**
13
+ * An API object that can be used for inter-plugin communication.
14
+ *
15
+ * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
16
+ */
17
+ api: API<InferResolvedConfig<TUnpluginBuilderVariant>>;
18
+ }
19
+ type InferUnpluginOptions<TContext extends Context = Context, TBuilderVariant extends BuilderVariant = BuilderVariant, TUnpluginVariant extends InferUnpluginVariant<TBuilderVariant> = InferUnpluginVariant<TBuilderVariant>> = { [TKey in keyof Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant]]?: Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant][TKey] extends infer THandler | {
20
+ handler: infer THandler;
21
+ } ? THandler extends ((this: infer TOriginalContext, ...args: infer TArgs) => infer TReturn) ? PluginHook<(this: TOriginalContext & TContext, ...args: TArgs) => MaybePromise<TReturn>, keyof HookFilter> : Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant][TKey] : Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant][TKey] };
22
+ //#endregion
23
+ export { InferUnpluginOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-satori",
3
- "version": "0.1.124",
3
+ "version": "0.1.125",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to use Satori to generate SVG files from jsx/tsx components.",
6
6
  "repository": {
@@ -131,17 +131,17 @@
131
131
  "@stryke/types": "^0.10.29",
132
132
  "defu": "^6.1.4",
133
133
  "jiti": "^2.6.1",
134
- "powerlines": "^0.36.29",
134
+ "powerlines": "^0.37.0",
135
135
  "satori": "^0.18.3"
136
136
  },
137
137
  "devDependencies": {
138
- "@powerlines/nx": "^0.11.55",
139
- "@powerlines/plugin-plugin": "^0.12.77",
138
+ "@powerlines/nx": "^0.11.56",
139
+ "@powerlines/plugin-plugin": "^0.12.78",
140
140
  "@storm-software/config": "^1.134.75",
141
141
  "@types/node": "^24.10.4",
142
142
  "@types/react": "^19.2.7",
143
143
  "@types/react-dom": "^19.2.3"
144
144
  },
145
145
  "publishConfig": { "access": "public" },
146
- "gitHead": "bfbde2cda62a5307013bf11d1ef6a8500bcbc4b1"
146
+ "gitHead": "00141b82214ec2772cec7ec7873aba06f593289b"
147
147
  }