mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-29 06:32:28 +00:00
tree-sitter-c-sharp ships with `"type": "module"` + `"main": "bindings/node"` (no file extension) and no `"exports"` field. On Node 22, the bare-package ESM import hits the deprecated main-field extension resolution and emits repeated `[DEP0151] DeprecationWarning` lines for every analyze run. Switch both callsites (parser-loader.ts, parse-worker.ts) to the explicit subpath `tree-sitter-c-sharp/bindings/node/index.js`. The explicit path bypasses the deprecated resolution step entirely; types continue to resolve from the colocated `bindings/node/index.d.ts`. Other tree-sitter grammars are CommonJS (no `type: "module"`) so they don't trigger DEP0151 and are left untouched to keep the diff narrow. Reporter pre-tested the same fix locally (#1013). |
||
|---|---|---|
| .. | ||
| cli | ||
| config | ||
| core | ||
| lib | ||
| mcp | ||
| server | ||
| storage | ||
| types | ||