@kikiutils/tsconfigs
v3.0.2
Published
Base configuration files for TypeScript projects, simplifying setup and configuration for various environments.
Downloads
300
Readme
@kikiutils/tsconfigs
Base configuration files for TypeScript projects, simplifying setup and configuration for various environments.
Installation
Add dependency (example using pnpm).
pnpm add -D @kikiutils/tsconfigs
You can also use yarn, npm, or bun to add the dependency.
That's it! You're ready to use this package in your project. Check out the instructions for usage below ✨.
Usage
Here is an example of the tsconfig.json content:
{
"extends": "@kikiutils/tsconfigs/esnext/es2022.json",
"compilerOptions": {
"baseUrl": "./src",
"declaration": true,
"outDir": "./dist"
},
"include": ["./src"]
}
The file path for extend is composed as "@kikiutils/tsconfigs/compilerOptions.module
/compilerOptions.target
.json".
For example, if you want to set compilerOptions.module
to CommonJS
and compilerOptions.target
to ES2021
, the value of the extends option should be @kikiutils/tsconfigs/commonjs/es2021.json
.
[!NOTE] If using the Bun runtime, please use
@kikiutils/tsconfigs/bun.json
directly.
For more information about the module
and target
options, please visit the the following links.