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

Need help getting access to NPM (please help us if you see this max :) )

Open hjdivad opened this issue 2 years ago • 6 comments

The latest release appears to be 0.20.2 however the latest published package on npm is 0.19.0.

Is NPM an official release channel for this package? If so could we have the latest version published there. Thanks.

hjdivad avatar Sep 07 '23 16:09 hjdivad

I've been making releases by creating tags and making Rust releases, but I didn't know that npm was one of the bindings tree-sitter-scala has made releases.

eed3si9n avatar Sep 10 '23 05:09 eed3si9n

@eed3si9n that makes sense. Do you expect to restart publishing new releases to npm?

Put another way, for someone using tree-sitter's node bindings, what's the best way to consume tree-sitter-scala?

hjdivad avatar Sep 13 '23 17:09 hjdivad

It looks like @maxbrunsfeld and @queerviolet maintain the npm package https://www.npmjs.com/package/tree-sitter-scala. I don't know the system works, but if they could add me, I'd be happy to try publishing for the current tags. Otherwise, I am not sure.

eed3si9n avatar Sep 14 '23 01:09 eed3si9n

First: thank you for this project :)

Reviving a little bit this topic: if and when this gets done, could you also include the .wasm build of tree-sitter-scala in the process? Some parsers include their .wasm in the built npm package, which is ideal for consumption. Another possibility is to distribute that file in the GitHub Release associated with the tag.

FYI, following the tree-sitter documentation, generating the .wasm file is done as

npx tree-sitter build-wasm .

when in the directory of the tree-sitter-scala. If done in a package.json script, "tree-sitter build-wasm ." is enough.


I can successfully use the tree-sitter-scala.wasm built by the above command on any platform. But building it requires the setup already necessary for developing a tree-sitter language support. It would be helpful if it were built as part of the release process of tree-sitter-scala itself, since it already has all the required infrastructure.

sjrd avatar Jan 12 '24 09:01 sjrd

Let's try pinging one more time. @maxbrunsfeld or @queerviolet is there any chance that you'd be able to help us out with access to the NPM repository to continue publishing there?

ckipp01 avatar Jan 15 '24 08:01 ckipp01

I'll help out here soon enough, working on standardizing the release process across the ecosystem for rust/python/npm (the bash, c, and python parsers are updated with this new process)

amaanq avatar Mar 13 '24 01:03 amaanq

Attempting another reping since it's been about 7 months: cc @maxbrunsfeld 🙏🏼. If a week or so goes by, I'll attempt to email, though I'd like to refrain from doing that if I can.

antemasqued avatar Aug 05 '24 16:08 antemasqued

Here's a PR that cherry picks release automation - https://github.com/tree-sitter/tree-sitter-scala/pull/408

eed3si9n avatar Aug 05 '24 21:08 eed3si9n

https://www.npmjs.com/package/tree-sitter-scala/v/0.22.1 is out

eed3si9n avatar Aug 08 '24 07:08 eed3si9n