Skip to content

Commit 0858dd8

Browse files
authored
chore(build): no need to generate tree-sitter wasm as part of build (#4041)
Generating the .wasm for the grammar is only needed when running the tree-sitter playground, otherwise the rust build handles consuming the C files when targeting wasm32-wasi. Skipping this unnecessary work is much faster and removes a pretty big dependency from our core build path (docker, although it's still used in tests) *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
1 parent ca6d5be commit 0858dd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/tree-sitter-wing/turbo.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
"extends": ["//"],
44
"pipeline": {
55
"build:generate": {
6-
"inputs": ["grammar.js", "src/scanner.c"],
6+
"inputs": ["!*.wasm", "*", "grammar.js", "src/scanner.c"],
77
"outputs": ["src/**", "!src/scanner.c", "bindings/**", "binding.gyp"]
88
},
99
"build:wasm": {
1010
"dependsOn": ["build:generate"],
1111
"outputs": ["tree-sitter-wing.wasm"]
1212
},
1313
"compile": {
14-
"dependsOn": ["build:wasm"]
14+
"dependsOn": ["build:generate"],
15+
"inputs": [""]
1516
},
1617
"test": {
1718
"inputs": ["test/**"],

0 commit comments

Comments
 (0)