@kimesh/kit 0.2.15 → 0.2.16
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.mts +5 -5
- package/dist/index.mjs +2 -0
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Hookable } from "hookable";
|
|
2
2
|
import { Ignore } from "ignore";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vite3 from "vite";
|
|
4
4
|
import { Plugin, Plugin as VitePlugin, PluginOption, PluginOption as VitePluginOption, ResolvedConfig, UserConfig, ViteDevServer } from "vite";
|
|
5
5
|
import { KimeshLayerConfig, LayerAutoImportConfig, LayerComponentConfig, LayerComposableConfig, LayerRouteConfig, ResolvedLayer, ResolvedLayer as ResolvedLayer$1, generateLayerAliases, mergeLayerConfigs, prepareLayers, resolveLayers } from "@kimesh/layers";
|
|
6
6
|
import { AutoImportConfig, ImportPreset, LayerAutoImportSource as ImportSource, buildImportRegistry, generateDts, kimeshAutoImport, scanExports } from "@kimesh/auto-import";
|
|
@@ -138,7 +138,7 @@ interface KimeshHooks {
|
|
|
138
138
|
/** Called to extend Vite config before it's resolved */
|
|
139
139
|
'vite:extend': (ctx: {
|
|
140
140
|
kimesh: Kimesh;
|
|
141
|
-
config:
|
|
141
|
+
config: vite3.UserConfig;
|
|
142
142
|
}) => HookResult;
|
|
143
143
|
/** Called after Vite config is resolved */
|
|
144
144
|
'vite:configResolved': (config: ResolvedConfig, kimesh: Kimesh) => HookResult;
|
|
@@ -448,7 +448,7 @@ interface KimeshPluginDefinition {
|
|
|
448
448
|
* Setup function that returns Vite plugin(s)
|
|
449
449
|
* @param kimesh - Kimesh context
|
|
450
450
|
*/
|
|
451
|
-
setup: (kimesh: Kimesh) =>
|
|
451
|
+
setup: (kimesh: Kimesh) => vite3.PluginOption | vite3.PluginOption[];
|
|
452
452
|
}
|
|
453
453
|
interface KimeshPlugin {
|
|
454
454
|
/** Plugin definition */
|
|
@@ -456,7 +456,7 @@ interface KimeshPlugin {
|
|
|
456
456
|
/** Plugin name */
|
|
457
457
|
name: string;
|
|
458
458
|
/** Get Vite plugins */
|
|
459
|
-
getPlugins: (kimesh: Kimesh) =>
|
|
459
|
+
getPlugins: (kimesh: Kimesh) => vite3.PluginOption[];
|
|
460
460
|
}
|
|
461
461
|
//#endregion
|
|
462
462
|
//#region src/types/config.d.ts
|
|
@@ -2308,7 +2308,7 @@ interface KimeshPluginOptions {
|
|
|
2308
2308
|
/**
|
|
2309
2309
|
* Additional Vite plugins added programmatically.
|
|
2310
2310
|
*/
|
|
2311
|
-
additionalPlugins?:
|
|
2311
|
+
additionalPlugins?: vite3.PluginOption[];
|
|
2312
2312
|
}
|
|
2313
2313
|
//#endregion
|
|
2314
2314
|
export { type AddRuntimePluginOptions, type AutoImportConfig, type AutoImportOptions, type ComponentsConfig, DEFAULT_ALIASES, DEFAULT_IGNORE_PATTERNS, type DebugConfig, type DiscoveredPlugin, type EnvOptions, type ErrorContext, type FormattedError, type GeneratePluginsTemplateOptions, type HMRContext, type HMRWatcherOptions, type HookResult, INTERNAL_ALIASES, type IgnoreOptions, type ImportPreset, type ImportSource, type InternalAliasConfig, type Kimesh, type KimeshAlias, type KimeshAppContext, type KimeshComponent, type KimeshComponentsDir, type KimeshConfig, type KimeshHooks, type KimeshImport, type KimeshImportPreset, type KimeshImportsDir, type KimeshLayerConfig, type KimeshModule, type KimeshModuleDefaults, type KimeshModuleDefinition, type KimeshModuleInput, type KimeshModuleMeta, type KimeshModuleOptions, type KimeshOptions, type KimeshPlugin, type KimeshPluginDefinition, KimeshPluginOptions, type KimeshRegistries, type KimeshResolver, type KimeshRoute, type KimeshRouteMiddleware, type KimeshRuntimeHooks, type KimeshRuntimePlugin, type KimeshRuntimePluginDefinition, type KimeshRuntimePluginEntry, type KimeshRuntimePluginMeta, type KimeshRuntimePluginResult, type KimeshTemplate, type KimeshTypeTemplate, type KimeshViteConfig, type KimeshVitePluginEntry, type LayerAutoImportConfig, type LayerComponentConfig, type LayerComposableConfig, type LayerRouteConfig, type LayersConfig, type LoadConfigOptions, type PrepareOptions, type PrepareResult, type ResolvedLayer, type ResolvedTemplate, type RouteRule, type RuntimeConfig, type RuntimeConfigPublic, type ScanPluginsOptions, type VitePlugin, type VitePluginOption, addAlias, addBuildPlugin, addComponent, addComponentResolver, addComponentsDir, addImports, addImportsDir, addImportsPreset, addInternalAliasTemplates, addPluginsTemplate, addRuntimePlugin, addTemplate, addTypeTemplate, addVitePlugin, applyEnv, buildAliases, buildImportRegistry, buildInternalAliasMap, createDebugLogger, createDefaultRuntimeConfig, createHMRWatcher, createIgnoreFilter, createIgnoreMatcher, createKimesh, createResolver, createTimer, debug, debugTable, defineKimeshModule, defineKimeshPlugin, defineKmConfig, envToKey, executeModule, executeModules, filterIgnored, findMatchingRules, formatConflictWarning, formatError, formatTiming, formatWarning, generateDts, generateInternalAliasTemplate, generateLayerAliases, generatePluginsTemplate, generateRouteRulesManifest, getIgnorePatterns, getRedirectInfo, getRouteRule, getRuntimePlugins, hasPlugins, hasRuntimePlugin, isDebug, isDebugEnabled, keyToEnv, kimeshAutoImport, kimeshPlugin, loadConfig, matchRoutePattern, mergeLayerConfigs, mergeRouteRules, normalizeDebugConfig, normalizeModuleInput, prepare, prepareLayers, removeRuntimePlugin, resolveAlias, resolveAliasPath, resolveLayers, resolvePathFromBuild, resolvePathFromRoot, scanExports, scanPluginsDir, setDebugConfig, shouldIgnore, toTsConfigPaths, toViteAliases, tryUseKimesh, updateTemplates, useKimesh, writeTemplates };
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kimesh/kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "Build-time engine for Kimesh framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"test:watch": "vitest"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@kimesh/auto-import": "0.2.
|
|
31
|
-
"@kimesh/layers": "0.2.
|
|
32
|
-
"@kimesh/router-generator": "0.2.
|
|
30
|
+
"@kimesh/auto-import": "0.2.16",
|
|
31
|
+
"@kimesh/layers": "0.2.16",
|
|
32
|
+
"@kimesh/router-generator": "0.2.16",
|
|
33
33
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
34
34
|
"c12": "^3.3.3",
|
|
35
35
|
"consola": "^3.4.2",
|