Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡 Add support for typescript-transform-paths #928

Open
ArthurGuez opened this issue Jan 29, 2025 · 1 comment
Open

💡 Add support for typescript-transform-paths #928

ArthurGuez opened this issue Jan 29, 2025 · 1 comment
Labels
feature request Feature request

Comments

@ArthurGuez
Copy link

ArthurGuez commented Jan 29, 2025

Suggest an idea for Knip

typescript-transform-paths transforms module resolution paths using TypeScript path mapping and/or custom paths.

It is flagged as an Unused devDependencies by Knip even though it is declared in the plugins array of my tsconfig.json :

 "plugins": [
      { "transform": "typescript-transform-paths" },
      { "transform": "typescript-transform-paths", "afterDeclarations": true }
    ],

Thank you very much 🙏

@ArthurGuez ArthurGuez added the feature request Feature request label Jan 29, 2025
@webpro
Copy link
Collaborator

webpro commented Feb 10, 2025

Looks like plugins.transform isn't a standard feature of TypeScript.

Looking at the docs, there's a few ways to detect usage. E.g. this way would be detected by Knip:

node -r typescript-transform-paths/register src/index.ts

How are you using it? We might need to add detection to the ts-node or Nx plugin(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request
Projects
None yet
Development

No branches or pull requests

2 participants