gervinfung

gervinfung/ts-add-js-extension

Add .js extension to each relative import/export statement in JavaScript file through AST

TypeScript
47
6
MIT License

The ts‑add‑js‑extension tool automatically appends the appropriate `.js` or `.mjs` extension to relative import and export statements in ES‑module JavaScript or TypeScript files. It lets TypeScript projects that compile to ESM reference modules without needing to manually add extensions—or import build‑artifact files—making import paths cleaner and more compatible with native ESM. The solution is aimed at developers who want to keep their source code free of extension references and avoid bundler‑specific workarounds.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of gervinfung/ts-add-js-extension

Account's avatar
TypeScript is a language for application scale JavaScript development
Account's avatar
My ESLint shareable config
Account's avatar
My Prettier shareable config through generating config
Account's avatar
TypeScript definitions for node
Account's avatar
My helper to ensure TypeScript transpiled files/folders are valid according to my preference
Account's avatar
Portable Shell Commands for Node
Account's avatar
Vite as Node.js runtime
Account's avatar
Next generation testing framework powered by Vite

Support the repos that depend on this repository

Top contributors

GervinFung's profile
GervinFung
95 contributions
Frezc's profile
Frezc
1 contributions
kvnwolf's profile
kvnwolf
1 contributions
Romakita's profile
Romakita
1 contributions
xiaoxiangmoe's profile
xiaoxiangmoe
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet