diff --git a/package.json b/package.json index 15aefe9..75e8e2f 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "test": "jest", "test:watch": "npm test -- --watch", "test:coverage": "npm test -- --coverage", + "test:only-changed": "npm test -- --bail --onlyChanged", "ts:lint": "tslint --project tsconfig.json --type-check \"src/**/*.{ts,tsx}\"", "ts:lint:fix": "npm run ts:lint -- --fix", "ts:format:base": "prettier --single-quote --print-width 120 --trailing-comma es5 --no-semi --parser typescript {src,__{tests,mocks}__}/**/*.{ts,tsx}", @@ -34,7 +35,7 @@ "cz": "git-cz", "precommit": "lint-staged", "commitmsg": "validate-commit-msg", - "prepush": "npm run verify", + "prepush": "npm run ts:style && npm run test:only-changed", "prerelease": "npm run build", "release": "standard-version", "postrelease": "npm run release:github && npm run release:npm",