Skip to content

[BUG] Scanning for unused files does not respect tsconfig path alias(es) #62

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

Open
insytes opened this issue Feb 26, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@insytes
Copy link

insytes commented Feb 26, 2025

When using the option --detect-unused-files-from path alias(es) defined in tsconfig.json are not respected.

{
  "compilerOptions": {
    "paths": {
      "~/*": [
        "./src/*"
      ]
    }
  }
}
// ./src/index.ts
import { someObj } from '~/depA'

./src/depA.ts will be returned as an unused file.

@insytes insytes added the bug Something isn't working label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants