1.0.1 • Published 1 year ago

tsconfig-merge v1.0.1

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

tsconfig-merge

NodeJS package without any dependencies that merges two provided tsconfig.json files into a single object. Package merges all properties of tsconfig.json files, including the extends property.

TypeScript

Installation

npm i tsconfig-merge -D

Usage

import { resolve } from 'path';
import { merge2TSConfigs } from 'tsconfig-merge';

const tsConfigA = resolve(__dirname, './tsConfigA.json');
const tsConfigB = resolve(__dirname, './tsConfigB.json');
const mergedTSConfigs = merge2TSConfigs(tsConfigA, tsConfigB);