Alt

Results 235 comments of Alt
trafficstars

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: ![Screenshot](https://github.com/user-attachments/assets/a36245e4-f316-4b76-b727-abbdae868f8b) (`npm install @alttiri/[email protected]`) After using [`rewriteRelativeImportExtensions`](https://github.com/AlttiRi/util-js/commit/b61ce2645a5ec0e8da4bc58aa0f3113c98a37a25): ![Screenshot_1](https://github.com/user-attachments/assets/821c0ac4-cf4e-4607-9565-bee54a35c59a) (`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). ![Screenshot](https://github.com/user-attachments/assets/fd1e02db-b143-4298-82d2-e1320d460812)