diff --git a/.travis.yml b/.travis.yml index e0c9554a..2d64e8d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,8 @@ before_install: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start +install: + - npm install --silent notifications: email: @@ -16,4 +18,4 @@ notifications: script: - npm run test - npm run tslint -- tsc --noEmit +- npm run tscheck diff --git a/package.json b/package.json index 7d9ac89e..5f64fa4b 100644 --- a/package.json +++ b/package.json @@ -123,9 +123,11 @@ "predev:https": "check-node-version --package", "derivation-checker": "webpack --config=./webpack_config/webpack.derivation-checker.js && node ./dist/derivation-checker.js", "tslint": "tslint --project . --exclude common/vendor/**/*", + "tscheck": "tsc --noEmit", "postinstall": "webpack --config=./webpack_config/webpack.dll.js", "start": "npm run dev", - "precommit": "lint-staged" + "precommit": "lint-staged", + "prepush": "npm run tslint && npm run tscheck" }, "lint-staged": { "*.{ts,tsx}": [