tree-sitter-typescript icon indicating copy to clipboard operation
tree-sitter-typescript copied to clipboard

Installing tree-sitter-typescript as a dependency will not include tree-sitter-javascript referenced in the package.json

Open segevfiner opened this issue 2 years ago • 0 comments

If you add tree-sitter-typescript as a dependency of a project, and point to the created node_modules folder from the tree-sitter-cli's config.json, it will be missing the files references in the package.json that are from tree-sitter-javascript as it is declared as a dev dependency, and even if you declare it as a normal dependency, they would still not be there due to hositing and other package manager shenanigans (e.g. pnpm).

This makes it annoying to use it that way if you want to grab that info or use a package.json to manage a folder of installed grammers.

segevfiner avatar Nov 27 '23 21:11 segevfiner