diff --git a/package.json b/package.json index 19d5a4804..a33caa13a 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "A GitHub Action to configure AWS credentials", "version": "4.0.3", "scripts": { - "build": "tsc --project tsconfig.build.json", + "build": "tsc", "lint": "biome check --error-on-warnings ./src", "package": "npm run build && ncc build --license THIRD-PARTY -o dist && ncc build src/cleanup/index.ts -o dist/cleanup && cpy dist/THIRD-PARTY . && del-cli dist/THIRD-PARTY", "test": "npm run lint && vitest run" diff --git a/tsconfig.build.json b/tsconfig.build.json deleted file mode 100644 index 8f01a4125..000000000 --- a/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "./tsconfig.json", - "exclude": [ - "test/**/*.ts" - ], - "compilerOptions": { - "rootDir": "src" - }, -} diff --git a/tsconfig.json b/tsconfig.json index 14282ad01..c7f8c1c77 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,12 +22,14 @@ "lib": [ "ES2020" ], "target": "ES2020", "noErrorTruncation": true, - "esModuleInterop": true + "esModuleInterop": true, + "rootDir": "src", }, "include": [ - "src/**/*.ts", - "test/**/*.test.ts" + "src/**/*.ts" + ], + "exclude": [ + "test/**/*.ts" ], - "exclude": [], } diff --git a/tsconfig.test.json b/tsconfig.test.json new file mode 100644 index 000000000..fe3a1ffa3 --- /dev/null +++ b/tsconfig.test.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "include": [ + "test/**/*.ts", + "src/**/*.ts" + ], + "exclude": [], + "compilerOptions": { + "rootDir": "./" + }, +} diff --git a/vitest.config.mts b/vitest.config.mts index f6c24fa14..beb0aa05d 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -5,5 +5,6 @@ export default defineConfig({ passWithNoTests: true, include: ['test/**/*.test.ts'], coverage: { enabled: true }, + typecheck: { tsconfig: './tsconfig.test.json' }, }, });