diff --git a/package.json b/package.json index d611aa9e..7d1b7105 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,8 @@ "format": "prettier --write 'src/**/*.{js,ts}'", "format:check": "prettier --check 'src/**/*.{js,ts}'", "typecheck": "npx tsc --noEmit", + "typecheck:tests": "npx tsc -p tsconfig.tests.json --noEmit", + "typecheck:all": "npm run typecheck && npm run typecheck:tests", "verify:smithery-bundle": "bash scripts/verify-smithery-bundle.sh", "inspect": "npx @modelcontextprotocol/inspector node build/index.js", "doctor": "node build/doctor-cli.js", diff --git a/tsconfig.tests.json b/tsconfig.tests.json new file mode 100644 index 00000000..322f2bdf --- /dev/null +++ b/tsconfig.tests.json @@ -0,0 +1,14 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": true, + "types": ["vitest/globals", "node"] + }, + "include": ["src/**/*.test.ts", "tests-vitest/**/*.ts"], + "exclude": [ + "node_modules", + "plugins/**/*", + "src/core/generated-plugins.ts", + "src/core/generated-resources.ts" + ] +}