@powerlines/core 0.13.12 → 0.13.13
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/constants/api.cjs +16 -0
- package/dist/constants/api.d.cts +5 -0
- package/dist/constants/api.d.cts.map +1 -0
- package/dist/constants/api.d.mts +5 -0
- package/dist/constants/api.d.mts.map +1 -0
- package/dist/constants/api.mjs +16 -0
- package/dist/constants/api.mjs.map +1 -0
- package/dist/constants/commands.cjs +2 -11
- package/dist/constants/commands.d.cts +1 -1
- package/dist/constants/commands.d.cts.map +1 -1
- package/dist/constants/commands.d.mts +1 -1
- package/dist/constants/commands.d.mts.map +1 -1
- package/dist/constants/commands.mjs +3 -11
- package/dist/constants/commands.mjs.map +1 -1
- package/dist/constants/index.cjs +2 -0
- package/dist/constants/index.d.cts +2 -1
- package/dist/constants/index.d.mts +2 -1
- package/dist/constants/index.mjs +2 -1
- package/dist/constants/plugin.d.cts +2 -2
- package/dist/constants/plugin.d.mts +2 -2
- package/dist/index.d.cts +5 -4
- package/dist/index.d.mts +5 -4
- package/dist/lib/config.cjs +17 -28
- package/dist/lib/config.d.cts +6 -11
- package/dist/lib/config.d.cts.map +1 -1
- package/dist/lib/config.d.mts +6 -11
- package/dist/lib/config.d.mts.map +1 -1
- package/dist/lib/config.mjs +17 -28
- package/dist/lib/config.mjs.map +1 -1
- package/dist/lib/entry.cjs +4 -4
- package/dist/lib/entry.d.cts.map +1 -1
- package/dist/lib/entry.d.mts.map +1 -1
- package/dist/lib/entry.mjs +4 -4
- package/dist/lib/entry.mjs.map +1 -1
- package/dist/lib/logger.cjs +1 -1
- package/dist/lib/logger.d.cts.map +1 -1
- package/dist/lib/logger.d.mts.map +1 -1
- package/dist/lib/logger.mjs +1 -1
- package/dist/lib/logger.mjs.map +1 -1
- package/dist/lib/unplugin/plugin.cjs +1 -1
- package/dist/lib/unplugin/plugin.mjs +1 -1
- package/dist/lib/unplugin/plugin.mjs.map +1 -1
- package/dist/lib/utilities/format.cjs +3 -3
- package/dist/lib/utilities/format.d.cts.map +1 -1
- package/dist/lib/utilities/format.d.mts.map +1 -1
- package/dist/lib/utilities/format.mjs +3 -3
- package/dist/lib/utilities/format.mjs.map +1 -1
- package/dist/plugin-base.cjs +2 -2
- package/dist/plugin-base.mjs +2 -2
- package/dist/plugin-base.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.cjs +8 -5
- package/dist/plugin-utils/context-helpers.d.cts +1 -1
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/context-helpers.d.mts +1 -1
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs +8 -5
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/format-package-json.cjs +1 -1
- package/dist/plugin-utils/format-package-json.mjs +1 -1
- package/dist/plugin-utils/format-package-json.mjs.map +1 -1
- package/dist/plugin-utils/get-config-path.cjs +32 -32
- package/dist/plugin-utils/get-config-path.mjs +32 -32
- package/dist/plugin-utils/get-config-path.mjs.map +1 -1
- package/dist/plugin-utils/helpers.d.cts +4 -4
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts +4 -4
- package/dist/plugin-utils/helpers.d.mts.map +1 -1
- package/dist/plugin-utils/paths.cjs +1 -1
- package/dist/plugin-utils/paths.mjs +1 -1
- package/dist/plugin-utils/paths.mjs.map +1 -1
- package/dist/types/_internal.d.cts +6 -6
- package/dist/types/_internal.d.cts.map +1 -1
- package/dist/types/_internal.d.mts +6 -6
- package/dist/types/_internal.d.mts.map +1 -1
- package/dist/types/api.d.cts +62 -9
- package/dist/types/api.d.cts.map +1 -1
- package/dist/types/api.d.mts +62 -9
- package/dist/types/api.d.mts.map +1 -1
- package/dist/types/config.d.cts +89 -56
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +89 -56
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/context.d.cts +101 -62
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +101 -62
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/index.d.cts +4 -3
- package/dist/types/index.d.mts +4 -3
- package/dist/types/utils.d.cts +9 -0
- package/dist/types/utils.d.cts.map +1 -0
- package/dist/types/utils.d.mts +9 -0
- package/dist/types/utils.d.mts.map +1 -0
- package/package.json +3 -3
|
@@ -75,7 +75,7 @@ declare function getHookHandler<TContext extends PluginContext = PluginContext,
|
|
|
75
75
|
* @returns The extracted hook, or undefined if the hook does not exist
|
|
76
76
|
*/
|
|
77
77
|
declare function extractPluginHook<TContext extends PluginContext = PluginContext, TPlugin extends Plugin<TContext> = Plugin<TContext>>(context: TContext, plugin: TPlugin, hook: keyof PluginHooks<TContext>): {
|
|
78
|
-
normal: OmitThisParameter<((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _$_stryke_types_base0.MaybePromise<_$unplugin.TransformResult>) | (((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _$_stryke_types_base0.MaybePromise<_$unplugin.TransformResult>) & PluginHookObject<(this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _$_stryke_types_base0.MaybePromise<_$unplugin.TransformResult>, "id" | "code">) | (PluginHookObject<(this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _$_stryke_types_base0.MaybePromise<_$unplugin.TransformResult>, never> & ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _$_stryke_types_base0.MaybePromise<_$unplugin.TransformResult>)) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _$_stryke_types_base0.MaybePromise<_$rollup.LoadResult>) | (((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _$_stryke_types_base0.MaybePromise<_$rollup.LoadResult>) & PluginHookObject<(this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _$_stryke_types_base0.MaybePromise<_$rollup.LoadResult>, "id">) | (PluginHookObject<(this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _$_stryke_types_base0.MaybePromise<_$rollup.LoadResult>, never> & ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _$_stryke_types_base0.MaybePromise<_$rollup.LoadResult>)) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
78
|
+
normal: OmitThisParameter<((this: TContext) => _$_stryke_types_base0.MaybePromise<void>) | (((this: TContext) => _$_stryke_types_base0.MaybePromise<void>) & ((this: TContext, code: string) => _$_stryke_types_base0.MaybePromise<TypesResult | string | undefined | null>)) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _$_stryke_types_base0.MaybePromise<_$unplugin.TransformResult>) | (((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _$_stryke_types_base0.MaybePromise<_$unplugin.TransformResult>) & PluginHookObject<(this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _$_stryke_types_base0.MaybePromise<_$unplugin.TransformResult>, "id" | "code">) | (PluginHookObject<(this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _$_stryke_types_base0.MaybePromise<_$unplugin.TransformResult>, never> & ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _$_stryke_types_base0.MaybePromise<_$unplugin.TransformResult>)) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _$_stryke_types_base0.MaybePromise<_$rollup.LoadResult>) | (((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _$_stryke_types_base0.MaybePromise<_$rollup.LoadResult>) & PluginHookObject<(this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _$_stryke_types_base0.MaybePromise<_$rollup.LoadResult>, "id">) | (PluginHookObject<(this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _$_stryke_types_base0.MaybePromise<_$rollup.LoadResult>, never> & ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _$_stryke_types_base0.MaybePromise<_$rollup.LoadResult>)) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
79
79
|
isEntry: boolean;
|
|
80
80
|
}) => _$_stryke_types_base0.MaybePromise<string | ResolveResult | null | undefined>) | (((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
81
81
|
isEntry: boolean;
|
|
@@ -85,11 +85,11 @@ declare function extractPluginHook<TContext extends PluginContext = PluginContex
|
|
|
85
85
|
isEntry: boolean;
|
|
86
86
|
}) => _$_stryke_types_base0.MaybePromise<string | ResolveResult | null | undefined>, never> & ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
87
87
|
isEntry: boolean;
|
|
88
|
-
}) => _$_stryke_types_base0.MaybePromise<string | ResolveResult | null | undefined>)) | (((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>) & ((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>)) | (((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>) & PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>, never>) | (((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>) & (TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>) | (PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>, never> & ((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>)) | ((this: TContext
|
|
88
|
+
}) => _$_stryke_types_base0.MaybePromise<string | ResolveResult | null | undefined>)) | (((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>) & ((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>)) | (((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>) & PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>, never>) | (((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>) & (TContext["config"] extends infer T ? { [K in keyof T]?: (T[K] extends infer T_1 ? { [K_2 in keyof T_1]?: (T_1[K_2] extends infer T_2 ? { [K_3 in keyof T_2]?: (T_2[K_3] extends infer T_3 ? { [K_4 in keyof T_3]?: (T_3[K_4] extends infer T_4 ? { [K_5 in keyof T_4]?: (T_4[K_5] extends infer T_5 ? { [K_6 in keyof T_5]?: (T_5[K_6] extends infer T_6 ? { [K_7 in keyof T_6]?: (T_6[K_7] extends infer T_7 ? { [K_8 in keyof T_7]?: (T_7[K_8] extends infer T_8 ? { [K_9 in keyof T_8]?: (T_8[K_9] extends infer T_9 ? { [K_10 in keyof T_9]?: (T_9[K_10] extends infer T_10 ? { [K_11 in keyof T_10]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>) | (PluginHookObject<(this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>, never> & ((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>)) | ((this: TContext, name: string, environment: EnvironmentConfig) => _$_stryke_types_base0.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _$_stryke_types_base0.MaybePromise<void>) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _$_stryke_types_base0.MaybePromise<void>) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _$_stryke_types_base0.MaybePromise<void>) | ((this: TContext) => _$_stryke_types_base0.MaybePromise<void>)>;
|
|
89
89
|
} | {
|
|
90
|
-
[x: string]: OmitThisParameter<((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _$_stryke_types_base0.MaybePromise<_$unplugin.TransformResult>) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _$_stryke_types_base0.MaybePromise<_$rollup.LoadResult>) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
90
|
+
[x: string]: OmitThisParameter<((this: TContext) => _$_stryke_types_base0.MaybePromise<void>) | (((this: TContext) => _$_stryke_types_base0.MaybePromise<void>) & ((this: TContext, code: string) => _$_stryke_types_base0.MaybePromise<TypesResult | string | undefined | null>)) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, code: string, id: string) => _$_stryke_types_base0.MaybePromise<_$unplugin.TransformResult>) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string) => _$_stryke_types_base0.MaybePromise<_$rollup.LoadResult>) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
91
91
|
isEntry: boolean;
|
|
92
|
-
}) => _$_stryke_types_base0.MaybePromise<string | ResolveResult | null | undefined>) | ((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>) | (((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>) & ((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>)) | ((this: TContext
|
|
92
|
+
}) => _$_stryke_types_base0.MaybePromise<string | ResolveResult | null | undefined>) | ((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>) | (((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>) & ((this: UnresolvedContext<TContext["config"]>) => _$_stryke_types_base0.MaybePromise<(TContext["config"] extends infer T_1 ? { [K in keyof T_1]?: (T_1[K] extends infer T_2 ? { [K_2 in keyof T_2]?: (T_2[K_2] extends infer T_3 ? { [K_3 in keyof T_3]?: (T_3[K_3] extends infer T_4 ? { [K_4 in keyof T_4]?: (T_4[K_4] extends infer T_5 ? { [K_5 in keyof T_5]?: (T_5[K_5] extends infer T_6 ? { [K_6 in keyof T_6]?: (T_6[K_6] extends infer T_7 ? { [K_7 in keyof T_7]?: (T_7[K_7] extends infer T_8 ? { [K_8 in keyof T_8]?: (T_8[K_8] extends infer T_9 ? { [K_9 in keyof T_9]?: (T_9[K_9] extends infer T_10 ? { [K_10 in keyof T_10]?: (T_10[K_10] extends infer T_11 ? { [K_11 in keyof T_11]?: /*elided*/any | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) | undefined } : never) & Record<string, any>>)) | ((this: TContext, name: string, environment: EnvironmentConfig) => _$_stryke_types_base0.MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>) | ((this: TContext) => _$_stryke_types_base0.MaybePromise<void>) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _$_stryke_types_base0.MaybePromise<void>) | ((this: _$unplugin.UnpluginBuildContext & PluginContext<TContext["config"]> & TContext) => _$_stryke_types_base0.MaybePromise<void>) | ((this: TContext) => _$_stryke_types_base0.MaybePromise<void>)>;
|
|
93
93
|
normal?: undefined;
|
|
94
94
|
} | undefined;
|
|
95
95
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/plugin-utils/helpers.ts"],"mappings":";;;;;;;;;;;;;;;;;iBAuDgB,QAAA,kBACG,aAAA,GAAgB,aAAA,CAAc,cAAA,EAAA,CAC/C,KAAA,YAAiB,KAAA,IAAS,MAAA,CAAO,QAAA;;;;;;;iBA6BnB,oBAAA,kBACG,aAAA,GAAgB,aAAA,CAAc,cAAA,EAAA,CAC/C,KAAA,YAAiB,KAAA,IAAS,kBAAA,CAAmB,QAAA;;;;;;;iBAiB/B,mBAAA,kBACG,aAAA,GAAgB,aAAA,CAAc,cAAA,EAAA,CAC/C,KAAA,YAAiB,KAAA,IAAS,iBAAA,CAAkB,QAAA;;;;;;AArB9C;iBAsCgB,cAAA,kBACG,aAAA,GAAgB,aAAA,CAAc,cAAA,EAAA,CAC/C,KAAA,YAAiB,KAAA,IAAS,YAAA,CAAa,QAAA;;;;;;;iBAiBzB,kBAAA,CACd,KAAA,YACC,KAAA,IAAS,gBAAA,CAAiB,WAAA;;;;;;;iBAUb,oBAAA,CAAqB,KAAA,YAAiB,KAAA,IAAS,WAAA;;;;;AAlD/D;;iBA4DgB,YAAA,CAAa,KAAA,YAAiB,KAAA,IAAS,UAAA,CAAW,WAAA;AAAA,KAItD,wBAAA,kBACO,aAAA,GAAgB,aAAA,oCAE/B,aAAA,CAAc,QAAA,EAAU,MAAA;;;;;;;iBAQZ,cAAA,kBACG,aAAA,GAAgB,aAAA,+BAAA,CAGjC,UAAA,EAAY,UAAA,CAAW,WAAA,IACtB,wBAAA,CAAyB,QAAA,EAAU,IAAA;;;;;;;;;iBActB,iBAAA,kBACG,aAAA,GAAgB,aAAA,kBACjB,MAAA,CAAO,QAAA,IAAY,MAAA,CAAO,QAAA,EAAA,CAC1C,OAAA,EAAS,QAAA,EAAU,MAAA,EAAQ,OAAA,EAAS,IAAA,QAAY,WAAA,CAAY,QAAA
|
|
1
|
+
{"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/plugin-utils/helpers.ts"],"mappings":";;;;;;;;;;;;;;;;;iBAuDgB,QAAA,kBACG,aAAA,GAAgB,aAAA,CAAc,cAAA,EAAA,CAC/C,KAAA,YAAiB,KAAA,IAAS,MAAA,CAAO,QAAA;;;;;;;iBA6BnB,oBAAA,kBACG,aAAA,GAAgB,aAAA,CAAc,cAAA,EAAA,CAC/C,KAAA,YAAiB,KAAA,IAAS,kBAAA,CAAmB,QAAA;;;;;;;iBAiB/B,mBAAA,kBACG,aAAA,GAAgB,aAAA,CAAc,cAAA,EAAA,CAC/C,KAAA,YAAiB,KAAA,IAAS,iBAAA,CAAkB,QAAA;;;;;;AArB9C;iBAsCgB,cAAA,kBACG,aAAA,GAAgB,aAAA,CAAc,cAAA,EAAA,CAC/C,KAAA,YAAiB,KAAA,IAAS,YAAA,CAAa,QAAA;;;;;;;iBAiBzB,kBAAA,CACd,KAAA,YACC,KAAA,IAAS,gBAAA,CAAiB,WAAA;;;;;;;iBAUb,oBAAA,CAAqB,KAAA,YAAiB,KAAA,IAAS,WAAA;;;;;AAlD/D;;iBA4DgB,YAAA,CAAa,KAAA,YAAiB,KAAA,IAAS,UAAA,CAAW,WAAA;AAAA,KAItD,wBAAA,kBACO,aAAA,GAAgB,aAAA,oCAE/B,aAAA,CAAc,QAAA,EAAU,MAAA;;;;;;;iBAQZ,cAAA,kBACG,aAAA,GAAgB,aAAA,+BAAA,CAGjC,UAAA,EAAY,UAAA,CAAW,WAAA,IACtB,wBAAA,CAAyB,QAAA,EAAU,IAAA;;;;;;;;;iBActB,iBAAA,kBACG,aAAA,GAAgB,aAAA,kBACjB,MAAA,CAAO,QAAA,IAAY,MAAA,CAAO,QAAA,EAAA,CAC1C,OAAA,EAAS,QAAA,EAAU,MAAA,EAAQ,OAAA,EAAS,IAAA,QAAY,WAAA,CAAY,QAAA;;;;;;;;;;;4vBA7E5D,s8BAAA,w8BAAA,s9BAAA,+8BAAA,i3BAAA,+9BAAA,s9BAAA;;;;mwBACA,g9BAAA,+8BAAA;;;;;;AAiBF;;;iBAiFgB,iBAAA,iCACkB,sBAAA,GAC9B,sBAAA,CAAA,CAEF,IAAA,WACC,IAAA,OAAW,uBAAA,UAAiC,iBAAA,CAAgB,uBAAA;;;;;;;iBAY/C,iBAAA,kBAAmC,aAAA,CAAA,CACjD,IAAA;;;;;;;iBAWc,mBAAA,iCACkB,sBAAA,GAC9B,sBAAA,CAAA,CACF,KAAA,WAAgB,KAAA,IAAS,uBAAA;;AA3F3B;;;;;;iBAyGgB,WAAA,yBACU,cAAA,GAAiB,cAAA,mBACxB,aAAA,CAAc,eAAA,IAC7B,aAAA,CAAc,eAAA,EAAA,CAChB,MAAA,EAAQ,MAAA,CAAO,QAAA,GAAW,OAAA,EAAS,MAAA,CAAO,QAAA;;;;AAzG5C;;;iBA2HgB,cAAA,kBACG,aAAA,GAAgB,aAAA,iBAClB,gBAAA,CAAiB,QAAA,IAAY,gBAAA,CAAiB,QAAA,iBAC/C,aAAA,CAAc,QAAA,EAAU,MAAA,IAAU,aAAA,CAC9C,QAAA,EACA,MAAA,EAAA,CAEF,SAAA,EAAW,KAAA,KAAU,KAAA;;;;;;;;;iBAsBP,aAAA,kBACG,aAAA,GAAgB,aAAA,iBAClB,gBAAA,CAAiB,QAAA,IAAY,gBAAA,CAAiB,QAAA,iBAC/C,aAAA,CAAc,QAAA,EAAU,MAAA,IAAU,aAAA,CAC9C,QAAA,EACA,MAAA,EAAA,CAGF,OAAA,EAAS,QAAA,EACT,MAAA,EAAQ,MAAA,CAAO,QAAA,GACf,UAAA,EAAY,UAAA,CAAW,WAAA,GACvB,SAAA,EAAW,KAAA,KACV,KAAA;;;;;;;iBA6Ba,uBAAA,kBACG,aAAA,GAAgB,aAAA,CAAc,cAAA,EAAA,CAC/C,MAAA,EAAQ,YAAA,CAAa,QAAA;AAAA"}
|
|
@@ -34,7 +34,7 @@ let _stryke_path_join = require("@stryke/path/join");
|
|
|
34
34
|
*/
|
|
35
35
|
function replacePathTokens(context, path) {
|
|
36
36
|
if (!path) return path;
|
|
37
|
-
const result = path.replaceAll("{workspaceRoot}", context.
|
|
37
|
+
const result = path.replaceAll("{cwd}", context.config.cwd || process.cwd() || "./").replaceAll("{workspaceRoot}", context.config.cwd || process.cwd() || "./").replaceAll("{root}", context.config.root).replaceAll("{projectRoot}", context.config.root).replaceAll("{sourceRoot}", (0, _stryke_path_join.joinPaths)(context.config.root, "src")).replaceAll("{powerlinesPath}", context.powerlinesPath).replaceAll("{cachePath}", context.cachePath).replaceAll("{dataPath}", context.dataPath).replaceAll("{logPath}", context.envPaths.log).replaceAll("{tempPath}", context.envPaths.temp).replaceAll("{configPath}", context.envPaths.config).replaceAll("{outputPath}", context.config.output.path).replaceAll("{output}", context.config.output.path).replaceAll("{artifactsPath}", (0, _stryke_path_replace.replacePath)(context.artifactsPath, context.config.cwd)).replaceAll("{builtinPath}", (0, _stryke_path_replace.replacePath)(context.builtinsPath, context.config.cwd)).replaceAll("{builtinsPath}", (0, _stryke_path_replace.replacePath)(context.builtinsPath, context.config.cwd)).replaceAll("{entryPath}", (0, _stryke_path_replace.replacePath)(context.entryPath, context.config.cwd));
|
|
38
38
|
return context.config.output.copy && (0, _stryke_type_checks_is_set_string.isSetString)(context.config.output.copy.path) ? result.replaceAll("{copyPath}", context.config.output.copy.path).replaceAll("{copy}", context.config.output.copy.path) : result;
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -32,7 +32,7 @@ import { joinPaths } from "@stryke/path/join";
|
|
|
32
32
|
*/
|
|
33
33
|
function replacePathTokens(context, path) {
|
|
34
34
|
if (!path) return path;
|
|
35
|
-
const result = path.replaceAll("{workspaceRoot}", context.
|
|
35
|
+
const result = path.replaceAll("{cwd}", context.config.cwd || process.cwd() || "./").replaceAll("{workspaceRoot}", context.config.cwd || process.cwd() || "./").replaceAll("{root}", context.config.root).replaceAll("{projectRoot}", context.config.root).replaceAll("{sourceRoot}", joinPaths(context.config.root, "src")).replaceAll("{powerlinesPath}", context.powerlinesPath).replaceAll("{cachePath}", context.cachePath).replaceAll("{dataPath}", context.dataPath).replaceAll("{logPath}", context.envPaths.log).replaceAll("{tempPath}", context.envPaths.temp).replaceAll("{configPath}", context.envPaths.config).replaceAll("{outputPath}", context.config.output.path).replaceAll("{output}", context.config.output.path).replaceAll("{artifactsPath}", replacePath(context.artifactsPath, context.config.cwd)).replaceAll("{builtinPath}", replacePath(context.builtinsPath, context.config.cwd)).replaceAll("{builtinsPath}", replacePath(context.builtinsPath, context.config.cwd)).replaceAll("{entryPath}", replacePath(context.entryPath, context.config.cwd));
|
|
36
36
|
return context.config.output.copy && isSetString(context.config.output.copy.path) ? result.replaceAll("{copyPath}", context.config.output.copy.path).replaceAll("{copy}", context.config.output.copy.path) : result;
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.mjs","names":[],"sources":["../../src/plugin-utils/paths.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { joinPaths } from \"@stryke/path/join\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { IsUndefined } from \"@stryke/types/base\";\nimport { UnresolvedContext } from \"../types/context\";\n\n/**\n * Replaces tokens in the given path string with their corresponding values from the context.\n *\n * @remarks\n * The following tokens are supported:\n * - `{workspaceRoot}` - The root directory of the workspace.\n * - `{root}` - The root directory of the project (same as `{projectRoot}`).\n * - `{projectRoot}` - The root directory of the project (same as `{root}`).\n * - `{sourceRoot}` - The source root directory of the project (usually `./src`).\n * - `{powerlinesPath}` - The directory where Powerlines is installed.\n * - `{cachePath}` - The environment's directory for cached files.\n * - `{dataPath}` - The environment's directory for data files.\n * - `{logPath}` - The environment's directory for log files.\n * - `{tempPath}` - The environment's directory for temporary files.\n * - `{configPath}` - The environment's directory for configuration files.\n * - `{output}` - The configured output directory for the project.\n * - `{outputPath}` - The configured output directory for the project.\n * - `{copy}` - The configured final/copied distribution directory for the project.\n * - `{copyPath}` - The configured final/copied distribution directory for the project.\n * - `{artifactsPath}` - The configured directory for build artifacts.\n * - `{builtinPath}` - The configured directory for generated built-in plugins.\n * - `{entryPath}` - The configured directory for generated entry files.\n *\n * @param context - The context containing the values for the path tokens.\n * @param path - The path string with tokens to replace.\n * @returns The path string with tokens replaced by their corresponding values from the context.\n */\nexport function replacePathTokens(\n context: UnresolvedContext,\n path?: string\n): IsUndefined<typeof path> extends true ? undefined : string {\n if (!path) {\n return path as IsUndefined<typeof path> extends true ? undefined : string;\n }\n\n const result = path\n .replaceAll(\"{workspaceRoot}\", context.
|
|
1
|
+
{"version":3,"file":"paths.mjs","names":[],"sources":["../../src/plugin-utils/paths.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { joinPaths } from \"@stryke/path/join\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { IsUndefined } from \"@stryke/types/base\";\nimport { UnresolvedContext } from \"../types/context\";\n\n/**\n * Replaces tokens in the given path string with their corresponding values from the context.\n *\n * @remarks\n * The following tokens are supported:\n * - `{workspaceRoot}` - The root directory of the workspace.\n * - `{root}` - The root directory of the project (same as `{projectRoot}`).\n * - `{projectRoot}` - The root directory of the project (same as `{root}`).\n * - `{sourceRoot}` - The source root directory of the project (usually `./src`).\n * - `{powerlinesPath}` - The directory where Powerlines is installed.\n * - `{cachePath}` - The environment's directory for cached files.\n * - `{dataPath}` - The environment's directory for data files.\n * - `{logPath}` - The environment's directory for log files.\n * - `{tempPath}` - The environment's directory for temporary files.\n * - `{configPath}` - The environment's directory for configuration files.\n * - `{output}` - The configured output directory for the project.\n * - `{outputPath}` - The configured output directory for the project.\n * - `{copy}` - The configured final/copied distribution directory for the project.\n * - `{copyPath}` - The configured final/copied distribution directory for the project.\n * - `{artifactsPath}` - The configured directory for build artifacts.\n * - `{builtinPath}` - The configured directory for generated built-in plugins.\n * - `{entryPath}` - The configured directory for generated entry files.\n *\n * @param context - The context containing the values for the path tokens.\n * @param path - The path string with tokens to replace.\n * @returns The path string with tokens replaced by their corresponding values from the context.\n */\nexport function replacePathTokens(\n context: UnresolvedContext,\n path?: string\n): IsUndefined<typeof path> extends true ? undefined : string {\n if (!path) {\n return path as IsUndefined<typeof path> extends true ? undefined : string;\n }\n\n const result = path\n .replaceAll(\"{cwd}\", context.config.cwd || process.cwd() || \"./\")\n .replaceAll(\"{workspaceRoot}\", context.config.cwd || process.cwd() || \"./\")\n .replaceAll(\"{root}\", context.config.root)\n .replaceAll(\"{projectRoot}\", context.config.root)\n .replaceAll(\"{sourceRoot}\", joinPaths(context.config.root, \"src\"))\n .replaceAll(\"{powerlinesPath}\", context.powerlinesPath)\n .replaceAll(\"{cachePath}\", context.cachePath)\n .replaceAll(\"{dataPath}\", context.dataPath)\n .replaceAll(\"{logPath}\", context.envPaths.log)\n .replaceAll(\"{tempPath}\", context.envPaths.temp)\n .replaceAll(\"{configPath}\", context.envPaths.config)\n .replaceAll(\"{outputPath}\", context.config.output.path)\n .replaceAll(\"{output}\", context.config.output.path)\n\n .replaceAll(\n \"{artifactsPath}\",\n replacePath(context.artifactsPath, context.config.cwd)\n )\n .replaceAll(\n \"{builtinPath}\",\n replacePath(context.builtinsPath, context.config.cwd)\n )\n .replaceAll(\n \"{builtinsPath}\",\n replacePath(context.builtinsPath, context.config.cwd)\n )\n .replaceAll(\n \"{entryPath}\",\n replacePath(context.entryPath, context.config.cwd)\n );\n\n return context.config.output.copy &&\n isSetString(context.config.output.copy.path)\n ? result\n .replaceAll(\"{copyPath}\", context.config.output.copy.path)\n .replaceAll(\"{copy}\", context.config.output.copy.path)\n : result;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,SAAgB,kBACd,SACA,MAC4D;AAC5D,KAAI,CAAC,KACH,QAAO;CAGT,MAAM,SAAS,KACZ,WAAW,SAAS,QAAQ,OAAO,OAAO,QAAQ,KAAK,IAAI,KAAK,CAChE,WAAW,mBAAmB,QAAQ,OAAO,OAAO,QAAQ,KAAK,IAAI,KAAK,CAC1E,WAAW,UAAU,QAAQ,OAAO,KAAK,CACzC,WAAW,iBAAiB,QAAQ,OAAO,KAAK,CAChD,WAAW,gBAAgB,UAAU,QAAQ,OAAO,MAAM,MAAM,CAAC,CACjE,WAAW,oBAAoB,QAAQ,eAAe,CACtD,WAAW,eAAe,QAAQ,UAAU,CAC5C,WAAW,cAAc,QAAQ,SAAS,CAC1C,WAAW,aAAa,QAAQ,SAAS,IAAI,CAC7C,WAAW,cAAc,QAAQ,SAAS,KAAK,CAC/C,WAAW,gBAAgB,QAAQ,SAAS,OAAO,CACnD,WAAW,gBAAgB,QAAQ,OAAO,OAAO,KAAK,CACtD,WAAW,YAAY,QAAQ,OAAO,OAAO,KAAK,CAElD,WACC,mBACA,YAAY,QAAQ,eAAe,QAAQ,OAAO,IAAI,CACvD,CACA,WACC,iBACA,YAAY,QAAQ,cAAc,QAAQ,OAAO,IAAI,CACtD,CACA,WACC,kBACA,YAAY,QAAQ,cAAc,QAAQ,OAAO,IAAI,CACtD,CACA,WACC,eACA,YAAY,QAAQ,WAAW,QAAQ,OAAO,IAAI,CACnD;AAEH,QAAO,QAAQ,OAAO,OAAO,QAC3B,YAAY,QAAQ,OAAO,OAAO,KAAK,KAAK,GAC1C,OACG,WAAW,cAAc,QAAQ,OAAO,OAAO,KAAK,KAAK,CACzD,WAAW,UAAU,QAAQ,OAAO,OAAO,KAAK,KAAK,GACxD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API } from "./api.cjs";
|
|
2
2
|
import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Context, EnvironmentContext, ExecutionContext, PluginContext } from "./context.cjs";
|
|
4
4
|
import { PluginConfig, ResolvedConfig } from "./config.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/types/_internal.d.ts
|
|
@@ -11,7 +11,7 @@ import { PluginConfig, ResolvedConfig } from "./config.cjs";
|
|
|
11
11
|
*/
|
|
12
12
|
interface Unstable_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
13
13
|
/**
|
|
14
|
-
* The API instance for interacting with Powerlines
|
|
14
|
+
* The {@link API | API instance} for interacting with Powerlines
|
|
15
15
|
*
|
|
16
16
|
* @internal
|
|
17
17
|
*/
|
|
@@ -38,7 +38,7 @@ interface Unstable_Context<TResolvedConfig extends ResolvedConfig = ResolvedConf
|
|
|
38
38
|
*
|
|
39
39
|
* @internal
|
|
40
40
|
*/
|
|
41
|
-
interface
|
|
41
|
+
interface Unstable_ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends ExecutionContext<TResolvedConfig> {
|
|
42
42
|
$$internal: Unstable_ContextInternal<TResolvedConfig>;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
@@ -56,7 +56,7 @@ interface Unstable_EnvironmentContext<TResolvedConfig extends ResolvedConfig = R
|
|
|
56
56
|
*/
|
|
57
57
|
interface Unstable_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Unstable_ContextInternal<TResolvedConfig> {
|
|
58
58
|
/**
|
|
59
|
-
* The API instance for interacting with Powerlines
|
|
59
|
+
* The {@link API | API instance} for interacting with Powerlines
|
|
60
60
|
*
|
|
61
61
|
* @internal
|
|
62
62
|
*/
|
|
@@ -97,10 +97,10 @@ interface Unstable_PluginContext<TResolvedConfig extends ResolvedConfig = Resolv
|
|
|
97
97
|
}
|
|
98
98
|
declare type __ΩUnstable_ContextInternal = any[];
|
|
99
99
|
declare type __ΩUnstable_Context = any[];
|
|
100
|
-
declare type __Ω
|
|
100
|
+
declare type __ΩUnstable_ExecutionContext = any[];
|
|
101
101
|
declare type __ΩUnstable_EnvironmentContext = any[];
|
|
102
102
|
declare type __ΩUnstable_PluginContextInternal = any[];
|
|
103
103
|
declare type __ΩUnstable_PluginContext = any[];
|
|
104
104
|
//#endregion
|
|
105
|
-
export {
|
|
105
|
+
export { Unstable_Context, Unstable_ContextInternal, Unstable_EnvironmentContext, Unstable_ExecutionContext, Unstable_PluginContext, Unstable_PluginContextInternal, __ΩUnstable_Context, __ΩUnstable_ContextInternal, __ΩUnstable_EnvironmentContext, __ΩUnstable_ExecutionContext, __ΩUnstable_PluginContext, __ΩUnstable_PluginContextInternal };
|
|
106
106
|
//# sourceMappingURL=_internal.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;;;;;AAuCA;;;UAAiB,wBAAA,yBACS,cAAA,GAAiB,cAAA;EAAA;;;;;EAOzC,GAAA,EAAK,GAAA,CAAI,eAAA;EAWJ;;;;;;;EAFL,SAAA,GACE,MAAA,EAAQ,YAAA,CAAa,aAAA,CAAc,eAAA,OAChC,OAAA;AAAA;;;;;;UAQU,gBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,OAAA,CAAQ,eAAA;EAChB,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;AAHvC;;;;;AAAA,UAWiB,
|
|
1
|
+
{"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;;;;;AAuCA;;;UAAiB,wBAAA,yBACS,cAAA,GAAiB,cAAA;EAAA;;;;;EAOzC,GAAA,EAAK,GAAA,CAAI,eAAA;EAWJ;;;;;;;EAFL,SAAA,GACE,MAAA,EAAQ,YAAA,CAAa,aAAA,CAAc,eAAA,OAChC,OAAA;AAAA;;;;;;UAQU,gBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,OAAA,CAAQ,eAAA;EAChB,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;AAHvC;;;;;AAAA,UAWiB,yBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,gBAAA,CAAiB,eAAA;EACzB,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;;;;;;UAQtB,2BAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,kBAAA,CAAmB,eAAA;EAC3B,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;;;;;;UAQtB,8BAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,wBAAA,CAAyB,eAAA;EAxBO;;;;;EA8BxC,GAAA,EAAK,GAAA,CAAI,eAAA;EA3BG;;;;;EAkCZ,WAAA,EAAa,2BAAA,CAA4B,eAAA;EApCA;;;;;;;;AAU3C;;EAsCE,QAAA,wBACE,IAAA,EAAM,IAAA,EACN,OAAA,EAAS,eAAA;IACP,WAAA,YAAuB,kBAAA,CAAmB,eAAA;EAAA,MAEzC,IAAA,EAAM,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA,MAC1D,OAAA,CACH,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA;EA3C3B;;;;;EAmD3B,IAAA,EAAM,MAAA;AAAA;;;;;;UAQS,sBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,aAAA,CAAc,eAAA;EACtB,UAAA,EAAY,8BAAA,CAA+B,eAAA;AAAA;AAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API } from "./api.mjs";
|
|
2
2
|
import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Context, EnvironmentContext, ExecutionContext, PluginContext } from "./context.mjs";
|
|
4
4
|
import { PluginConfig, ResolvedConfig } from "./config.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/types/_internal.d.ts
|
|
@@ -11,7 +11,7 @@ import { PluginConfig, ResolvedConfig } from "./config.mjs";
|
|
|
11
11
|
*/
|
|
12
12
|
interface Unstable_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
13
13
|
/**
|
|
14
|
-
* The API instance for interacting with Powerlines
|
|
14
|
+
* The {@link API | API instance} for interacting with Powerlines
|
|
15
15
|
*
|
|
16
16
|
* @internal
|
|
17
17
|
*/
|
|
@@ -38,7 +38,7 @@ interface Unstable_Context<TResolvedConfig extends ResolvedConfig = ResolvedConf
|
|
|
38
38
|
*
|
|
39
39
|
* @internal
|
|
40
40
|
*/
|
|
41
|
-
interface
|
|
41
|
+
interface Unstable_ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends ExecutionContext<TResolvedConfig> {
|
|
42
42
|
$$internal: Unstable_ContextInternal<TResolvedConfig>;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
@@ -56,7 +56,7 @@ interface Unstable_EnvironmentContext<TResolvedConfig extends ResolvedConfig = R
|
|
|
56
56
|
*/
|
|
57
57
|
interface Unstable_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Unstable_ContextInternal<TResolvedConfig> {
|
|
58
58
|
/**
|
|
59
|
-
* The API instance for interacting with Powerlines
|
|
59
|
+
* The {@link API | API instance} for interacting with Powerlines
|
|
60
60
|
*
|
|
61
61
|
* @internal
|
|
62
62
|
*/
|
|
@@ -97,10 +97,10 @@ interface Unstable_PluginContext<TResolvedConfig extends ResolvedConfig = Resolv
|
|
|
97
97
|
}
|
|
98
98
|
declare type __ΩUnstable_ContextInternal = any[];
|
|
99
99
|
declare type __ΩUnstable_Context = any[];
|
|
100
|
-
declare type __Ω
|
|
100
|
+
declare type __ΩUnstable_ExecutionContext = any[];
|
|
101
101
|
declare type __ΩUnstable_EnvironmentContext = any[];
|
|
102
102
|
declare type __ΩUnstable_PluginContextInternal = any[];
|
|
103
103
|
declare type __ΩUnstable_PluginContext = any[];
|
|
104
104
|
//#endregion
|
|
105
|
-
export {
|
|
105
|
+
export { Unstable_Context, Unstable_ContextInternal, Unstable_EnvironmentContext, Unstable_ExecutionContext, Unstable_PluginContext, Unstable_PluginContextInternal, __ΩUnstable_Context, __ΩUnstable_ContextInternal, __ΩUnstable_EnvironmentContext, __ΩUnstable_ExecutionContext, __ΩUnstable_PluginContext, __ΩUnstable_PluginContextInternal };
|
|
106
106
|
//# sourceMappingURL=_internal.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;;;;;AAuCA;;;UAAiB,wBAAA,yBACS,cAAA,GAAiB,cAAA;EAAA;;;;;EAOzC,GAAA,EAAK,GAAA,CAAI,eAAA;EAWJ;;;;;;;EAFL,SAAA,GACE,MAAA,EAAQ,YAAA,CAAa,aAAA,CAAc,eAAA,OAChC,OAAA;AAAA;;;;;;UAQU,gBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,OAAA,CAAQ,eAAA;EAChB,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;AAHvC;;;;;AAAA,UAWiB,
|
|
1
|
+
{"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;;;;;AAuCA;;;UAAiB,wBAAA,yBACS,cAAA,GAAiB,cAAA;EAAA;;;;;EAOzC,GAAA,EAAK,GAAA,CAAI,eAAA;EAWJ;;;;;;;EAFL,SAAA,GACE,MAAA,EAAQ,YAAA,CAAa,aAAA,CAAc,eAAA,OAChC,OAAA;AAAA;;;;;;UAQU,gBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,OAAA,CAAQ,eAAA;EAChB,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;AAHvC;;;;;AAAA,UAWiB,yBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,gBAAA,CAAiB,eAAA;EACzB,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;;;;;;UAQtB,2BAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,kBAAA,CAAmB,eAAA;EAC3B,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;;;;;;UAQtB,8BAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,wBAAA,CAAyB,eAAA;EAxBO;;;;;EA8BxC,GAAA,EAAK,GAAA,CAAI,eAAA;EA3BG;;;;;EAkCZ,WAAA,EAAa,2BAAA,CAA4B,eAAA;EApCA;;;;;;;;AAU3C;;EAsCE,QAAA,wBACE,IAAA,EAAM,IAAA,EACN,OAAA,EAAS,eAAA;IACP,WAAA,YAAuB,kBAAA,CAAmB,eAAA;EAAA,MAEzC,IAAA,EAAM,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA,MAC1D,OAAA,CACH,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA;EA3C3B;;;;;EAmD3B,IAAA,EAAM,MAAA;AAAA;;;;;;UAQS,sBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,aAAA,CAAc,eAAA;EACtB,UAAA,EAAY,8BAAA,CAA+B,eAAA;AAAA;AAAA"}
|
package/dist/types/api.d.cts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import { POWERLINES_API_FUNCTIONS } from "../constants/api.cjs";
|
|
2
|
+
import { WorkerProcess } from "./utils.cjs";
|
|
1
3
|
import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
2
|
-
import {
|
|
3
|
-
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig, ResolvedConfig } from "./config.cjs";
|
|
4
|
+
import { EngineContext, EnvironmentContext, ExecutionContext, PluginContext } from "./context.cjs";
|
|
5
|
+
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, InlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig, ResolvedConfig, ResolvedExecutionOptions, TestInlineConfig, TypesInlineConfig } from "./config.cjs";
|
|
4
6
|
|
|
5
7
|
//#region src/types/api.d.ts
|
|
6
8
|
/**
|
|
7
|
-
* Powerlines API Interface
|
|
9
|
+
* The Powerlines Base API Interface
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* This interface defines the base API for Powerlines, which includes the shared context and the core commands. It is extended by the ExecutionAPI and EngineAPI interfaces to provide additional functionality specific to their respective contexts.
|
|
8
13
|
*/
|
|
9
|
-
interface
|
|
10
|
-
/**
|
|
11
|
-
* The Powerlines shared API context
|
|
12
|
-
*/
|
|
13
|
-
context: APIContext<TResolvedConfig>;
|
|
14
|
+
interface Execution {
|
|
14
15
|
/**
|
|
15
16
|
* Prepare the Powerlines API
|
|
16
17
|
*
|
|
@@ -20,6 +21,15 @@ interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
20
21
|
* @param inlineConfig - The inline configuration for the prepare command
|
|
21
22
|
*/
|
|
22
23
|
prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Generate the Powerlines typescript declaration file
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* This method will only generate the typescript declaration file for the Powerlines project. It is generally recommended to run the full `prepare` command, which will run this method as part of its process.
|
|
29
|
+
*
|
|
30
|
+
* @param inlineConfig - The inline configuration for the types command
|
|
31
|
+
*/
|
|
32
|
+
types: (inlineConfig: TypesInlineConfig) => Promise<void>;
|
|
23
33
|
/**
|
|
24
34
|
* Create a new Powerlines project
|
|
25
35
|
*
|
|
@@ -47,6 +57,13 @@ interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
47
57
|
* @returns A promise that resolves when the lint command has completed
|
|
48
58
|
*/
|
|
49
59
|
lint: (inlineConfig: LintInlineConfig) => Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Test the project source code
|
|
62
|
+
*
|
|
63
|
+
* @param inlineConfig - The inline configuration for the test command
|
|
64
|
+
* @returns A promise that resolves when the test command has completed
|
|
65
|
+
*/
|
|
66
|
+
test: (inlineConfig: TestInlineConfig) => Promise<void>;
|
|
50
67
|
/**
|
|
51
68
|
* Build the project
|
|
52
69
|
*
|
|
@@ -82,6 +99,18 @@ interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
82
99
|
* @returns A promise that resolves when the finalization process has completed
|
|
83
100
|
*/
|
|
84
101
|
finalize: () => Promise<void>;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Powerlines API Interface
|
|
105
|
+
*
|
|
106
|
+
* @remarks
|
|
107
|
+
* The API interface represents the API available during a single execution of Powerlines. It provides access to the shared context and the ability to call plugin hooks. It extends the base API with additional functionality specific to command execution.
|
|
108
|
+
*/
|
|
109
|
+
interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Execution {
|
|
110
|
+
/**
|
|
111
|
+
* The Powerlines shared API context
|
|
112
|
+
*/
|
|
113
|
+
context: ExecutionContext<TResolvedConfig>;
|
|
85
114
|
/**
|
|
86
115
|
* Invokes the configured plugin hooks
|
|
87
116
|
*
|
|
@@ -97,7 +126,31 @@ interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
97
126
|
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
98
127
|
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
99
128
|
}
|
|
129
|
+
interface ExecutionWorkerParams {
|
|
130
|
+
/**
|
|
131
|
+
* The execution options for the current execution instance
|
|
132
|
+
*/
|
|
133
|
+
options: ResolvedExecutionOptions;
|
|
134
|
+
/**
|
|
135
|
+
* The inline configuration for the current execution instance, which is the result of merging the user configuration with any configuration provided by plugins during the "config" hook.
|
|
136
|
+
*/
|
|
137
|
+
config: InlineConfig;
|
|
138
|
+
}
|
|
139
|
+
type ExecutionWorkerProcess = WorkerProcess<ExecutionWorkerParams, typeof POWERLINES_API_FUNCTIONS>;
|
|
140
|
+
/**
|
|
141
|
+
* The Engine API interface represents the API available during the entire lifecycle of the Powerlines engine. It provides access to the shared context and the registered command executions. It extends the base API with additional functionality specific to the engine lifecycle.
|
|
142
|
+
*/
|
|
143
|
+
interface Engine extends Execution {
|
|
144
|
+
/**
|
|
145
|
+
* The Powerlines shared context
|
|
146
|
+
*/
|
|
147
|
+
context: EngineContext;
|
|
148
|
+
}
|
|
149
|
+
declare type __ΩExecution = any[];
|
|
100
150
|
declare type __ΩAPI = any[];
|
|
151
|
+
declare type __ΩExecutionWorkerParams = any[];
|
|
152
|
+
declare type __ΩExecutionWorkerProcess = any[];
|
|
153
|
+
declare type __ΩEngine = any[];
|
|
101
154
|
//#endregion
|
|
102
|
-
export { API, __ΩAPI };
|
|
155
|
+
export { API, Engine, Execution, ExecutionWorkerParams, ExecutionWorkerProcess, __ΩAPI, __ΩEngine, __ΩExecution, __ΩExecutionWorkerParams, __ΩExecutionWorkerProcess };
|
|
103
156
|
//# sourceMappingURL=api.d.cts.map
|
package/dist/types/api.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.cts","names":[],"sources":["../../src/types/api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.cts","names":[],"sources":["../../src/types/api.ts"],"mappings":";;;;;;;;AAoDA;;;;;UAAiB,SAAA;EAcT;;;;;;;;EALN,OAAA,GACE,YAAA,EACI,mBAAA,GACA,eAAA,GACA,iBAAA,GACA,iBAAA,GACA,gBAAA,GACA,gBAAA,GACA,kBAAA,KACD,OAAA;EAiCW;;;;;;;;EAvBhB,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;EA2DvB;;;;;;;;;EAhDrB,GAAA,GAAM,YAAA,EAAc,eAAA,KAAoB,OAAA;EA1BlC;;;;;;;;;EAqCN,KAAA,GACE,YAAA,EAAc,iBAAA,GAAoB,mBAAA,KAC/B,OAAA;EAxBuC;;;;;;EAgC5C,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EATN;;;;;;EAiBpC,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EAA1C;;;;;;;;;EAWA,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;EAQrC;;;;;;EAAP,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EAoB1B;;;AASlB;;;;;EAnBE,MAAA,GAAS,YAAA,EAAc,kBAAA,KAAuB,OAAA;EAyBrC;;;;;;;;EAfT,QAAA,QAAgB,OAAA;AAAA;;;;;;;UASD,GAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,SAAA;EADR;;;EAKA,OAAA,EAAS,gBAAA,CAAiB,eAAA;EAA1B;;;;;;;;;;;EAaA,QAAA,wBACE,IAAA,EAAM,IAAA,EACN,OAAA,EAAS,eAAA;IACP,WAAA,YAAuB,kBAAA,CAAmB,eAAA;EAAA,MAEzC,IAAA,EAAM,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA,MAC1D,OAAA,CACH,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA;AAAA;AAAA,UAIvC,qBAAA;EANgD;;;EAU/D,OAAA,EAAS,wBAAA;EAR2B;;;EAapC,MAAA,EAAQ,YAAA;AAAA;AAAA,KAGE,sBAAA,GAAyB,aAAA,CACnC,qBAAA,SACO,wBAAA;;;;UAMQ,MAAA,SAAe,SAAA;EAX9B;;;EAeA,OAAA,EAAS,aAAA;AAAA;AAAA"}
|
package/dist/types/api.d.mts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import { POWERLINES_API_FUNCTIONS } from "../constants/api.mjs";
|
|
2
|
+
import { WorkerProcess } from "./utils.mjs";
|
|
1
3
|
import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig, ResolvedConfig } from "./config.mjs";
|
|
4
|
+
import { EngineContext, EnvironmentContext, ExecutionContext, PluginContext } from "./context.mjs";
|
|
5
|
+
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, InlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig, ResolvedConfig, ResolvedExecutionOptions, TestInlineConfig, TypesInlineConfig } from "./config.mjs";
|
|
4
6
|
|
|
5
7
|
//#region src/types/api.d.ts
|
|
6
8
|
/**
|
|
7
|
-
* Powerlines API Interface
|
|
9
|
+
* The Powerlines Base API Interface
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* This interface defines the base API for Powerlines, which includes the shared context and the core commands. It is extended by the ExecutionAPI and EngineAPI interfaces to provide additional functionality specific to their respective contexts.
|
|
8
13
|
*/
|
|
9
|
-
interface
|
|
10
|
-
/**
|
|
11
|
-
* The Powerlines shared API context
|
|
12
|
-
*/
|
|
13
|
-
context: APIContext<TResolvedConfig>;
|
|
14
|
+
interface Execution {
|
|
14
15
|
/**
|
|
15
16
|
* Prepare the Powerlines API
|
|
16
17
|
*
|
|
@@ -20,6 +21,15 @@ interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
20
21
|
* @param inlineConfig - The inline configuration for the prepare command
|
|
21
22
|
*/
|
|
22
23
|
prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Generate the Powerlines typescript declaration file
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* This method will only generate the typescript declaration file for the Powerlines project. It is generally recommended to run the full `prepare` command, which will run this method as part of its process.
|
|
29
|
+
*
|
|
30
|
+
* @param inlineConfig - The inline configuration for the types command
|
|
31
|
+
*/
|
|
32
|
+
types: (inlineConfig: TypesInlineConfig) => Promise<void>;
|
|
23
33
|
/**
|
|
24
34
|
* Create a new Powerlines project
|
|
25
35
|
*
|
|
@@ -47,6 +57,13 @@ interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
47
57
|
* @returns A promise that resolves when the lint command has completed
|
|
48
58
|
*/
|
|
49
59
|
lint: (inlineConfig: LintInlineConfig) => Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Test the project source code
|
|
62
|
+
*
|
|
63
|
+
* @param inlineConfig - The inline configuration for the test command
|
|
64
|
+
* @returns A promise that resolves when the test command has completed
|
|
65
|
+
*/
|
|
66
|
+
test: (inlineConfig: TestInlineConfig) => Promise<void>;
|
|
50
67
|
/**
|
|
51
68
|
* Build the project
|
|
52
69
|
*
|
|
@@ -82,6 +99,18 @@ interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
82
99
|
* @returns A promise that resolves when the finalization process has completed
|
|
83
100
|
*/
|
|
84
101
|
finalize: () => Promise<void>;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Powerlines API Interface
|
|
105
|
+
*
|
|
106
|
+
* @remarks
|
|
107
|
+
* The API interface represents the API available during a single execution of Powerlines. It provides access to the shared context and the ability to call plugin hooks. It extends the base API with additional functionality specific to command execution.
|
|
108
|
+
*/
|
|
109
|
+
interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Execution {
|
|
110
|
+
/**
|
|
111
|
+
* The Powerlines shared API context
|
|
112
|
+
*/
|
|
113
|
+
context: ExecutionContext<TResolvedConfig>;
|
|
85
114
|
/**
|
|
86
115
|
* Invokes the configured plugin hooks
|
|
87
116
|
*
|
|
@@ -97,7 +126,31 @@ interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
97
126
|
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
98
127
|
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
99
128
|
}
|
|
129
|
+
interface ExecutionWorkerParams {
|
|
130
|
+
/**
|
|
131
|
+
* The execution options for the current execution instance
|
|
132
|
+
*/
|
|
133
|
+
options: ResolvedExecutionOptions;
|
|
134
|
+
/**
|
|
135
|
+
* The inline configuration for the current execution instance, which is the result of merging the user configuration with any configuration provided by plugins during the "config" hook.
|
|
136
|
+
*/
|
|
137
|
+
config: InlineConfig;
|
|
138
|
+
}
|
|
139
|
+
type ExecutionWorkerProcess = WorkerProcess<ExecutionWorkerParams, typeof POWERLINES_API_FUNCTIONS>;
|
|
140
|
+
/**
|
|
141
|
+
* The Engine API interface represents the API available during the entire lifecycle of the Powerlines engine. It provides access to the shared context and the registered command executions. It extends the base API with additional functionality specific to the engine lifecycle.
|
|
142
|
+
*/
|
|
143
|
+
interface Engine extends Execution {
|
|
144
|
+
/**
|
|
145
|
+
* The Powerlines shared context
|
|
146
|
+
*/
|
|
147
|
+
context: EngineContext;
|
|
148
|
+
}
|
|
149
|
+
declare type __ΩExecution = any[];
|
|
100
150
|
declare type __ΩAPI = any[];
|
|
151
|
+
declare type __ΩExecutionWorkerParams = any[];
|
|
152
|
+
declare type __ΩExecutionWorkerProcess = any[];
|
|
153
|
+
declare type __ΩEngine = any[];
|
|
101
154
|
//#endregion
|
|
102
|
-
export { API, __ΩAPI };
|
|
155
|
+
export { API, Engine, Execution, ExecutionWorkerParams, ExecutionWorkerProcess, __ΩAPI, __ΩEngine, __ΩExecution, __ΩExecutionWorkerParams, __ΩExecutionWorkerProcess };
|
|
103
156
|
//# sourceMappingURL=api.d.mts.map
|
package/dist/types/api.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.mts","names":[],"sources":["../../src/types/api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.mts","names":[],"sources":["../../src/types/api.ts"],"mappings":";;;;;;;;AAoDA;;;;;UAAiB,SAAA;EAcT;;;;;;;;EALN,OAAA,GACE,YAAA,EACI,mBAAA,GACA,eAAA,GACA,iBAAA,GACA,iBAAA,GACA,gBAAA,GACA,gBAAA,GACA,kBAAA,KACD,OAAA;EAiCW;;;;;;;;EAvBhB,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;EA2DvB;;;;;;;;;EAhDrB,GAAA,GAAM,YAAA,EAAc,eAAA,KAAoB,OAAA;EA1BlC;;;;;;;;;EAqCN,KAAA,GACE,YAAA,EAAc,iBAAA,GAAoB,mBAAA,KAC/B,OAAA;EAxBuC;;;;;;EAgC5C,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EATN;;;;;;EAiBpC,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EAA1C;;;;;;;;;EAWA,KAAA,GAAQ,YAAA,EAAc,iBAAA,KAAsB,OAAA;EAQrC;;;;;;EAAP,IAAA,GAAO,YAAA,EAAc,gBAAA,KAAqB,OAAA;EAoB1B;;;AASlB;;;;;EAnBE,MAAA,GAAS,YAAA,EAAc,kBAAA,KAAuB,OAAA;EAyBrC;;;;;;;;EAfT,QAAA,QAAgB,OAAA;AAAA;;;;;;;UASD,GAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,SAAA;EADR;;;EAKA,OAAA,EAAS,gBAAA,CAAiB,eAAA;EAA1B;;;;;;;;;;;EAaA,QAAA,wBACE,IAAA,EAAM,IAAA,EACN,OAAA,EAAS,eAAA;IACP,WAAA,YAAuB,kBAAA,CAAmB,eAAA;EAAA,MAEzC,IAAA,EAAM,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA,MAC1D,OAAA,CACH,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA;AAAA;AAAA,UAIvC,qBAAA;EANgD;;;EAU/D,OAAA,EAAS,wBAAA;EAR2B;;;EAapC,MAAA,EAAQ,YAAA;AAAA;AAAA,KAGE,sBAAA,GAAyB,aAAA,CACnC,qBAAA,SACO,wBAAA;;;;UAMQ,MAAA,SAAe,SAAA;EAX9B;;;EAeA,OAAA,EAAS,aAAA;AAAA;AAAA"}
|