tspathfix
v0.1.1
Published
resolve paths in .js and .d.ts files generated by tsc
Downloads
7
Readme
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