diff --git a/package.json b/package.json index cf9237f3..3a80d72d 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "lint:markdown:fix": "prettier --write \"docs/**/*.md[x]\"", "lint:report": "eslint --output-file=eslint-report.json --format=json src/ --ext .js,.jsx,.ts,.tsx", "lint:spellcheck": "spellchecker --quiet --files=\"docs/**/*.md\" --dictionaries=\"./.spellcheck.dict.txt\" --reports=\"spelling.json\" --plugins spell indefinite-article repeated-words syntax-mentions syntax-urls frontmatter", - "tsc:compile": "tsc --project . --noEmit", + "tsc:compile": "tsc --project tsconfig.test.json", "lint": "yarn lint:code && yarn tsc:compile", "tests:jest": "jest", "tests:jest-watch": "jest --watch", diff --git a/tsconfig.json b/tsconfig.json index c9168ad0..d3d9357a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "include": ["src", "type-test.ts"], + "include": ["src"], "compilerOptions": { "target": "esnext", "module": "commonjs", diff --git a/tsconfig.test.json b/tsconfig.test.json new file mode 100644 index 00000000..31acab4f --- /dev/null +++ b/tsconfig.test.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "include": ["type-test.ts"], + "compilerOptions": { + "noEmit": true + } +}