node-dependency-tree icon indicating copy to clipboard operation
node-dependency-tree copied to clipboard

Filter out type import dependencies

Open tom2drum opened this issue 1 year ago • 3 comments

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

tom2drum avatar Feb 15 '24 14:02 tom2drum

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

joeycozza avatar Feb 15 '24 20:02 joeycozza

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

tom2drum avatar Feb 16 '24 14:02 tom2drum