Skip to content

Commit

Permalink
Update Husky
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Feb 6, 2024
1 parent 224a94c commit e2a98e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/sh
. "$(dirname $0)/_/husky.sh"

# Format the code base
npm run format
git add .
git add -u

# Compile into lib/
npm run build
Expand Down
2 changes: 1 addition & 1 deletion lib/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"postbuild": "mv lib/index.js lib/index.mjs",
"format": "prettier --write .",
"lint": "prettier --check .",
"postinstall": "is-ci || husky install",
"postinstall": "is-ci || husky",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
},
"dependencies": {
Expand Down

0 comments on commit e2a98e4

Please sign in to comment.