Skip to content

Commit

Permalink
feat(types): add tsc check on test script
Browse files Browse the repository at this point in the history
Added `tsconfig.json` to be used by `tsc` when package.json 'test'
script.
  • Loading branch information
hspedro committed Jun 6, 2019
1 parent d222a5a commit 7869469
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Defaults for Fastify that everyone can agree on",
"main": "index.js",
"scripts": {
"test": "standard && tap test/*.test.js"
"test": "standard && tap test/*.test.js && tsc --project ./tsconfig.json"
},
"repository": {
"type": "git",
Expand Down
12 changes: 12 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"noEmit": true,
"strict": true,
"noImplicitAny": false
},
"files": [
"./test/types.test.ts"
]
}

0 comments on commit 7869469

Please sign in to comment.