ci: clean node_modules before bun install for fresh resolution
Some checks failed
CI/CD / lint (push) Successful in 41s
CI/CD / test (push) Successful in 55s
CI/CD / typecheck (push) Successful in 10m53s
CI/CD / build (push) Successful in 1m23s
CI/CD / docker (push) Failing after 23s
CI/CD / publish-rpm (push) Successful in 38s
CI/CD / deploy (push) Has been skipped

bun install on top of pnpm's nested node_modules fails to resolve
workspace transitive deps (Ink, inquirer, etc). Remove node_modules
first so bun creates a proper flat layout from scratch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michal
2026-03-09 05:01:19 +00:00
parent a11ea64c78
commit 50c4e9e7f4

View File

@@ -117,7 +117,8 @@ jobs:
run: |
mkdir -p dist
# bun needs a flat node_modules (pnpm's strict layout breaks resolution)
# No bun.lockb in repo, so --frozen-lockfile is unreliable
# Remove pnpm's nested node_modules first so bun resolves fresh
rm -rf node_modules
bun install
# Stub for optional dep that bun tries to resolve
if [ ! -e node_modules/react-devtools-core ]; then