From d81e068ff0c91c4156232ca488811db95e293a91 Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Fri, 20 Mar 2020 12:54:23 -0700 Subject: [PATCH 1/3] Move husky hook to correct location --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 478ec0a2141..cd01d9867d3 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" + } } } From d5e113384c4e8ad3563c2f5bbba37589ba5ec94b Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Fri, 20 Mar 2020 12:56:23 -0700 Subject: [PATCH 2/3] Prepush hanging --- tools/gitHooks/prepush.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/gitHooks/prepush.js b/tools/gitHooks/prepush.js index 05b79d98d0a..eaee72fe84a 100644 --- a/tools/gitHooks/prepush.js +++ b/tools/gitHooks/prepush.js @@ -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} From fa27c5be0623468cabb1fddc2560173d11a6c07e Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Fri, 20 Mar 2020 12:56:27 -0700 Subject: [PATCH 3/3] [AUTOMATED]: Prettier Code Styling --- tools/gitHooks/prepush.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gitHooks/prepush.js b/tools/gitHooks/prepush.js index eaee72fe84a..b52a41cf9cb 100644 --- a/tools/gitHooks/prepush.js +++ b/tools/gitHooks/prepush.js @@ -61,7 +61,7 @@ $ git stash pop Pre-Push Validation Succeeded `); -process.exit(); + process.exit(); } catch (err) { console.error(chalk` {red Pre-Push Validation Failed, error body below}