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

tsc-alias does not properly replace aliases in declaration files when using a build with emitDeclarationOnly #196

Open
stof opened this issue Aug 31, 2023 · 1 comment

Comments

@stof
Copy link

stof commented Aug 31, 2023

All replacements get reported as Invalid path in the debug output.

I suspect that the resolver tries to check the existence of the target file. When replacing in a declaration file, it would be great if the check could accept a case where we only have a declaration file for the target file (even if the file does not exist).

@stof
Copy link
Author

stof commented Aug 31, 2023

this happens when the aliases in the tsconfig.json file look like "display-svg": ["./src/dispay/svg.js"]. If I remove the .js extension from the alias, the path is accepted as valid.

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

No branches or pull requests

1 participant