@kimesh/kit 0.2.29 → 0.2.30-nightly.20260128101501

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 +7 -2
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -1799,10 +1799,9 @@ function debugTable(title, data) {
1799
1799
  * @returns TSConfig JSON object
1800
1800
  */
1801
1801
  function generateTsConfig(options) {
1802
- const { rootDir, buildDir, aliases, layerAliases = {}, moduleAliases = {}, internalAliases = {}, include = ["../src/**/*", "./**/*"] } = options;
1802
+ const { rootDir, srcDir, buildDir, aliases, moduleAliases = {}, internalAliases = {}, include = ["../src/**/*", "./**/*"] } = options;
1803
1803
  const allAliases = {
1804
1804
  ...aliases,
1805
- ...layerAliases,
1806
1805
  ...moduleAliases,
1807
1806
  ...internalAliases
1808
1807
  };
@@ -1813,6 +1812,12 @@ function generateTsConfig(options) {
1813
1812
  paths[alias] = [normalizedPath];
1814
1813
  paths[`${alias}/*`] = [`${normalizedPath}/*`];
1815
1814
  }
1815
+ const srcRelativePath = relative(buildDir, srcDir);
1816
+ const normalizedSrcPath = srcRelativePath.startsWith("..") ? srcRelativePath : "./" + srcRelativePath;
1817
+ paths["~"] = [normalizedSrcPath];
1818
+ paths["~/*"] = [`${normalizedSrcPath}/*`];
1819
+ paths["@"] = [normalizedSrcPath];
1820
+ paths["@/*"] = [`${normalizedSrcPath}/*`];
1816
1821
  for (const pkg of [
1817
1822
  "@kimesh/router-runtime",
1818
1823
  "@kimesh/kit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimesh/kit",
3
- "version": "0.2.29",
3
+ "version": "0.2.30-nightly.20260128101501",
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.29",
31
- "@kimesh/layers": "0.2.29",
32
- "@kimesh/router-generator": "0.2.29",
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",