1.0.1 • Published 2 years ago
ts-import-patch v1.0.1
ts-import-patch
This is a simple module that add the .js
extension to js imports without it.
This is typically the case when using ES modules in node with typescript
Works for Unix systems only. I have not tested on Windows since windows uses a different path delimiter
Installation
npm i -D ts-import-patch
Usage
# tsp /path/to/transpiled/ts/code
tsp ./dist