My set of tsc config files
The easiest way to get started with this project is to use our setup script.
-
Install this config plugin as a dev dependency.
npm i -D @code-style/typescript-configs
-
Pick an appropriate role config to base your on.
For example, you could pick
@code-style/typescript-configs/roles/node.json
. -
Pick any appropriate layer configs to add to your config.
For example, you could pick
@code-style/typescript-configs/layers/esmodule.json
. -
Create your
tsconfig.json
.{ "extends": [ "@code-style/typescript-configs/roles/node.json", "@code-style/typescript-configs/layers/esmodule.json" ] }
-
Set your
baseUrl
andoutDir
paths.{ ... "compilerOptions": { "baseUrl": "src/", "outDir": "dist/" } }
-
Set your
include
andexclude
paths.{ ... "include": ["src/"], "exclude": ["dist/"] }