@ombro/tsconfig
v2.0.1
Published
Shared TypeScript tsconfig.json
Downloads
432
Readme
@ombro/tsconfig
Shared TypeScript tsconfig.json for projects
Install
npm install -D @ombro/tsconfig
# pnpm
pnpm add -D @ombro/tsconfig
Since version 2.0.0, TypeScript 5.0+ is required.
If you are using TypeScript 4, you need to install
@ombro/[email protected]
.
Usage
Add extends
to your project tsconfig.json
{
"extends": "@ombro/tsconfig"
}
Use ESM
This is actually the default configuration
@ombro/tsconfig@^2.0.0
:
{
"extends": "@ombro/tsconfig/esm"
}
@ombro/tsconfig@^1.0.0
:
{
"extends": "@ombro/tsconfig/tsconfig.esm.json"
}
Use Commonjs
@ombro/tsconfig@^2.0.0
:
{
"extends": "@ombro/tsconfig/cjs"
}
@ombro/tsconfig@^1.0.0
:
{
"extends": "@ombro/tsconfig/tsconfig.cjs.json"
}