Skip to content

Commit

Permalink
fix: exclude __tests__ from mainline TS build
Browse files Browse the repository at this point in the history
  • Loading branch information
brotheroftux committed Jun 21, 2024
1 parent 9a19a74 commit 2146df9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
project: ['./tsconfig.test.json', './tsconfig.json'],
project: ['./src/__tests__/tsconfig.json', './tsconfig.json'],
tsconfigRootDir: __dirname,
},
},
Expand Down
5 changes: 5 additions & 0 deletions src/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.json",
"include": [".", "../@types"],
"exclude": []
}
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"compilerOptions": {
"target": "ES6",
"jsx": "react",
"declaration": true
"declaration": true,
"baseUrl": "."
},
"include": ["src"],
"exclude": ["src/__tests__"],
"ts-node": {
"esm": true,
"transpileOnly": true
Expand Down
5 changes: 0 additions & 5 deletions tsconfig.test.json

This file was deleted.

0 comments on commit 2146df9

Please sign in to comment.