0.1.1 • Published 1 year ago

@jych/tsconfigs v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@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 tslib

Your 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/node22

Disable import helpers with compilerOptions.importHelpers=false.

0.1.1

1 year ago

0.1.0

1 year ago