Skip to content

Commit ea090bb

Browse files
committed
chore: add switch vue2 script of vue-demi
1 parent 6914d01 commit ea090bb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
"description": "A diff plugin of vue, support vue2 and vue3",
44
"version": "0.3.11",
55
"scripts": {
6-
"dev": "vite",
6+
"dev": "pnpm switch:3 && vite",
7+
"dev:2": "pnpm switch:2 && cd ./dev/vue2.7 && pnpm dev",
78
"build": "npx rimraf dist && rollup --config rollup.config.js",
9+
"switch:3": "vue-demi-switch 3",
10+
"switch:2": "vue-demi-switch 2.7 vue2",
811
"serve": "vite preview",
912
"commit": "git-cz",
1013
"gh-pages": "vite build --base=/v-code-diff/ && gh-pages -d ./pages"
@@ -59,7 +62,6 @@
5962
"@vitejs/plugin-legacy": "^1.5.3",
6063
"@vitejs/plugin-vue": "^1.6.2",
6164
"@vitejs/plugin-vue-jsx": "^1.1.8",
62-
"@vue/compiler-sfc": "^3.2.11",
6365
"@vue/eslint-config-standard": "^4.0.0",
6466
"@vue/eslint-config-typescript": "^4.0.0",
6567
"@vueuse/core": "^4.11.2",
@@ -89,6 +91,7 @@
8991
"vue": "^3.2.11",
9092
"vue-eslint-parser": "^7.11.0",
9193
"vue-tsc": "^0.3.0",
94+
"vue2": "npm:vue@2",
9295
"yorkie": "^2.0.0"
9396
},
9497
"gitHooks": {

0 commit comments

Comments
 (0)