Skip to content

DiegoVictor/tsc-path-replacer

Repository files navigation

tsc-path-replacer

npm eslint prettier airbnb-style typescript MIT License PRs Welcome

Resolve imports/requires alias according to tsconfig paths. It tries use more resources provided by Node.js, like, asynchronous methods, paralelism and a simple memory cache.

Table of Contents

Installing

Just run:

npm install --save-dev @diegovictor/tsc-path-replacer

Or simply:

yarn add -D @diegovictor/tsc-path-replacer

Usage

Register on your build script:

"scripts": {
  "build": "tsc --project tsconfig.json && tsc-path-replacer tsconfig.json",
}

Inspired by

tsconfig-replace-paths