From fe035a3008aa6bb9d7940e4f007181a27b32c86f Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Sun, 16 Jan 2022 23:07:19 +0800 Subject: [PATCH] add type check (#22) --- package.json | 2 +- tsconfig.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 11071f9..67edd6c 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "main.js", "scripts": { "dev": "node esbuild.config.mjs", - "build": "node esbuild.config.mjs production" + "build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production" }, "keywords": [], "author": "", diff --git a/tsconfig.json b/tsconfig.json index b61f304..b50f455 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,6 +9,7 @@ "noImplicitAny": true, "moduleResolution": "node", "importHelpers": true, + "isolatedModules": true, "lib": [ "DOM", "ES5",