Skip to content

Commit 80f9abc

Browse files
committed
Update husky
1 parent a0cd421 commit 80f9abc

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.husky/pre-commit

-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npm run types
51
npm test

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"preversion": "npm run test",
88
"types": "tsc",
99
"test": "xo && nyc ava && nyc report --reporter=text-lcov > coverage.lcov && codecov -t 54b3d620-a296-4d71-a717-c3e6e24ae9d9",
10-
"prepare": "npm run types && husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks"
10+
"prepare": "husky"
1111
},
1212
"types": "types/index.d.ts",
1313
"keywords": [

test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const main = async () => {
66

77
const executable = require('executable');
88

9-
const m = require('.');
9+
const m = require('./index.js');
1010

1111
test('returns path', t => {
1212
t.truthy(m.path);

0 commit comments

Comments
 (0)