Skip to content

Commit 57cd2e6

Browse files
committed
chore: move to pnpm and refine build
1 parent e51adb1 commit 57cd2e6

File tree

9 files changed

+9149
-32597
lines changed

9 files changed

+9149
-32597
lines changed

package-lock.json

Lines changed: 0 additions & 32557 deletions
This file was deleted.

package.json

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
"author": "GU Yiling <[email protected]>",
66
"scripts": {
77
"serve": "vue-cli-service serve",
8-
"build": "npm run docs && rimraf dist && rollup -c rollup.config.js",
8+
"build": "pnpm run docs && rimraf dist && pnpm run build:2 && pnpm run build:3 && vue-demi-switch 3",
9+
"build:2": "vue-demi-switch 2 vue2 && rollup -c rollup.vue2.config.js",
10+
"build:3": "vue-demi-switch 3 && rollup -c rollup.config.js",
911
"lint": "vue-cli-service lint",
1012
"build:demo": "vue-cli-service build",
1113
"docs": "node -r esm ./scripts/docs.js",
1214
"postinstall": "node ./scripts/postinstall.js",
13-
"prepare": "npm run build"
15+
"prepare": "pnpm run build"
1416
},
1517
"main": "dist/index.cjs.min.js",
1618
"module": "dist/index.esm.min.js",
@@ -21,40 +23,44 @@
2123
],
2224
"dependencies": {
2325
"resize-detector": "^0.3.0",
24-
"vue-demi": "^0.12.1"
26+
"vue-demi": "^0.12.5"
2527
},
2628
"devDependencies": {
29+
"@babel/core": "^7.17.10",
2730
"@rollup/plugin-node-resolve": "^11.1.1",
2831
"@typescript-eslint/eslint-plugin": "^4.15.1",
2932
"@typescript-eslint/parser": "^4.15.1",
3033
"@vue/cli-plugin-babel": "^5.0.4",
3134
"@vue/cli-plugin-eslint": "^5.0.4",
3235
"@vue/cli-plugin-typescript": "^5.0.4",
3336
"@vue/cli-service": "^5.0.4",
34-
"@vue/compiler-sfc": "^3.1.1",
37+
"@vue/compiler-sfc": "^3.2.33",
3538
"@vue/composition-api": "^1.6.1",
3639
"@vue/eslint-config-prettier": "^6.0.0",
37-
"@vue/eslint-config-typescript": "^7.0.0",
40+
"@vue/eslint-config-typescript": "^10.0.0",
3841
"codesandbox": "^2.2.3",
3942
"comment-mark": "^1.0.0",
4043
"echarts": "^5.3.2",
4144
"eslint": "^7.20.0",
4245
"eslint-plugin-prettier": "^3.3.1",
43-
"eslint-plugin-vue": "^7.6.0",
46+
"eslint-plugin-vue": "^8.7.1",
4447
"esm": "^3.2.25",
4548
"postcss": "^8.3.0",
4649
"postcss-loader": "^5.0.0",
4750
"postcss-nested": "^5.0.5",
48-
"prettier": "^2.2.1",
51+
"prettier": "^2.6.2",
4952
"resize-detector": "^0.3.0",
5053
"rimraf": "^3.0.2",
51-
"rollup": "^2.38.5",
52-
"rollup-plugin-dts": "^2.0.1",
53-
"rollup-plugin-styles": "^3.14.1",
54+
"rollup": "^2.72.1",
55+
"rollup-plugin-dts": "^4.2.1",
56+
"rollup-plugin-styles": "^4.0.0",
5457
"rollup-plugin-terser": "^7.0.2",
55-
"rollup-plugin-typescript2": "^0.29.0",
56-
"typescript": "~4.1.5",
57-
"vue": "^3.2.33"
58+
"rollup-plugin-ts": "^2.0.7",
59+
"tslib": "^2.4.0",
60+
"typescript": "4.6.4",
61+
"vue": "^3.2.33",
62+
"vue2": "npm:vue@^2.6.14",
63+
"webpack": "^5.72.1"
5864
},
5965
"peerDependencies": {
6066
"@vue/composition-api": "^1.0.5",

0 commit comments

Comments
 (0)