Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish to npm? #27

Open
janw4ld opened this issue Dec 20, 2024 · 6 comments
Open

publish to npm? #27

janw4ld opened this issue Dec 20, 2024 · 6 comments

Comments

@janw4ld
Copy link
Collaborator

janw4ld commented Dec 20, 2024

official treesitter grammars are all published to npm, example, and some projects that depend on tree-sitter use the npm registry as the only option to fetch and manage versions of a grammar, so it would be great if we managed an npm package for this repo. i can see that the unscoped tree-sitter-groovy name is already taken tho.

@murtaza64
Copy link
Owner

I wouldn't be opposed to setting this up, but I've never published a package on npm. @amaanq thoughts on how to resolve the name collision?

@amaanq
Copy link

amaanq commented Jan 7, 2025

you can use a scope

@murtaza64
Copy link
Owner

since this parser is used upstream in nvim-treesitter, would you be willing to scope yours and let this project take the unqualified name?

@thoroc
Copy link

thoroc commented Feb 3, 2025

Sorry to jump on this open issue, but until this is published to the npm registry, how do you go about exporting this to use in a node project?

@janw4ld
Copy link
Collaborator Author

janw4ld commented Feb 3, 2025

@thoroc you can use npm i https://github.com/murtaza64/tree-sitter-groovy to install it directly from github.

@thoroc
Copy link

thoroc commented Feb 4, 2025

@janw4ld Thank you for your answer.

I am experimenting with Deno and that doesn't seem to be working out of the box. I've got a bit further with the help of a couple of tools though:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants