File compileGrammarWasm-no-build.patch of Package nodejs-vscode-tree-sitter-wasm
We don't want to pull in tree-sitter-cli (it does not respect optflags), instead build the grammar manually
--- vscode-tree-sitter-wasm-0.0.1/build/compileGrammarWasm.ts.orig
+++ vscode-tree-sitter-wasm-0.0.1/build/compileGrammarWasm.ts
@@ -31,6 +31,7 @@ export async function ensureWasm(grammar
const treeSitterBinPath = path.join(PROJECT_ROOT, 'node_modules', '.bin', 'tree-sitter');
const command = `node ${treeSitterBinPath} build --wasm ${folderPath}`;
console.log(`Executing: ${command}`);
+ return
child_process.execSync(command, {
stdio: 'inherit',
cwd: outputPath,