From 4523ef68144fd284c7b31d43bde3ab6e641fb87c Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 31 May 2026 20:30:00 +0200 Subject: [PATCH] Re-resolve dependencies with npm install in the server CI job for SWC Full 'npm ci' still skipped @swc/core's Linux native binary because the committed lockfile was generated on Windows and lacks the Linux optional-dep install metadata. 'npm install' re-resolves and fetches the platform-matching binary, which the server's unplugin-swc transform needs to load vitest.config.ts. --- .github/workflows/test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eab0346e..763242b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,9 +49,11 @@ jobs: cache-dependency-path: package-lock.json - name: Install dependencies - # Full install (not workspace-scoped) so @swc/core's platform-specific - # native binary is present — server tests transform via unplugin-swc. - run: npm ci + # npm install (not ci) so npm re-resolves and installs @swc/core's + # platform-specific native binary for the Linux runner — server tests + # transform via unplugin-swc, and the committed lockfile omits the + # Linux optional dep that `npm ci` would otherwise need. + run: npm install - name: Build shared run: npm run build --workspace=shared