2BAD / tsconfig

Shared TypeScript config file for our projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tsconfig

Shared TypeScript config for our projects

Install

$ npm install --save-dev @2bad/tsconfig

Usage

tsconfig.json

{
  "extends": "@2bad/tsconfig",
  "compilerOptions": {
    "outDir": "build",
    "baseUrl": "source"
  }
}

If you're willing to use path mapping, you should install tsc-alias and update the configuration accordingly.

{
  "extends": "@2bad/tsconfig",
  "compilerOptions": {
    "outDir": "build",
    "baseUrl": "source",
    "paths": {
      "~/*": ["./*"]
    }
  },
  "tsc-alias": {
    "resolveFullPaths": true
  }
}

About

Shared TypeScript config file for our projects

License:MIT License