diff --git a/package.json b/package.json index 00b6cc5..193d2da 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,7 @@ "scripts": { "lint": "eslint 'src/**.js' 'tests/**.js' --fix", "test": "eslint 'src/**.js' 'tests/**.js' && jest --coverage", - "build": "ncc build src/main.js", - "precommit": "npm run build && git add dist/" + "build": "ncc build src/main.js" }, "repository": { "type": "git", @@ -50,5 +49,10 @@ "statements": 80 } } + }, + "husky": { + "hooks": { + "pre-commit": "npm run build && git add dist/" + } } }