From 63bbb5431a02487f5ea13f72ace601ffed9f7204 Mon Sep 17 00:00:00 2001 From: Jonathan Ehwald Date: Tue, 8 Oct 2024 03:48:48 +0200 Subject: [PATCH] fix: type tests were messing with type generation (#643) --- package.json | 2 +- tsconfig.json | 2 +- tsconfig.test.json | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 tsconfig.test.json 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 + } +}