fix(ci): make portless optional for windows installs

This commit is contained in:
plebeius
2026-03-04 17:48:31 +08:00
parent 0207fad8ad
commit e484f96e3a
3 changed files with 48 additions and 3 deletions
+9 -1
View File
@@ -28,4 +28,12 @@ If uncertain, ask the developer before adding an entry.
## Entries
No confirmed surprises logged yet.
### Portless breaks Windows installs
- **Date:** 2026-03-04
- **Observed by:** Codex
- **Context:** GitHub Actions `Test Windows` dependency install on `windows-2022`
- **What was surprising:** `portless@0.5.2` is a local dev-only tool, but keeping it in `devDependencies` makes `yarn install` fail on Windows because the package declares `win32` unsupported.
- **Impact:** Windows CI fails before build steps run, even though the app does not need `portless` there.
- **Mitigation:** Keep `portless` in `optionalDependencies` and make `yarn start` fall back to direct `vite` startup when `portless` is unavailable.
- **Status:** confirmed