@kimesh/kit 0.2.7 → 0.2.8-nightly.20260124084153

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimesh/kit",
3
- "version": "0.2.7",
3
+ "version": "0.2.8-nightly.20260124084153",
4
4
  "description": "Build-time engine for Kimesh framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -9,14 +9,15 @@
9
9
  },
10
10
  "exports": {
11
11
  ".": {
12
- "types": "./dist/index.d.mts",
12
+ "types": "./types.d.ts",
13
13
  "import": "./dist/index.mjs"
14
14
  }
15
15
  },
16
16
  "main": "./dist/index.mjs",
17
- "types": "./dist/index.d.mts",
17
+ "types": "./types.d.ts",
18
18
  "files": [
19
- "dist"
19
+ "dist",
20
+ "types.d.ts"
20
21
  ],
21
22
  "scripts": {
22
23
  "build": "tsdown",
@@ -30,14 +31,15 @@
30
31
  "vue": "^3.5.0"
31
32
  },
32
33
  "dependencies": {
33
- "@kimesh/auto-import": "0.2.7",
34
- "@kimesh/layers": "0.2.7",
35
- "@kimesh/router-generator": "0.2.7",
34
+ "@kimesh/auto-import": "workspace:*",
35
+ "@kimesh/layers": "workspace:*",
36
+ "@kimesh/router-generator": "workspace:*",
36
37
  "@vitejs/plugin-vue": "^6.0.3",
37
38
  "c12": "^3.3.3",
38
39
  "consola": "^3.4.2",
39
40
  "defu": "^6.1.4",
40
41
  "destr": "^2.0.3",
42
+ "exsolve": "^1.0.8",
41
43
  "fast-glob": "^3.3.3",
42
44
  "hookable": "^6.0.1",
43
45
  "ignore": "^7.0.5",
package/types.d.ts ADDED
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @kimesh/kit - Global Type Declarations
3
+ *
4
+ * This file provides global type declarations for Kimesh's configuration helpers.
5
+ * Similar to Nuxt's types.d.ts, this allows using defineKmConfig without imports.
6
+ */
7
+
8
+ import type { KimeshConfig } from "./dist/index.mjs";
9
+
10
+ export * from "./dist/index.mjs";
11
+
12
+ /**
13
+ * Function type for defineKmConfig
14
+ */
15
+ type DefineKmConfig = (config: KimeshConfig) => KimeshConfig;
16
+
17
+ declare global {
18
+ /**
19
+ * Define Kimesh configuration with type inference.
20
+ * This function is available globally in kimesh.config.ts files.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * export default defineKmConfig({
25
+ * name: 'my-app',
26
+ * dev: {
27
+ * port: 3000,
28
+ * },
29
+ * })
30
+ * ```
31
+ */
32
+ const defineKmConfig: DefineKmConfig;
33
+ }