ts-import-patch
v1.0.1
Published
A simple script that adds the '.js' extension to js imports compiled from ts while using ESM in node
Maintainers
Readme
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-patchUsage
# tsp /path/to/transpiled/ts/code
tsp ./dist