@kimesh/kit 0.2.16 → 0.2.17-nightly.20260127045131

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.
Files changed (2) hide show
  1. package/dist/index.mjs +12 -1
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -1727,6 +1727,16 @@ function generateTsConfig(options) {
1727
1727
  paths[`${pkg}/*`] = [`../node_modules/${pkg}/*`];
1728
1728
  }
1729
1729
  }
1730
+ const kimeshDir = resolvePackageDir("kimesh", rootDir);
1731
+ if (kimeshDir) {
1732
+ const viteDir = resolvePackageDir("vite", kimeshDir);
1733
+ if (viteDir) {
1734
+ const relativeVitePath = relative(buildDir, viteDir);
1735
+ const normalizedPath = relativeVitePath.startsWith("..") ? relativeVitePath : "./" + relativeVitePath;
1736
+ paths["vite"] = [normalizedPath];
1737
+ paths["vite/*"] = [`${normalizedPath}/*`];
1738
+ }
1739
+ }
1730
1740
  return {
1731
1741
  compilerOptions: {
1732
1742
  target: "ESNext",
@@ -1774,11 +1784,12 @@ function generateKimeshDts() {
1774
1784
  * Kimesh Framework Type Declarations
1775
1785
  *
1776
1786
  * This file provides global type declarations for the Kimesh framework.
1787
+ * Includes Vite client types for import.meta.env support.
1777
1788
  *
1778
1789
  * DO NOT EDIT - This file is auto-generated by Kimesh.
1779
1790
  */
1780
1791
 
1781
- /// <reference types="vite/client" />
1792
+ /// <reference types="kimesh/vite-client" />
1782
1793
 
1783
1794
  import type { KimeshConfig } from '@kimesh/kit'
1784
1795
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimesh/kit",
3
- "version": "0.2.16",
3
+ "version": "0.2.17-nightly.20260127045131",
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.16",
31
- "@kimesh/layers": "0.2.16",
32
- "@kimesh/router-generator": "0.2.16",
30
+ "@kimesh/auto-import": "workspace:*",
31
+ "@kimesh/layers": "workspace:*",
32
+ "@kimesh/router-generator": "workspace:*",
33
33
  "@vitejs/plugin-vue": "^6.0.3",
34
34
  "c12": "^3.3.3",
35
35
  "consola": "^3.4.2",