Skip to content

Commit 7579fd0

Browse files
authored
Merge pull request #181 from tree-sitter/mj-no-bindings
Don't generate node and rust bindings in subfolders tsx/ and typescript/
2 parents 83816f5 + 20ab834 commit 7579fd0

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,12 @@ examples/desktop
1111
examples/redux
1212
examples/vscode
1313
log.html
14+
15+
# These files would be generated by 'tree-sitter generate' with the default
16+
# settings. We don't want them because there's already a copy at the root.
17+
/tsx/Cargo.toml
18+
/tsx/binding.gyp
19+
/tsx/bindings
20+
/typescript/Cargo.toml
21+
/typescript/binding.gyp
22+
/typescript/bindings

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
},
1919
"main": "./bindings/node",
2020
"devDependencies": {
21-
"tree-sitter-cli": "^0.19.1",
21+
"tree-sitter-cli": "^0.19.3",
2222
"tree-sitter-javascript": "github:tree-sitter/tree-sitter-javascript#2c5b138"
2323
},
2424
"scripts": {
2525
"build": "npm run build-typescript && npm run build-tsx",
26-
"build-typescript": "cd typescript && tree-sitter generate",
27-
"build-tsx": "cd tsx && tree-sitter generate",
26+
"build-typescript": "cd typescript && tree-sitter generate --no-bindings",
27+
"build-tsx": "cd tsx && tree-sitter generate --no-bindings",
2828
"test-load": "node -e \"console.log(require('./typescript').name, require('./tsx').name)\"",
2929
"test": "npm run test-typescript && npm run test-tsx && npm run test-load && script/parse-examples",
3030
"test-typescript": "cd typescript && tree-sitter test",

0 commit comments

Comments
 (0)