diff --git a/package.json b/package.json index a8fd7056eb..22bb7f5833 100644 --- a/package.json +++ b/package.json @@ -29,13 +29,14 @@ "tsc": "tsc -p .", "doc": "node utils/doclint/cli.js", "test-infra": "node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js && node utils/testrunner/test/test.js", - "lint": "npm run eslint && npm run tsc && npm run doc && npm run test-infra", + "lint": "npm run eslint && npm run tsc && npm run doc && npm run test-types && npm run test-infra", "debug-test": "node --inspect-brk test/test.js", "clean": "rimraf lib && rimraf types", "prepare": "node install-from-github.js", "build": "node utils/runWebpack.js --mode='development' && tsc -p .", "watch": "node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .", "version": "node utils/sync_package_versions.js && npm run doc", + "test-types": "npm run generate-types && npx -p typescript@3.2 tsc -p utils/generate_types/test/tsconfig.json", "generate-types": "node utils/generate_types/" }, "author": {