fix: run opencode-ai postinstall script after npm install #24
Reference in New Issue
Block a user
Delete Branch "fix/opencode-postinstall"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
opencode --versionfails during Docker build becauseopencode-ai's postinstall script isn't executed bynpm install -g.Seen in Renovate PR #23 (bumping opencode-ai to 1.17.18): CI run #3953
Fix
Explicitly run the postinstall script after
npm install -g:This ensures
opencode --versionworks regardless of whether the base image's npm configuration ignores scripts.1722e0bfadtobc7d0580acbc7d0580acto9160870ae29160870ae2to247e0cf00b247e0cf00bto85c10f908b85c10f908bto7dc7c4a043