Skip to content

Commit 0216b29

Browse files
committed
fix: also build on scanner.c change
1 parent 45f32b6 commit 0216b29

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: .changeset/fair-tables-confess.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"treeground": patch
3+
---
4+
5+
fix: also build on scanner.c change

Diff for: src/websocket.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export default partyHandler({
4545
watcher.on("change", (filePath) => {
4646
for (const folder of grammars) {
4747
if (filePath.startsWith(folder)) {
48-
if (path.basename(filePath) === "grammar.js") {
48+
const fileName = path.basename(filePath);
49+
if (fileName === "grammar.js" || fileName === "scanner.c") {
4950
clearTimeout(builds[folder]);
5051
builds[folder] = setTimeout(() => {
5152
generateNbuildWasm(folder, party)

0 commit comments

Comments
 (0)