From 34ef34469a681c9a8517a55f00d67ffdf017754a Mon Sep 17 00:00:00 2001 From: Justin Halsall Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] Add check-types to package.json (#627) * Add type checking to ci * Update @types/node to version 12 We are using node 12 on ci * Add check-types to package.json --- .travis.yml | 4 ++-- package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6484f9dd..be3721f6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,5 +11,5 @@ install: - yarn script: - - tsc --noEmit - - xvfb-run --server-args="-screen 0 1920x1080x24" npm test + - yarn check-types + - xvfb-run --server-args="-screen 0 1920x1080x24" yarn test diff --git a/package.json b/package.json index ce42d91c..90d714a7 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "repl": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true ts-node scripts/repl.ts", "bundle:browser": "cross-env BROWSER_ONLY=true rollup --config", "bundle": "rollup --config", - "typings": "tsc -d --declarationDir typings" + "typings": "tsc -d --declarationDir typings", + "check-types": "tsc -noEmit" }, "repository": { "type": "git",