Skip to content

Commit bb77e99

Browse files
committed
chore: upgrade vue-demi
1 parent 60c5a66 commit bb77e99

File tree

5 files changed

+2525
-2890
lines changed

5 files changed

+2525
-2890
lines changed

build/vite.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export default defineConfig({
88
resolve: {
99
alias: {
1010
'vue-request': path.resolve(__dirname, '../src/index.ts'),
11-
vue: 'vue3',
1211
},
1312
},
1413
plugins: [vue(), vueJsx()],

examples/vue3/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { defineComponent } from 'vue';
12
import { useRequest } from 'vue-request';
2-
import { defineComponent } from 'vue3';
33

44
function testService() {
55
return new Promise<string>(resolve => {

examples/vue3/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createApp } from 'vue3';
1+
import { createApp } from 'vue';
22

33
import App from './App';
44

package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@
3434
"build": "yarn switch:3 && yarn clean && yarn build:code && yarn build:types",
3535
"build:code": "rollup --config ./build/rollup.config.js",
3636
"build:types": "rollup --config ./build/rollup.config.types.js",
37+
"changelog": "standard-version && standard-version -i CHANGELOG.zh-CN.md -o CHANGELOG.zh-CN.md",
38+
"clean": "rimraf dist/*",
3739
"dev": "yarn switch:3 && vite --config ./build/vite.config.ts ./examples/vue3",
3840
"dev:2": "yarn switch:2 && vite --config ./build/vite-vue2.config.ts ./examples/vue2",
39-
"test": "yarn test:3 && yarn test:2",
40-
"test:3": "yarn switch:3 && jest --coverage",
41-
"test:2": "yarn switch:2 && jest --coverage",
42-
"switch:3": "vue-demi-switch 3 vue3",
43-
"switch:2": "vue-demi-switch 2 vue2",
44-
"clean": "rimraf dist/*",
41+
"format": "prettier -w '**/*.ts?(x)'",
42+
"lint": "eslint -c ./.eslintrc.js './{src,scripts,build}/**/*.{js,ts,tsx}'",
43+
"patch-package": "patch-package",
4544
"publishing": "np",
46-
"changelog": "standard-version && standard-version -i CHANGELOG.zh-CN.md -o CHANGELOG.zh-CN.md",
4745
"release": "yarn build && yarn publishing",
48-
"lint": "eslint -c ./.eslintrc.js './{src,scripts,build}/**/*.{js,ts,tsx}'",
49-
"format": "prettier -w '**/*.ts?(x)'",
50-
"patch-package": "patch-package"
46+
"switch:2": "vue-demi-switch 2.7 vue2",
47+
"switch:3": "vue-demi-switch 3",
48+
"test": "yarn test:3 && yarn test:2",
49+
"test:2": "yarn switch:2 && jest --coverage",
50+
"test:3": "yarn switch:3 && jest --coverage"
5151
},
5252
"lint-staged": {
5353
"*.{js,jsx,ts,tsx}": [
@@ -109,9 +109,9 @@
109109
"typescript": "^4.0.5",
110110
"vite": "^2.1.5",
111111
"vite-plugin-vue2": "^1.9.2",
112+
"vue": "^3.3.4",
112113
"vue-template-compiler": "^2.6.14",
113-
"vue2": "npm:vue@2",
114-
"vue3": "npm:vue@3"
114+
"vue2": "npm:vue@2"
115115
},
116116
"peerDependencies": {
117117
"@vue/composition-api": "^1.0.0-rc.1",

0 commit comments

Comments
 (0)