@jych/tsconfigs
v0.1.1
Published
Pre-made tsconfig.json files.
Readme
@jych/tsconfigs
Pre-made tsconfig.json files, to simplify project setup.
Usage
Install @jych/tsconfigs and all dependencies:
pnpm add --save-dev @jych/tsconfigs @tsconfig/node22 tslibYour tsconfig.json file must be configured to extend one provided by this package.
Additionally, some options can only set on the project's root tsconfig.json file:
{
"extends": "@jych/tsconfigs/dist/node22/tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"baseUrl": "./",
"outDir": "./dist/esm",
"declarationDir": "./dist/ts",
"tsBuildInfoFile": "./dist/.tsbuildinfo"
}
}Usage without tslib
This package uses tsc's import helpers by default, requiring tslib.
You can install this package without tslib as long as you disable import helpers later:
pnpm add --save-dev @jych/tsconfigs @tsconfig/node22Disable import helpers with compilerOptions.importHelpers=false.
