fix(cli): Remove tree-sitter grammar ./... call limitation

This commit is contained in:
Andrew Hlynskyi 2021-08-05 03:50:10 +03:00
parent c21bec3716
commit 533073cdb5

View file

@ -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())