Skip to content

Commit 134d71e

Browse files
authoredFeb 4, 2025··
fix: build failure due to tests (#1283)
1 parent b8ef615 commit 134d71e

5 files changed

+19
-14
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "A GitHub Action to configure AWS credentials",
44
"version": "4.0.3",
55
"scripts": {
6-
"build": "tsc --project tsconfig.build.json",
6+
"build": "tsc",
77
"lint": "biome check --error-on-warnings ./src",
88
"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",
99
"test": "npm run lint && vitest run"

‎tsconfig.build.json

-9
This file was deleted.

‎tsconfig.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@
2222
"lib": [ "ES2020" ],
2323
"target": "ES2020",
2424
"noErrorTruncation": true,
25-
"esModuleInterop": true
25+
"esModuleInterop": true,
26+
"rootDir": "src",
2627
},
2728
"include": [
28-
"src/**/*.ts",
29-
"test/**/*.test.ts"
29+
"src/**/*.ts"
30+
],
31+
"exclude": [
32+
"test/**/*.ts"
3033
],
31-
"exclude": [],
3234
}
3335

‎tsconfig.test.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": [
4+
"test/**/*.ts",
5+
"src/**/*.ts"
6+
],
7+
"exclude": [],
8+
"compilerOptions": {
9+
"rootDir": "./"
10+
},
11+
}

‎vitest.config.mts

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export default defineConfig({
55
passWithNoTests: true,
66
include: ['test/**/*.test.ts'],
77
coverage: { enabled: true },
8+
typecheck: { tsconfig: './tsconfig.test.json' },
89
},
910
});

0 commit comments

Comments
 (0)
Please sign in to comment.