typescript-transform-paths icon indicating copy to clipboard operation
typescript-transform-paths copied to clipboard

Why and how are you using this project?

Open danielpza opened this issue 3 months ago • 4 comments

Hello everyone, I'd like to understand why are you using this project and if you are still using it for new projects.

TypeScript transformers plugins seems to be very niche and this plugin in particular has a few alternatives that seems to be more popular/up to date/better maintained/standard:

It seems a waste to keep maintaining this project, but people keep using it/raising issues despite the alternatives.

Please let me know if you have an use case for this project, and if you have tried any other alternatives that couldn't solve your issue.

danielpza avatar Aug 23 '25 21:08 danielpza

setting up Node.js subpath imports is a bit tricky, I needed to have .js suffix only on the right size in the package.js imports config

  "imports": {
    "#root/*": "./dist/src/*.js"
   }

zuozp8 avatar Sep 04 '25 13:09 zuozp8

Saw this post only now. We're using it in a 100+ packages Nx monorepo driven by tsconfig path aliases, when compiling with tsc.
We prefer doing this because it avoids bundling: shorter feedback loop, tsc watches and recompiles only what's necessary, and we get better source map support in the various IDEs that get used.

lppedd avatar Sep 04 '25 14:09 lppedd

Note that I recommend this library to everyone in our situation. It has practically no bugs, and it works out-of-the-box with Nx.

lppedd avatar Sep 04 '25 14:09 lppedd

+1 using it for the same reason as lppedd. NX monorepo, driven by tsconfig path aliases.

This project has been the best way to avoid bundling internal libraries on a monorepo.

Will look into NodeJs Subpath imports.

ChandlerFerry avatar Sep 11 '25 00:09 ChandlerFerry