Skip to content

Commit 7402279

Browse files
committed
package.json: Add format and format-check scripts
I believe this were accidentally removed when I regenerated bindings using a newer tree-sitter CLI.
1 parent 274e27e commit 7402279

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"install": "node-gyp-build",
99
"prestart": "tree-sitter build --wasm",
1010
"start": "tree-sitter playground",
11-
"test": "node --test bindings/node/*_test.js"
11+
"test": "node --test bindings/node/*_test.js",
12+
"format": "prettier --trailing-comma es5 --write grammar.js",
13+
"format-check": "prettier --trailing-comma es5 --check grammar.js"
1214
},
1315
"repository": {
1416
"type": "git",

0 commit comments

Comments
 (0)