Skip to content

Commit

Permalink
fix: build failure due to tests (#1283)
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertk authored Feb 4, 2025
1 parent b8ef615 commit 134d71e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 0 additions & 9 deletions tsconfig.build.json

This file was deleted.

10 changes: 6 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
}

11 changes: 11 additions & 0 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"include": [
"test/**/*.ts",
"src/**/*.ts"
],
"exclude": [],
"compilerOptions": {
"rootDir": "./"
},
}
1 change: 1 addition & 0 deletions vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export default defineConfig({
passWithNoTests: true,
include: ['test/**/*.test.ts'],
coverage: { enabled: true },
typecheck: { tsconfig: './tsconfig.test.json' },
},
});

0 comments on commit 134d71e

Please sign in to comment.