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 10, 2019
1 parent 6f94f19 commit 8f84260
Show file tree
Hide file tree
Showing 2 changed files with 14 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
13 changes: 13 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"noEmit": true,
"strict": true,
"noImplicitAny": false,
"extendedDiagnostics": true
},
"files": [
"./test/types.test.ts"
]
}

0 comments on commit 8f84260

Please sign in to comment.