update husky config to v5

This commit is contained in:
Labhansh Agrawal 2021-02-16 11:39:23 +05:30 committed by Benjamin Staneck
parent 4934b8ed80
commit 2627b553b1
4 changed files with 6 additions and 7 deletions

1
.husky/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
_

4
.husky/pre-push Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn test

View file

@ -1,6 +0,0 @@
{
"$schema": "http://json.schemastore.org/huskyrc",
"hooks": {
"pre-push": "yarn test"
}
}

View file

@ -12,7 +12,7 @@
"test:unit": "ava",
"test:unit:watch": "yarn run test:unit -- --watch",
"test:spectron": "ava --config ava-spectron.config.js",
"postinstall": "webpack --config-name hyper-app && electron-builder install-app-deps && yarn run rebuild-node-pty && cpy --cwd=target --parents \"node_modules/**/*\" \"../app/\"",
"postinstall": "webpack --config-name hyper-app && electron-builder install-app-deps && yarn run rebuild-node-pty && cpy --cwd=target --parents \"node_modules/**/*\" \"../app/\" && husky install",
"rebuild-node-pty": "electron-rebuild -f -w target/node_modules/node-pty -m target",
"dist": "yarn run build && cross-env BABEL_ENV=production babel target/renderer/bundle.js --out-file target/renderer/bundle.js --no-comments --minified && electron-builder",
"clean": "node ./bin/rimraf-standalone.js node_modules && node ./bin/rimraf-standalone.js ./app/node_modules && node ./bin/rimraf-standalone.js ./app/renderer"