Skip to content

Commit

Permalink
Add WASM build target for tree-sitter-fysh
Browse files Browse the repository at this point in the history
  • Loading branch information
cbebe committed Sep 29, 2024
1 parent f61df10 commit ba17fba
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 21 additions & 1 deletion pkg/tree-sitter-fysh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,25 @@
"install": "node-gyp-build",
"prebuildify": "prebuildify --napi --strip"
},
"nx": {}
"nx": {
"targets": {
"build": {
"inputs": [
"{projectRoot}/grammar.js"
],
"outputs": [
"{projectRoot}/build/tree_sitter_fysh.wasm"
],
"executor": "nx:run-commands",
"options": {
"inputs": [
"ignore"
],
"cwd": "{projectRoot}",
"command": "tree-sitter build --wasm -o build/tree_sitter_fysh.wasm"
},
"cache": true
}
}
}
}
4 changes: 3 additions & 1 deletion pkg/vscode-fysh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,7 @@
"mocha": "^10.3.0",
"typescript": "^5.3.3"
},
"nx": {}
"nx": {
"implicitDependencies": ["tree-sitter-fysh"]
}
}

0 comments on commit ba17fba

Please sign in to comment.