Skip to content

Commit

Permalink
Inherit the same tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
takashiro committed Jun 26, 2024
1 parent b21251d commit 963c003
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 17 deletions.
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default {
'ts-jest',
{
useESM: true,
tsconfig: 'test/tsconfig.json',
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"pixdif": "pixdif.js"
},
"scripts": {
"build": "tsc",
"debug": "tsc --incremental --sourceMap",
"build": "tsc -p src/tsconfig.json",
"debug": "tsc -p src/tsconfig.json --incremental --sourceMap",
"test": "npm run lint && npm run jest",
"lint": "eslint --ext=ts,js .",
"jest": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --coverage"
Expand Down
3 changes: 3 additions & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../tsconfig.json"
}
10 changes: 0 additions & 10 deletions test/tsconfig.json

This file was deleted.

5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@
"esModuleInterop": true,
"declaration": true,
"strict": true
},
"include": [
"src"
]
}
}

0 comments on commit 963c003

Please sign in to comment.