@dominikrusso/tsconfig
v2.0.0
Published
Base tsconfigs for node and browsers.
Downloads
3
Readme
@dominikrusso/tsconfig
Base tsconfigs.
Provided Configs
<transpiler>-<environment>-<variant>.json
- transpiler
tsc
: you are using tsc to transpile your packagebundler
: you are using a bundler (esbuild, bun, swc, ...)
- environment:
browser
: you are using Web APIsnode
: you are not using Web APIs
- variant:
app
: you are creating an applicationlib
: you are creating a library
Usage
Add @dominikrusso/tsconfig
as a devDependency.
Then extend one of the configs:
// tsconfig.json
{
"extends": "@dominikrusso/tsconfig/tsc-node-app.json",
"include": ["src"],
}
⚠️ skipLibCheck
is enabled by default.
If you are building a library and writing d.ts
files
you should consider disabling this option.
Please refer to
this post from Testim
for a detailed explanation of skipLibCheck
.