@deot/dev-dever 2.2.0 → 2.3.1

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/README.md +3 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -22,7 +22,8 @@ interface DEV_OPTIONS {
22
22
 
23
23
  ```ts
24
24
  import { mergeConfig, defineConfig } from 'vite';
25
- import configShared from '@deot/dever/shared.config';
25
+ import type { UserConfig } from 'vite';
26
+ import configShared from './node_modules/@deot/dev-dever/shared.config'; // 这样调用时才会被编译
26
27
 
27
28
  export default mergeConfig(
28
29
  configShared,
@@ -31,7 +32,7 @@ export default mergeConfig(
31
32
  vue(),
32
33
  react()
33
34
  ]
34
- })
35
+ }) as UserConfig
35
36
  );
36
37
  ```
37
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/dev-dever",
3
- "version": "2.2.0",
3
+ "version": "2.3.1",
4
4
  "main": "dist/index.es.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,9 +15,9 @@
15
15
  "access": "public"
16
16
  },
17
17
  "dependencies": {
18
- "@deot/dev-shared": "^2.2.0",
18
+ "@deot/dev-shared": "^2.3.0",
19
19
  "ejs": "^3.1.9",
20
- "vite": "^4.4.2"
20
+ "vite": "^4.4.7"
21
21
  },
22
22
  "devDependencies": {
23
23
  "cross-env": "^7.0.3"