From fecc33b4128f4dc861c4226e4e2a745f44f33c85 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 18 Jun 2026 13:44:44 +0000 Subject: [PATCH 1/2] Initial plan From a5dbafd1b240a2a5c030de263a4b5788aabddda0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 18 Jun 2026 14:04:58 +0000 Subject: [PATCH 2/2] fix: add --legacy-peer-deps to npm ci in publish workflow tree-sitter-swift@0.7.1 requires tree-sitter@^0.22.1 as a peer dependency, but other grammar packages require tree-sitter@^0.21.x, causing ERESOLVE failures in npm ci. Adding --legacy-peer-deps resolves this conflict. --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9cb746a..9b811aa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 24 - - run: npm ci + - run: npm ci --legacy-peer-deps - run: npm run build --if-present - run: npm test @@ -33,5 +33,5 @@ jobs: node-version: '24' registry-url: 'https://registry.npmjs.org/' package-manager-cache: false - - run: npm ci + - run: npm ci --legacy-peer-deps - run: npm publish