Skip to content
/ tsconfig Public

Shared TypeScript config file for our projects

License

Notifications You must be signed in to change notification settings

2BAD/tsconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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