-
Notifications
You must be signed in to change notification settings - Fork 319
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
Support for TypeScript React (*.tsx) #189
Comments
I think I must be doing something wrong. It works for some .tsx files but only a couple. I have no idea why, nor how to debug it. |
Refs dependents/detective-typescript#13 Refs pahen/madge#189 Closes gh-48
Thanks for reporting @dfoverdx. Proper tsx support has landed all the way through the core dependencies and accessible via dependency-tree 6.4.0. The remaining bit of work is bumping the dependency-tree version in Madge and adding a test to make sure that tsx files are parsed. Without that, you can reinstall Madge and the caret declaration of dependency-tree should get you the latest version automatically. Give it a spin and let me know if it changes anything in your case.. |
Can you confirm that it works for you now @dfoverdx ? I fit does, I'll create a new release of Madge with updated dependencies. |
@pahen Does this mean |
It looks like JavaScript React (*.jsx) files and TypeScript (*.ts) files are supported, but TypeScript React (*.tsx) files don't appear to be. Either that, or I'm doing something wrong. (I just learned of the existence of Madge 15 minutes ago.)
I'm running
npx madge --extensions js,jsx,ts,tsx ./components/my-component.tsx
and it's producing a "tree" of that single file.The text was updated successfully, but these errors were encountered: