Skip to content

fix: include postinstall script in package and add restart hint#16

Merged
simaonogueira101 merged 1 commit intomainfrom
fix/postinstall-files-and-restart-hint
Feb 11, 2026
Merged

fix: include postinstall script in package and add restart hint#16
simaonogueira101 merged 1 commit intomainfrom
fix/postinstall-files-and-restart-hint

Conversation

@simaonogueira101
Copy link
Member

Summary

  • Fix postinstall not running: scripts/postinstall.js was missing from the files array, so npm excluded it from the published tarball. The || true in the script command silently swallowed the error.
  • Add restart hint: Both the postinstall warning and the bin/cli.mjs error now tell users to restart their terminal after installing Bun (the installer only updates shell config, so the current session won't have bun on PATH).

Test plan

  • npm pack --dry-run now includes scripts/postinstall.js
  • All 195 tests pass
  • Postinstall test verifies "restart your terminal" appears in the bun-missing warning

Made with Cursor

The postinstall script was missing from the `files` array so npm never
included it in the published tarball -- the `|| true` silenced the
error. Add `scripts/postinstall.js` to `files`.

Also tell users to restart their terminal after installing Bun, since
the installer only updates shell config files and the current session
won't pick up the new PATH entry.

Co-authored-by: Cursor <cursoragent@cursor.com>
@simaonogueira101 simaonogueira101 merged commit 3f8ebd1 into main Feb 11, 2026
1 check passed
@simaonogueira101 simaonogueira101 deleted the fix/postinstall-files-and-restart-hint branch February 11, 2026 15:22
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.

1 participant