Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 701 Bytes

README.md

File metadata and controls

41 lines (33 loc) · 701 Bytes

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
  }
}