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.