Skip to content

Commit

Permalink
Improve TypeScript config
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Nov 15, 2023
1 parent 86de458 commit 359c1f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"prepack": "yarn clean && yarn build",
"prettier": "prettier --check . --cache",
"test": "yarn lint && yarn tsc && yarn prettier",
"tsc": "tsc --noEmit"
"tsc": "tsc"
},
"keywords": [
"collision",
Expand Down
6 changes: 6 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false,
"outDir": "dist",
"rootDir": "src"
},
"include": ["src"],
"exclude": ["src/**/*.spec.ts"]
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
"isolatedModules": true,
"module": "esnext",
"moduleResolution": "node",
"noEmit": true,
"noUncheckedIndexedAccess": true,
"outDir": "dist",
"strict": true,
"target": "es5",
"verbatimModuleSyntax": true
},
"include": ["src"]
"exclude": ["dist"]
}

0 comments on commit 359c1f1

Please sign in to comment.