shigma / tsconfig-utils

A collection of utilities for working with `tsconfig.json` files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tsconfig-utils

npm

A collection of utilities for working with tsconfig.json files.

Usage

import { load } from 'tsconfig-utils'

// load a tsconfig.json file,
// resolving "extends" fields recursively
const config = await load('/path/to/project')

config.get('noEmit') // false

// load with additional args
// args will take precedence over tsconfig files
const config = await load(process.cwd(), [
  '-p', 'tsconfig.base.json',
  '--noEmit',
])

config.get('noEmit') // true

About

A collection of utilities for working with `tsconfig.json` files

License:MIT License


Languages

Language:TypeScript 100.0%