kamilkisiela / tsconfig-diff

Compare two tsconfig files

Home Page:https://npm.im/tsconfig-diff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Compare two tsconfig files

https://npm.im/tsconfig-diff


Languages

Language:JavaScript 100.0%