diff --git a/package.json b/package.json index cfa3763..9bc7b85 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "scripts": { "build": "del-cli distribution && tsc", - "test": "xo && ava && npm run build", + "test": "xo && ava && tsc --project test && npm run build", "prepack": "npm run build" }, "files": [ diff --git a/test/tsconfig.json b/test/tsconfig.json new file mode 100644 index 0000000..cddf977 --- /dev/null +++ b/test/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "@sindresorhus/tsconfig", + "include": ["."], + "compilerOptions": { + "noEmit": true + } +}