Skip to content

fix(cli/postinstall): rerun bootstrap when scripts skipped (#369)#388

Merged
zemaj merged 1 commit intomainfrom
issue-369-postinstall
Nov 3, 2025
Merged

fix(cli/postinstall): rerun bootstrap when scripts skipped (#369)#388
zemaj merged 1 commit intomainfrom
issue-369-postinstall

Conversation

@zemaj
Copy link

@zemaj zemaj commented Oct 30, 2025

Summary

  • export the postinstall bootstrap as runPostinstall and reuse it when the CLI notices missing binaries
  • retry runtime bootstrap from coder.js when lifecycle scripts are skipped, while suppressing global alias churn
  • add a dry-run unit test so we can exercise the new entry point without fetching real artifacts

Testing

  • node --test codex-cli/test/postinstall.test.js
  • ./build-fast.sh

Closes #369.

@zemaj zemaj merged commit 9932f49 into main Nov 3, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

postinstall.js doesn't run automatically on npm install -g; binary bootstrap fails

1 participant