diff --git a/package.json b/package.json index 81ecd0d..50f61bd 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,12 @@ "devDependencies": { "chrome-launcher": "^0.10.2", "chrome-remote-interface": "^0.25.5", + "husky": "1.0.0-rc.13", "lerna": "2.0.0-beta.32" + }, + "husky": { + "hooks": { + "pre-commit": "lerna run pre-commit" + } } } diff --git a/packages/frptools/package.json b/packages/frptools/package.json index 189d5a1..4c1b8e4 100644 --- a/packages/frptools/package.json +++ b/packages/frptools/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": ["reactive"], "author": "Timothy Farrell (https://github.com/explorigin)", diff --git a/packages/portal/package.json b/packages/portal/package.json index 39aba26..129c8a7 100644 --- a/packages/portal/package.json +++ b/packages/portal/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": ["worker", "webworker"], "author": "Timothy Farrell (https://github.com/explorigin)", 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", 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)",