Skip to content

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

Open
@segevfiner

Description

@segevfiner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions