mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-22 14:51:45 +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
|
cache-dependency-path: package-lock.json
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Full install (not workspace-scoped) so @swc/core's platform-specific
|
# npm install (not ci) so npm re-resolves and installs @swc/core's
|
||||||
# native binary is present — server tests transform via unplugin-swc.
|
# platform-specific native binary for the Linux runner — server tests
|
||||||
run: npm ci
|
# 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
|
- name: Build shared
|
||||||
run: npm run build --workspace=shared
|
run: npm run build --workspace=shared
|
||||||
|
|||||||
Reference in New Issue
Block a user