From 6dc3498f5bc46ce36c76ea7c4e9cdbca3b48a647 Mon Sep 17 00:00:00 2001 From: Timothy Farrell Date: Wed, 18 Jul 2018 05:19:15 -0500 Subject: [PATCH] Add basic pre-commit hook to make sure tests pass --- packages/router/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/router/package.json b/packages/router/package.json index eeed5db..c3639c8 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -5,7 +5,8 @@ "main": "src/index.js", "files": ["src"], "scripts": { - "test": "node ../../bin/runTests.js ./" + "test": "node ../../bin/runTests.js ./", + "pre-commit": "npm run test" }, "keywords": ["router"], "author": "Timothy Farrell (https://github.com/explorigin)",