From 8f84260919c39e6ddce8ffeafb6dd4a262195314 Mon Sep 17 00:00:00 2001 From: Pedro Soares Date: Thu, 6 Jun 2019 17:06:20 -0300 Subject: [PATCH] feat(types): add tsc check on test script Added `tsconfig.json` to be used by `tsc` when package.json 'test' script. --- package.json | 2 +- tsconfig.json | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 tsconfig.json diff --git a/package.json b/package.json index 5a3f45b..c55ae70 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..1627eb2 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "es6", + "module": "commonjs", + "noEmit": true, + "strict": true, + "noImplicitAny": false, + "extendedDiagnostics": true + }, + "files": [ + "./test/types.test.ts" + ] +}