0.1.1 • Published 2 years ago

tspathfix v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

TSPathFix

Simple no-dependency script to update relative paths in .js and .d.ts files after being generated by TypeScript compiler.

Installation

yarn install tspathfix -D 

OR

npm install tspathfix --save-dev

Usage

Compile TypeScript project and then run tspathfix in the same folder

tsc
tspathfix

Rationale

  • Typescript Compiler (tsc) does not perform path resolving when creating .js or .d.ts files
  • There are no simple solutions out there that can perform this without involving a bundler with convoluted setup

License

MIT