Deprecated prepush script in package.json ->

This fixes:
```Warning: Setting pre-push script in package.json > scripts will be deprecated
Please move it to husky.hooks in package.json, a .huskyrc file, or a husky.config.js file
Or run ./node_modules/.bin/husky-upgrade for automatic update```
This commit is contained in:
chris moran
2020-07-20 04:49:43 -04:00
parent f5f26f334f
commit ec1ab05ae6

View File

@@ -29,7 +29,6 @@
"test": "yarn lint && jest src/.*", "test": "yarn lint && jest src/.*",
"test:watch": "jest --watch src", "test:watch": "jest --watch src",
"prepublishOnly": "yarn build && yarn test && yarn e2e", "prepublishOnly": "yarn build && yarn test && yarn e2e",
"prepush": "yarn test",
"prepare": "yarn build" "prepare": "yarn build"
}, },
"repository": { "repository": {
@@ -106,5 +105,10 @@
"sideEffects": [ "sideEffects": [
"**/*.css", "**/*.css",
"**/*.scss" "**/*.scss"
] ],
"husky": {
"hooks": {
"pre-push": "yarn test"
}
}
} }