tsconfig-extends

load tsconfig compiler-options, support `extends` field

MIT 2 个版本
安装
npm install tsconfig-extends
yarn add tsconfig-extends
pnpm add tsconfig-extends
bun add tsconfig-extends
README

tsconfig-extends

npm build coverage

load tsconfig compiler-options, support extends field

Changelog

Installation

# using npm
npm install --save tsconfig-extends

# using yarn
yarn add tsconfig-extends

Usage

import * as tsconfig from 'tsconfig-extends';

const compiler_options = tsconfig.load_file_sync('path/to/tsconfig.json');

API

  • load_file_sync(filename: string, cwd?: string): CompilerOptions
  • load_config_sync(tsconfig: TSConfig, cwd?: string): CompilerOptions
版本列表
1.0.1 2017-05-28
1.0.0 2017-05-27