Skip to content

Move husky hook to correct location #2774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"scripts": {
"dev": "lerna run --parallel --scope @firebase/* --scope firebase --scope rxfire dev",
"build": "lerna run --scope @firebase/* --scope firebase --scope rxfire prepare",
"prepush": "node tools/gitHooks/prepush.js",
"link:packages": "lerna exec --scope @firebase/* --scope firebase --scope rxfire -- yarn link",
"stage:packages": "./scripts/prepublish.sh",
"repl": "node tools/repl.js",
Expand Down Expand Up @@ -122,5 +121,10 @@
"webpack": "4.42.0",
"yargs": "15.3.1",
"lodash": "4.17.15"
},
"husky": {
"hooks": {
"pre-push": "node tools/gitHooks/prepush.js"
}
}
}
1 change: 1 addition & 0 deletions tools/gitHooks/prepush.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ $ git stash pop
Pre-Push Validation Succeeded

`);
process.exit();
} catch (err) {
console.error(chalk`
{red Pre-Push Validation Failed, error body below}
Expand Down