Shared TypeScript config for our projects
$ npm install --save-dev @2bad/tsconfig
tsconfig.json
{
"extends": "@2bad/tsconfig",
"compilerOptions": {
"outDir": "build",
"baseUrl": "source"
}
}
If you're willing to use path mapping, you should install tsc-alias and update the configuration accordingly.
{
"extends": "@2bad/tsconfig",
"compilerOptions": {
"outDir": "build",
"baseUrl": "source",
"paths": {
"~/*": ["./*"]
}
},
"tsc-alias": {
"resolveFullPaths": true
}
}