Skip to content

Commit 366a89d

Browse files
committed
Update wasm parser update documentation
1 parent 82836c2 commit 366a89d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

server/src/parser.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ export async function initializeParser(): Promise<Parser> {
77
/**
88
* See https://github.com/tree-sitter/tree-sitter/tree/master/lib/binding_web#generate-wasm-language-files
99
*
10-
* To compile:
11-
* yarn add --dev tree-sitter-cli
12-
* npx tree-sitter build-wasm node_modules/tree-sitter-bash
10+
* To compile and use a new tree-sitter-bash version:
11+
* cd server
12+
* yarn add web-tree-sitter
13+
* yarn add --dev tree-sitter-bash tree-sitter-cli
14+
* npx tree-sitter build-wasm node_modules/tree-sitter-bash
15+
*
16+
* Note down the versions (from the package.json) below and then run
17+
* yarn remove tree-sitter-bash tree-sitter-cli
1318
*
1419
* The current files was compiled with:
1520
* "tree-sitter-bash": "^0.16.0",

0 commit comments

Comments
 (0)