Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ Instructions for adding new parser wasms (WIP):
1. Bump minor version in `package.json`

1. Run `pnpm install --ignore-scripts` to update pnpm lock file
1. Run `pnpm run build` to test that the new wasm is built correctly

- If a build failure of some sort occurs, you will need to utilize the special build options in `build.ts`, specifically in the `processParser` function. If you can't figure it out, leave the PR as a draft and ask for help.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cursorless/tree-sitter-wasms",
"version": "0.6.0",
"version": "0.7.0",
"description": "Prebuilt WASM binaries for tree-sitter's language parsers.",
"packageManager": "pnpm@10.0.0",
"main": "bindings/node",
Expand Down Expand Up @@ -65,6 +65,7 @@
"tree-sitter-typescript": "github:tree-sitter/tree-sitter-typescript#4ad3010c91d700026d036b5230e2d99ba94ae8a4",
"tree-sitter-xml": "github:tree-sitter-grammars/tree-sitter-xml#648183d86f6f8ffb240ea11b4c6873f6f45d8b67",
"tree-sitter-yaml": "github:tree-sitter-grammars/tree-sitter-yaml#7b03feefd36b5f155465ca736c6304aca983b267",
"tree-sitter-zig": "github:tree-sitter/zig-tree-sitter#a53dac49d66562006e84dd11211b7ae40db68263",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you picked up the wrong library. That's the tree-sitter bindings if you want to use tree-sitter in zig, eg if you want to parse typescript from your zig program. I think the correct library is https://github.com/tree-sitter-grammars/tree-sitter-zig

"tree-sitter": "^0.21.1",
"ts-node": "^10.9.2",
"typescript": "^5.7.3"
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.