@powerlines/core 0.12.5 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/plugin-utils/helpers.cjs +2 -2
- package/dist/plugin-utils/helpers.d.cts +9 -9
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts +9 -9
- package/dist/plugin-utils/helpers.d.mts.map +1 -1
- package/dist/plugin-utils/helpers.mjs +3 -3
- package/dist/plugin-utils/helpers.mjs.map +1 -1
- package/dist/plugin-utils/merge.cjs +2 -2
- package/dist/plugin-utils/merge.d.cts.map +1 -1
- package/dist/plugin-utils/merge.d.mts.map +1 -1
- package/dist/plugin-utils/merge.mjs +2 -2
- package/dist/plugin-utils/merge.mjs.map +1 -1
- package/dist/types/context.d.cts +6 -2
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +6 -2
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/fs.d.cts +20 -0
- package/dist/types/fs.d.cts.map +1 -1
- package/dist/types/fs.d.mts +20 -0
- package/dist/types/fs.d.mts.map +1 -1
- package/dist/types/hooks.d.cts +13 -34
- package/dist/types/hooks.d.cts.map +1 -1
- package/dist/types/hooks.d.mts +13 -34
- package/dist/types/hooks.d.mts.map +1 -1
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.mts +3 -3
- package/dist/types/plugin.d.cts +16 -16
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +16 -16
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/unplugin.d.cts +9 -3
- package/dist/types/unplugin.d.cts.map +1 -1
- package/dist/types/unplugin.d.mts +9 -3
- package/dist/types/unplugin.d.mts.map +1 -1
- package/package.json +8 -8
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PLUGIN_NON_HOOK_FIELDS } from "../constants/plugin.mjs";
|
|
2
2
|
import { CommandType } from "./commands.mjs";
|
|
3
|
-
import { BuilderVariant, InferUnpluginOptions, UnpluginBuilderVariant } from "./unplugin.mjs";
|
|
4
3
|
import { BuildPluginContext, PluginContext, ResolveResult, UnresolvedContext } from "./context.mjs";
|
|
5
4
|
import { EnvironmentConfig, EnvironmentResolvedConfig, PluginConfig, ResolvedConfig } from "./config.mjs";
|
|
6
5
|
import { HookFilter, TransformResult } from "unplugin";
|
|
@@ -129,14 +128,15 @@ interface Hooks<TContext extends PluginContext> {
|
|
|
129
128
|
*/
|
|
130
129
|
writeBundle: (this: TContext) => MaybePromise<void>;
|
|
131
130
|
}
|
|
132
|
-
type
|
|
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
|
-
};
|
|
131
|
+
type HookFunctions<TContext extends PluginContext> = { [TCommandType in CommandType]: (this: TContext) => MaybePromise<void> } & Hooks<TContext>;
|
|
138
132
|
type DeepPartial$1<T> = { [K in keyof T]?: DeepPartial$1<T[K]> };
|
|
139
|
-
type
|
|
133
|
+
type InferPluginHookFunction<TContext extends PluginContext, TKey extends string> = TKey extends keyof HookFunctions<TContext> ? HookFunctions<TContext>[TKey] extends AnyFunction ? PluginHook<HookFunctions<TContext>[TKey], TKey & keyof HookFilter> : HookFunctions<TContext>[TKey] extends object ? { [K in keyof HookFunctions<TContext>[TKey]]?: InferPluginHookFunction<TContext, `${TKey}:${K & string}`> } : never : never;
|
|
134
|
+
type PluginHooks<TContext extends PluginContext> = { [TKey in keyof HookFunctions<TContext>]?: InferPluginHookFunction<TContext, TKey> } & {
|
|
135
|
+
transform?: PluginHook<HookFunctions<TContext>["transform"], "code" | "id">;
|
|
136
|
+
load?: PluginHook<HookFunctions<TContext>["load"], "id">;
|
|
137
|
+
resolveId?: PluginHook<HookFunctions<TContext>["resolveId"], "id">;
|
|
138
|
+
};
|
|
139
|
+
interface BasePlugin<TContext extends PluginContext> {
|
|
140
140
|
/**
|
|
141
141
|
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
142
142
|
*/
|
|
@@ -199,20 +199,20 @@ type Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<Resol
|
|
|
199
199
|
* @returns A promise that resolves to a partial configuration object.
|
|
200
200
|
*/
|
|
201
201
|
config?: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<DeepPartial$1<TContext["config"]> & Record<string, any>>> | (DeepPartial$1<TContext["config"]> & Record<string, any>);
|
|
202
|
-
}
|
|
203
|
-
type
|
|
204
|
-
type
|
|
205
|
-
type
|
|
202
|
+
}
|
|
203
|
+
type Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> = Partial<PluginHooks<TContext>> & BasePlugin<TContext>;
|
|
204
|
+
type PluginNonHookFields = ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS>;
|
|
205
|
+
type PluginHookFields<TContext extends PluginContext = PluginContext, TKey extends string = string> = TKey extends ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS> ? never : TKey extends keyof HookFunctions<TContext> ? HookFunctions<TContext>[TKey] extends AnyFunction ? TKey : HookFunctions<TContext>[TKey] extends object ? { [K in keyof HookFunctions<TContext>[TKey]]?: `${TKey}:${K & string}` }[keyof HookFunctions<TContext>[TKey]] : never : never;
|
|
206
206
|
declare type __ΩPluginHookObject = any[];
|
|
207
207
|
declare type __ΩPluginHook = any[];
|
|
208
208
|
declare type __ΩTypesResult = any[];
|
|
209
209
|
declare type __ΩHooks = any[];
|
|
210
|
-
declare type __Ω
|
|
210
|
+
declare type __ΩHookFunctions = any[];
|
|
211
211
|
declare type __ΩPluginHooks = any[];
|
|
212
|
+
declare type __ΩBasePlugin = any[];
|
|
212
213
|
declare type __ΩPlugin = any[];
|
|
213
214
|
declare type __ΩPluginNonHookFields = any[];
|
|
214
215
|
declare type __ΩPluginHookFields = any[];
|
|
215
|
-
declare type __ΩPluginFields = any[];
|
|
216
216
|
//#endregion
|
|
217
|
-
export { Hooks, Plugin,
|
|
217
|
+
export { BasePlugin, HookFunctions, Hooks, Plugin, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, TypesResult, __ΩBasePlugin, __ΩHookFunctions, __ΩHooks, __ΩPlugin, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩTypesResult };
|
|
218
218
|
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;UAqCiB,gBAAA,uBACO,WAAA,wBACA,UAAA;;AAFxB;;EAOE,KAAA;EANsB;;;EAWtB,MAAA,GAAS,IAAA,CAAK,UAAA,EAAY,OAAA;EAAjB;;;EAKT,OAAA,EAAS,aAAA;AAAA;AAAA,KAGC,UAAA,uBACY,WAAA,wBACA,UAAA,YACpB,aAAA,GAAgB,gBAAA,CAAiB,aAAA,EAAe,OAAA;;;;UAKnC,WAAA;EACf,UAAA;EACA,IAAA;AAAA;AAAA,UAGe,KAAA,kBAAuB,aAAA;EAhB7B;;;AAGX;;;;;;;;;;;EA4BE,MAAA,GACE,IAAA,EAAM,iBAAA,CAAkB,QAAA,gBACrB,YAAA,CAAa,aAAA,CAAY,QAAA,cAAsB,MAAA;EA7B9B;;;;;;;;;AAOxB;;;;EAqCE,iBAAA,GACE,IAAA,EAAM,QAAA,EACN,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CAER,aAAA,CAAc,QAAA,EAAU,IAAA,QAAY,IAAA,IAAQ,CAAA,oBAClD,aAAA,CAAc,QAAA,EAAU,IAAA;AAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { API } from "./api.cjs";
|
|
2
1
|
import { PluginHook } from "./plugin.cjs";
|
|
3
|
-
import {
|
|
2
|
+
import { API } from "./api.cjs";
|
|
3
|
+
import { Context, PluginContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
4
4
|
import { UserConfig } from "./config.cjs";
|
|
5
5
|
import { MaybePromise } from "@stryke/types/base";
|
|
6
6
|
import { HookFilter, UnpluginContextMeta, UnpluginOptions } from "unplugin";
|
|
@@ -28,6 +28,11 @@ type UnpluginUserConfig = UserConfig & {
|
|
|
28
28
|
};
|
|
29
29
|
type UnpluginFactory<TContext extends Context = Context> = (options: Partial<TContext["config"]["userConfig"]>, meta: UnpluginContextMeta) => UnpluginOptions$1<TContext>;
|
|
30
30
|
type UnpluginAsyncFactory<TContext extends Context = Context> = (options: Partial<TContext["config"]["userConfig"]>, meta: UnpluginContextMeta) => Promise<UnpluginOptions$1<TContext>>;
|
|
31
|
+
type UnpluginHookFunctions<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant, TField extends keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant] = keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant]> = Required<UnpluginOptions$1>[TUnpluginBuilderVariant][TField] extends infer THandler | {
|
|
32
|
+
handler: infer THandler;
|
|
33
|
+
} ? THandler extends ((this: infer THandlerOriginalContext, ...args: infer THandlerArgs) => infer THandlerReturn) ? (this: THandlerOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerArgs) => THandlerReturn : THandler extends {
|
|
34
|
+
handler: infer THandlerFunction;
|
|
35
|
+
} ? THandlerFunction extends ((this: infer THandlerFunctionOriginalContext, ...args: infer THandlerFunctionArgs) => infer THandlerFunctionReturn) ? (this: THandlerFunctionOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerFunctionArgs) => THandlerFunctionReturn : never : never : never;
|
|
31
36
|
declare type __ΩUnpluginBuilderVariant = any[];
|
|
32
37
|
declare type __ΩBuilderVariant = any[];
|
|
33
38
|
declare type __ΩInferUnpluginVariant = any[];
|
|
@@ -36,6 +41,7 @@ declare type __ΩInferUnpluginOptions = any[];
|
|
|
36
41
|
declare type __ΩUnpluginUserConfig = any[];
|
|
37
42
|
declare type __ΩUnpluginFactory = any[];
|
|
38
43
|
declare type __ΩUnpluginAsyncFactory = any[];
|
|
44
|
+
declare type __ΩUnpluginHookFunctions = any[];
|
|
39
45
|
//#endregion
|
|
40
|
-
export { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginOptions$1 as UnpluginOptions, UnpluginUserConfig, __ΩBuilderVariant, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginOptions, __ΩUnpluginUserConfig };
|
|
46
|
+
export { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions$1 as UnpluginOptions, UnpluginUserConfig, __ΩBuilderVariant, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig };
|
|
41
47
|
//# sourceMappingURL=unplugin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.d.cts","names":[],"sources":["../../src/types/unplugin.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"unplugin.d.cts","names":[],"sources":["../../src/types/unplugin.ts"],"mappings":";;;;;;;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AA,EAAiB,uBAAA,UACvC,QAAA,CAAS,iBAAA,EAAiB,uBAAA,KAChC,QAAA,CAAS,iBAAA,EAAiB,uBAAA,EAAyB,MAAA;EAGjD,OAAA;AAAA,IAEF,QAAA,WACE,IAAA,oCACG,IAAA,kDAGD,IAAA,EAAM,uBAAA,GAA0B,wBAAA,CAAyB,QAAA,MACtD,IAAA,EAAM,YAAA,KACN,cAAA,GACL,QAAA;EAAmB,OAAA;AAAA,IACjB,gBAAA,WACE,IAAA,4CACG,IAAA,kEAGD,IAAA,EAAM,+BAAA,GACJ,wBAAA,CAAyB,QAAA,MACxB,IAAA,EAAM,oBAAA,KACN,sBAAA;AAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { API } from "./api.mjs";
|
|
2
1
|
import { PluginHook } from "./plugin.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { API } from "./api.mjs";
|
|
3
|
+
import { Context, PluginContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
4
4
|
import { UserConfig } from "./config.mjs";
|
|
5
5
|
import { HookFilter, UnpluginContextMeta, UnpluginOptions } from "unplugin";
|
|
6
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
@@ -28,6 +28,11 @@ type UnpluginUserConfig = UserConfig & {
|
|
|
28
28
|
};
|
|
29
29
|
type UnpluginFactory<TContext extends Context = Context> = (options: Partial<TContext["config"]["userConfig"]>, meta: UnpluginContextMeta) => UnpluginOptions$1<TContext>;
|
|
30
30
|
type UnpluginAsyncFactory<TContext extends Context = Context> = (options: Partial<TContext["config"]["userConfig"]>, meta: UnpluginContextMeta) => Promise<UnpluginOptions$1<TContext>>;
|
|
31
|
+
type UnpluginHookFunctions<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant, TField extends keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant] = keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant]> = Required<UnpluginOptions$1>[TUnpluginBuilderVariant][TField] extends infer THandler | {
|
|
32
|
+
handler: infer THandler;
|
|
33
|
+
} ? THandler extends ((this: infer THandlerOriginalContext, ...args: infer THandlerArgs) => infer THandlerReturn) ? (this: THandlerOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerArgs) => THandlerReturn : THandler extends {
|
|
34
|
+
handler: infer THandlerFunction;
|
|
35
|
+
} ? THandlerFunction extends ((this: infer THandlerFunctionOriginalContext, ...args: infer THandlerFunctionArgs) => infer THandlerFunctionReturn) ? (this: THandlerFunctionOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerFunctionArgs) => THandlerFunctionReturn : never : never : never;
|
|
31
36
|
declare type __ΩUnpluginBuilderVariant = any[];
|
|
32
37
|
declare type __ΩBuilderVariant = any[];
|
|
33
38
|
declare type __ΩInferUnpluginVariant = any[];
|
|
@@ -36,6 +41,7 @@ declare type __ΩInferUnpluginOptions = any[];
|
|
|
36
41
|
declare type __ΩUnpluginUserConfig = any[];
|
|
37
42
|
declare type __ΩUnpluginFactory = any[];
|
|
38
43
|
declare type __ΩUnpluginAsyncFactory = any[];
|
|
44
|
+
declare type __ΩUnpluginHookFunctions = any[];
|
|
39
45
|
//#endregion
|
|
40
|
-
export { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginOptions$1 as UnpluginOptions, UnpluginUserConfig, __ΩBuilderVariant, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginOptions, __ΩUnpluginUserConfig };
|
|
46
|
+
export { BuilderVariant, InferUnpluginOptions, InferUnpluginVariant, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginOptions$1 as UnpluginOptions, UnpluginUserConfig, __ΩBuilderVariant, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginOptions, __ΩUnpluginUserConfig };
|
|
41
47
|
//# sourceMappingURL=unplugin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.d.mts","names":[],"sources":["../../src/types/unplugin.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"unplugin.d.mts","names":[],"sources":["../../src/types/unplugin.ts"],"mappings":";;;;;;;;KAiCY,sBAAA;AAAA,KAWA,cAAA,GACR,sBAAA;AAAA,KAKQ,oBAAA,uBAA2C,cAAA,IACrD,aAAA,8BAEI,aAAA,iCAEE,aAAA,gCAEE,aAAA;AAAA,UAEO,iBAAA,kBACE,OAAA,GAAU,OAAA,UACnB,eAAA;;;;AAjBV;;EAuBE,GAAA,EAAK,GAAA,CAAI,QAAA;AAAA;AAAA,KAGC,oBAAA,kBACO,OAAA,GAAU,OAAA,0BACH,cAAA,GAAiB,cAAA,2BAChB,oBAAA,CAAqB,eAAA,IAC5C,oBAAA,CAAqB,eAAA,sBAER,QAAA,CACb,iBAAA,CAAgB,QAAA,GAChB,gBAAA,KAAqB,QAAA,CACrB,iBAAA,CAAgB,QAAA,GAChB,gBAAA,EAAkB,IAAA;EAGd,OAAA;AAAA,IAEF,QAAA,WACE,IAAA,6BACG,IAAA,mCAEH,UAAA,EAEI,IAAA,EAAM,gBAAA,GAAmB,QAAA,KACtB,IAAA,EAAM,KAAA,KACN,YAAA,CAAa,OAAA,SACZ,UAAA,IAER,QAAA,CAAS,iBAAA,CAAgB,QAAA,GAAW,gBAAA,EAAkB,IAAA,IACxD,QAAA,CAAS,iBAAA,CAAgB,QAAA,GAAW,gBAAA,EAAkB,IAAA;AAAA,KAGhD,kBAAA,GAAqB,UAAA;EA/C3B;;;EAmDJ,QAAA,EAAU,mBAAA;AAAA;AAAA,KAGA,eAAA,kBAAiC,OAAA,GAAU,OAAA,KACrD,OAAA,EAAS,OAAA,CAAQ,QAAA,2BACjB,IAAA,EAAM,mBAAA,KACH,iBAAA,CAAgB,QAAA;AAAA,KAET,oBAAA,kBAAsC,OAAA,GAAU,OAAA,KAC1D,OAAA,EAAS,OAAA,CAAQ,QAAA,2BACjB,IAAA,EAAM,mBAAA,KACH,OAAA,CAAQ,iBAAA,CAAgB,QAAA;AAAA,KAEjB,qBAAA,kBACO,aAAA,GAAgB,aAAA,kCACD,sBAAA,GAC9B,sBAAA,uBACmB,QAAA,CAAS,iBAAA,EAAiB,uBAAA,UACvC,QAAA,CAAS,iBAAA,EAAiB,uBAAA,KAChC,QAAA,CAAS,iBAAA,EAAiB,uBAAA,EAAyB,MAAA;EAGjD,OAAA;AAAA,IAEF,QAAA,WACE,IAAA,oCACG,IAAA,kDAGD,IAAA,EAAM,uBAAA,GAA0B,wBAAA,CAAyB,QAAA,MACtD,IAAA,EAAM,YAAA,KACN,cAAA,GACL,QAAA;EAAmB,OAAA;AAAA,IACjB,gBAAA,WACE,IAAA,4CACG,IAAA,kEAGD,IAAA,EAAM,+BAAA,GACJ,wBAAA,CAAyB,QAAA,MACxB,IAAA,EAAM,oBAAA,KACN,sBAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "An internal core package for Powerlines - please use the `powerlines` package for public usage.",
|
|
6
6
|
"homepage": "https://stormsoftware.com",
|
|
@@ -493,8 +493,8 @@
|
|
|
493
493
|
"types": "./dist/index.d.cts",
|
|
494
494
|
"files": ["dist/**/*", "files/**/*", "schemas/**/*"],
|
|
495
495
|
"dependencies": {
|
|
496
|
-
"@storm-software/config": "^1.137.
|
|
497
|
-
"@storm-software/config-tools": "^1.189.
|
|
496
|
+
"@storm-software/config": "^1.137.26",
|
|
497
|
+
"@storm-software/config-tools": "^1.189.72",
|
|
498
498
|
"@stryke/convert": "^0.6.57",
|
|
499
499
|
"@stryke/env": "^0.20.81",
|
|
500
500
|
"@stryke/fs": "^0.33.64",
|
|
@@ -505,10 +505,10 @@
|
|
|
505
505
|
"@stryke/string-format": "^0.17.7",
|
|
506
506
|
"@stryke/type-checks": "^0.6.0",
|
|
507
507
|
"@stryke/unique-id": "^0.3.75",
|
|
508
|
-
"c12": "^3.3.
|
|
508
|
+
"c12": "^3.3.4",
|
|
509
509
|
"chalk": "5.6.2",
|
|
510
510
|
"compatx": "^0.2.0",
|
|
511
|
-
"defu": "^6.1.
|
|
511
|
+
"defu": "^6.1.6",
|
|
512
512
|
"diff-match-patch": "^1.0.5",
|
|
513
513
|
"jiti": "^2.6.1",
|
|
514
514
|
"magic-string": "^0.30.21",
|
|
@@ -517,15 +517,15 @@
|
|
|
517
517
|
"unplugin-combine": "^2.3.0"
|
|
518
518
|
},
|
|
519
519
|
"devDependencies": {
|
|
520
|
-
"@storm-software/testing-tools": "^1.119.
|
|
520
|
+
"@storm-software/testing-tools": "^1.119.147",
|
|
521
521
|
"@stryke/types": "^0.11.2",
|
|
522
522
|
"@types/diff-match-patch": "^1.0.36",
|
|
523
|
-
"@types/node": "^25.5.
|
|
523
|
+
"@types/node": "^25.5.2",
|
|
524
524
|
"@types/semver": "^7.7.1",
|
|
525
525
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
526
526
|
"tsdown": "^0.21.7",
|
|
527
527
|
"typescript": "^5.9.3"
|
|
528
528
|
},
|
|
529
529
|
"publishConfig": { "access": "public" },
|
|
530
|
-
"gitHead": "
|
|
530
|
+
"gitHead": "9e3382219bcbd57edea2a23e1e421a44b5acdd58"
|
|
531
531
|
}
|