chore: enable workspaces

This commit is contained in:
chenjiahan
2021-09-07 20:50:35 +08:00
parent a2f4ceaace
commit fad3c9301d
8 changed files with 125 additions and 8327 deletions
+5 -6
View File
@@ -1,7 +1,11 @@
{
"private": true,
"workspaces": [
"packages/vant",
"packages/vant-cli"
],
"scripts": {
"prepare": "husky install",
"prepare": "husky install && cd packages/vant-cli && yarn build",
"dev": "cd packages/vant && yarn dev",
"lint": "cd packages/vant && yarn lint",
"test": "cd packages/vant && yarn test",
@@ -13,10 +17,5 @@
"*.{ts,tsx,js,vue,less}": "prettier --write",
"*.{ts,tsx,js,vue}": "eslint --fix",
"*.{vue,css,less}": "stylelint --fix"
},
"devDependencies": {
"@vant/cli": "^4.0.0-beta.5",
"@vue/compiler-sfc": "3.2.8",
"vue": "3.2.8"
}
}