diff --git a/package.json b/package.json index fb0c891cf..7964d5812 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "dev:webapp": "lerna run dev --scope \"@bigcapital/webapp\"", "build:webapp": "lerna run build --scope \"@bigcapital/webapp\"", "dev:server": "lerna run dev --scope \"@bigcapital/server\"", - "build:server": "lerna run build --scope \"@bigcapital/server\"" + "build:server": "lerna run build --scope \"@bigcapital/server\"", + "prepare": "husky install" }, "workspaces": [ "packages/*", @@ -17,11 +18,17 @@ "devDependencies": { "@commitlint/config-conventional": "^17.4.2", "@commitlint/config-lerna-scopes": "^17.4.2", + "husky": "^8.0.3", "lerna": "^6.4.1", "@commitlint/cli": "^17.4.2" }, "engines": { "node": "14.x" }, + "husky": { + "hooks": { + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" + } + }, "dependencies": {} } diff --git a/vercel.json b/vercel.json index bbd2db51c..e69de29bb 100644 --- a/vercel.json +++ b/vercel.json @@ -1,9 +0,0 @@ -{ - "buildCommand": "npm run build:webapp", - "devCommand": "npm run dev:webapp", - "installCommand": "yarn install && yarn bootstrap", - "outputDirectory": "packages/webapp/build", - "env": { - "CI": "false" - } -}