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

Filter out type import dependencies #172

Open
tom2drum opened this issue Feb 15, 2024 · 2 comments
Open

Filter out type import dependencies #172

tom2drum opened this issue Feb 15, 2024 · 2 comments

Comments

@tom2drum
Copy link

Can this tool be configured to exclude all imports of any types (via import type) from being considered as file dependencies?

@joeycozza
Copy link

There is the option called noTypeDefinitions. Does that do what you want?
It defaults to false, so you'll need to set it to true yourself.

https://github.com/dependents/node-dependency-tree?tab=readme-ov-file#usage

@tom2drum
Copy link
Author

No, that doesn't work for me. I think this setting only changes the resolver path from .js files to .d.ts files.

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

2 participants