@code-style/typescript-configs
v2.0.0-32
Published
My Typescript configs
Downloads
960
Readme
@code-style/typescript-configs
My set of tsc config files
Usage
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/"] }