Hotfix on 1.5.5. 1.5.5 added the 6 Phase 7 adapters to FIRST_PARTY_ADAPTERS correctly, but the bundled dist/cli.js inlined web-tree-sitter while its companion tree-sitter.wasm runtime artifact was NOT copied to dist/. R-011 evidence (live test against published 1.5.5):
RuntimeError: Aborted(Error: ENOENT: no such file or directory,
open '/Users/.../dist/tree-sitter.wasm')
at abort (cli.js:13114:20)
at Parser.init (cli.js:14585:19)
at loadGrammar (cli.js:14946:3)The bundled web-tree-sitter expects to find its sibling tree-sitter.wasm next to its own code. esbuild bundling inlines the JS but can't move companion wasm assets.
Fixed
- Externalize
web-tree-sitter(and other native-asset deps) from the cli bundle —build:clinow passes--external:web-tree-sitter --external:tweetnacl --external:tar --external:smol-toml --external:vscode-languageserver-protocol. These remaindependenciesin package.json so users get them vianpm installand at runtime the bundle resolves them through normal node_modules. The companiontree-sitter.wasmresolves naturally next to web-tree-sitter's own code.
Verification
- Rebuilt 1.5.6 cli.js loads grammars from
<install>/node_modules/web-tree-sitter/tree-sitter.wasmcorrectly. npx --yes @massu/core@1.5.6 initagainst a Phoenix fixture producesdetected.phoenix:block with extracted conventions.