Skip to content

Commit 216eb63

Browse files
authored
Move husky hook to correct location (#2774)
1 parent 90c89be commit 216eb63

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"scripts": {
2020
"dev": "lerna run --parallel --scope @firebase/* --scope firebase --scope rxfire dev",
2121
"build": "lerna run --scope @firebase/* --scope firebase --scope rxfire prepare",
22-
"prepush": "node tools/gitHooks/prepush.js",
2322
"link:packages": "lerna exec --scope @firebase/* --scope firebase --scope rxfire -- yarn link",
2423
"stage:packages": "./scripts/prepublish.sh",
2524
"repl": "node tools/repl.js",
@@ -122,5 +121,10 @@
122121
"webpack": "4.42.0",
123122
"yargs": "15.3.1",
124123
"lodash": "4.17.15"
124+
},
125+
"husky": {
126+
"hooks": {
127+
"pre-push": "node tools/gitHooks/prepush.js"
128+
}
125129
}
126130
}

tools/gitHooks/prepush.js

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ $ git stash pop
6161
Pre-Push Validation Succeeded
6262
6363
`);
64+
process.exit();
6465
} catch (err) {
6566
console.error(chalk`
6667
{red Pre-Push Validation Failed, error body below}

0 commit comments

Comments
 (0)