Skip to content

Commit 274c473

Browse files
committed
Add a TS check script
1 parent b13d13a commit 274c473

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

examples/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"extends": "../tsconfig.json",
3-
"compilerOptions": {},
3+
"compilerOptions": {
4+
"noUnusedLocals": false
5+
},
46
"include": [
57
"*.ts"
68
]

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@
3333
],
3434
"scripts": {
3535
"build-changes": "echo 'Source will rebuild on changes' && nodemon --config nodemon.build.json",
36-
"build": "rimraf dist && node-gyp rebuild && tsc -p src",
36+
"build": "npm run clean && node-gyp rebuild && tsc -p src",
37+
"check": "npx tsc --noEmit && npx tsc --noEmit -p examples",
38+
"clean": "rm -rf dist",
3739
"example": "ts-node -P examples/tsconfig.json",
3840
"format": "prettier --write src/ examples/",
3941
"lint": "eslint src/ examples/",
4042
"merge-submodule-upstream": "(cd vendor && git fetch && git merge origin/master)",
4143
"prepublishOnly": "npm run lint && npm run build",
4244
"preversion": "npm run lint && npm run build",
43-
"quick-build": "rimraf dist && node-gyp build && tsc -p src",
45+
"quick-build": "npm run clean && node-gyp build && tsc -p src",
4446
"sync-changes": "echo 'Changes will be pushed to Raspberry Pi' && nodemon --config nodemon.sync.json"
4547
},
4648
"dependencies": {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"noImplicitReturns": true,
1717
"noImplicitThis": true,
1818
"noUnusedLocals": true,
19-
"skipLibCheck": true,
19+
"skipLibCheck": false,
2020
"sourceMap": false,
2121
"strictNullChecks": true,
2222
"strict": true,

0 commit comments

Comments
 (0)