tsconfig-diff

1.0.1 • Public • Published

tsconfig-diff

Compare two tsconfig files

Installation

# Yarn
yarn global add tsconfig-diff

# NPM
npm install --global tsconfig-diff

Usage

Compare two tsonfig files:

tsconfig-diff <base> <target>

Example

Let's check differences between tsconfig.app.json and tsconfig.server.json.

tsconfig-diff tsconfig.app.json tsconfig.server.json

tsconfig.app.json

{
  "compilerOptions": {
    "outDir": "dist/app",
    "target": "es2015",
    "declaration": true,
  }
}

tsconfig.server.json

{
  "compilerOptions": {
    "outDir": "dist/server",
    "target": "es2015",
    "declaration": true,
  }
}

Result:

  {
    "compilerOptions" {
-     "outDir": "dist/app",
+     "outDir": "dist/server",
      "target": "es2015",
      "declaration": true
    }
  }

In tsconfig.app.json we had dist/app, in tsconfig.server.json there's dist/server.

Readme

Keywords

none

Package Sidebar

Install

npm i tsconfig-diff

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.66 kB

Total Files

3

Last publish

Collaborators

  • kamilkisiela