Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tsconfig-utils

shigma2kMIT4.1.1TypeScript support: included

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