Skip to content

Commit 258e64f

Browse files
committed
AG-46655 Replace sane with chokidar for grammar file watching
Squashed commit of the following: commit 182d5ca Author: scripthunter7 <d.tota@adguard.com> Date: Thu Sep 25 18:03:27 2025 +0200 replace sane with chokidar for grammar file watching
1 parent a5f81b6 commit 258e64f

File tree

2 files changed

+202
-81
lines changed

2 files changed

+202
-81
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"watch:agtree": "pnpm esbuild:agtree --sourcemap --watch",
117117
"watch:ecss-tree": "pnpm esbuild:ecss-tree --sourcemap --watch",
118118
"watch:client": "pnpm esbuild:client --sourcemap --watch",
119-
"watch:grammar": "sane \"tsx tools/grammar-builder.ts\" --glob=syntaxes/adblock.yaml-tmlanguage",
119+
"watch:grammar": "chokidar \"syntaxes/adblock.yaml-tmlanguage\" -c \"tsx tools/grammar-builder.ts\" --silent --initial",
120120
"watch:server": "pnpm esbuild:server --sourcemap --watch"
121121
},
122122
"devDependencies": {
@@ -129,6 +129,7 @@
129129
"@typescript-eslint/eslint-plugin": "^6.3.0",
130130
"@typescript-eslint/parser": "^6.3.0",
131131
"@vscode/vsce": "^2.22.0",
132+
"chokidar-cli": "^3.0.0",
132133
"commander": "^11.1.0",
133134
"concurrently": "^8.0.1",
134135
"esbuild": "^0.17.17",
@@ -153,7 +154,6 @@
153154
"remark-parse": "^11.0.0",
154155
"remark-stringify": "^11.0.0",
155156
"rimraf": "^4.1.2",
156-
"sane": "^5.0.1",
157157
"ts-jest": "^29.1.0",
158158
"ts-node": "^10.9.1",
159159
"tsx": "^4.7.0",

0 commit comments

Comments
 (0)