Skip to content

Commit

Permalink
Move pre-commit hook to husky.hooks in package.json
Browse files Browse the repository at this point in the history
Fixes deprecated use.
  • Loading branch information
brew committed Jun 4, 2021
1 parent 9eb75a6 commit 0937372
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "src/index.js",
"scripts": {
"build": "ncc build src/main.js",
"precommit": "npm run build && git add dist/",
"lint": "eslint 'src/**.js' 'tests/**.js' --fix",
"test": "eslint 'src/**.js' 'tests/**.js' && jest --coverage",
"test:watch": "npm run test -- --watchAll"
Expand Down Expand Up @@ -45,5 +44,10 @@
"prettier": "^2.3.0",
"husky": "^3.0.9",
"jest": "^24.9.0"
},
"husky": {
"hooks": {
"pre-commit": "npm run build && git add dist/"
}
}
}

0 comments on commit 0937372

Please sign in to comment.