add type check (#22)

This commit is contained in:
fyears 2022-01-16 23:07:19 +08:00 committed by GitHub
parent a25092b586
commit fe035a3008
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -5,7 +5,7 @@
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"dev": "node esbuild.config.mjs", "dev": "node esbuild.config.mjs",
"build": "node esbuild.config.mjs production" "build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",

View file

@ -9,6 +9,7 @@
"noImplicitAny": true, "noImplicitAny": true,
"moduleResolution": "node", "moduleResolution": "node",
"importHelpers": true, "importHelpers": true,
"isolatedModules": true,
"lib": [ "lib": [
"DOM", "DOM",
"ES5", "ES5",