github / stack-graphs

Rust implementation of stack graphs
https://docs.rs/stack-graphs/*/stack_graphs/
Apache License 2.0
717 stars 122 forks source link

Always enable both TS & TSX in CLI #433

Closed hendrikvanantwerpen closed 2 months ago

hendrikvanantwerpen commented 2 months ago

The tree-sitter-stack-graphs-typescript CLI accepts a flag to switch between TS and TSX.

This is not quite the right design because (a) TS and TSX files often occur in mixed code bases, and (b) we can determine the dialect from the file extension anyway.

This PR changes the CLI to always have both dialects enabled.

Fixes #431.

shirelga commented 2 months ago

Thanks!

shirelga commented 2 months ago

@hendrikvanantwerpen I have ran it locally, it parsed and index both .tsx|.ts. 🙏