GitNexus/gitnexus/scripts
abhigyanpatwari 5308600c22 fix(swift): fix install path for tree-sitter-swift
Move tree-sitter-swift to optionalDependencies so npm doesn't abort
when its native build fails. The postinstall script now handles the
case where npm removes the package after a failed build by
re-installing with --ignore-scripts, then patching and rebuilding.

Also fixes JSON.parse crash on binding.gyp trailing commas and uses
createRequire for conditional imports in ESM context.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 16:00:18 +05:30
..
patch-tree-sitter-swift.cjs fix(swift): fix install path for tree-sitter-swift 2026-02-28 16:00:18 +05:30