Alt
Alt
I have tested TS `5.7.0-dev`. **It does not rewrite `.d.ts` files.** My library preset on `5.6.2`: ```jsonc /* Library preset */ "module": "NodeNext", "moduleResolution": "NodeNext", "noEmit": false, "declaration": true, ```...
It's a bug. Non-rewritten imports in `d.ts.` break (partially) the code assistance in an IDE. It's OK:  (`npm install @alttiri/[email protected]`) After using [`rewriteRelativeImportExtensions`](https://github.com/AlttiRi/util-js/commit/b61ce2645a5ec0e8da4bc58aa0f3113c98a37a25):  (`npm install @alttiri/[email protected] --registry=https://npm.pkg.github.com`) In...
Also, it currently (?) does not support aliases which resolve to _a relative path_. ```json { "extends": "../tsconfig.json", "compilerOptions": { "baseUrl": ".", "paths": { "@/*": ["../*"] } } } ```...
Is it a problem to resolve the alias first and only after that check if it is a relative path or not? It doesn't seem like something that is difficult...
Okay, I have checked it with the latest Node.js (v22.9.0) too _(I tested it with Deno before)_. It works (as expected). 