create-valaxy 0.7.8 → 0.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-valaxy",
3
- "version": "0.7.8",
3
+ "version": "0.8.0",
4
4
  "description": "Create Starter Template for Valaxy",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
@@ -11,7 +11,7 @@
11
11
  "serve": "vite preview"
12
12
  },
13
13
  "dependencies": {
14
- "valaxy": "0.7.8",
15
- "valaxy-theme-yun": "0.7.8"
14
+ "valaxy": "0.8.0",
15
+ "valaxy-theme-yun": "0.8.0"
16
16
  }
17
17
  }
@@ -14,7 +14,7 @@
14
14
  "strictNullChecks": true,
15
15
  "forceConsistentCasingInFileNames": true,
16
16
  "paths": {
17
- "@/*": ["./*"]
17
+ "~/*": ["./*"]
18
18
  }
19
19
  },
20
20
  "exclude": ["dist", "node_modules"]
@@ -1,11 +1,10 @@
1
- import type { UserConfig } from 'valaxy'
2
- import type { ThemeUserConfig } from 'valaxy-theme-yun'
1
+ import { defineConfig } from 'valaxy'
2
+ import type { ThemeConfig } from 'valaxy-theme-yun'
3
3
 
4
4
  /**
5
5
  * User Config
6
- * do not use export const
7
6
  */
8
- const config: UserConfig<ThemeUserConfig> = {
7
+ export default defineConfig<ThemeConfig>({
9
8
  lang: 'zh-CN',
10
9
  title: 'Valaxy Theme Yun',
11
10
  author: {
@@ -153,6 +152,4 @@ const config: UserConfig<ThemeUserConfig> = {
153
152
  },
154
153
  },
155
154
  },
156
- }
157
-
158
- export default config
155
+ })