mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-19 13:21:46 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user