Package detail

tsconfig-utils

shigma2kMIT4.1.1

A collection of utilities for working with tsconfig.json files

readme

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