fix(cli): Remove tree-sitter grammar ./... call limitation
@@ -169,6 +169,7 @@ fn load_grammar_file(grammar_path: &Path) -> Result<String> {
}
fn load_js_grammar_file(grammar_path: &Path) -> Result<String> {
+ let grammar_path = fs::canonicalize(grammar_path)?;
let mut node_process = Command::new("node")
.env("TREE_SITTER_GRAMMAR_PATH", grammar_path)
.stdin(Stdio::piped())
