From 81366f23ab5b79b6fcf6a2dfa5837cc0a467ed42 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/pouchtype/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/pouchtype/package.json b/packages/pouchtype/package.json index 05ace4b..9b19847 100644 --- a/packages/pouchtype/package.json +++ b/packages/pouchtype/package.json @@ -5,7 +5,8 @@ "main": "src/index.js", "files": ["dist", "lib", "src"], "scripts": { - "test": "node ../../bin/runTests.js ./" + "test": "node ../../bin/runTests.js ./", + "pre-commit": "npm run test" }, "author": "Timothy Farrell (https://github.com/explorigin)", "license": "Apache-2.0",