fix: npm global install bin wrapper and postinstall message#14
Merged
simaonogueira101 merged 1 commit intomainfrom Feb 11, 2026
Merged
fix: npm global install bin wrapper and postinstall message#14simaonogueira101 merged 1 commit intomainfrom
simaonogueira101 merged 1 commit intomainfrom
Conversation
The `bin` field pointed directly at `src/index.ts` (a TypeScript file), so npm's generated wrapper would invoke `node` instead of `bun`, failing on every global install. Replace it with a Node.js-compatible wrapper (`bin/cli.mjs`) that checks for `bun` and spawns it transparently. Add a `postinstall` script that prints getting-started instructions and warns when the required Bun runtime is missing. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
talent-agentnot working afternpm install -g: thebinfield pointed tosrc/index.ts(TypeScript), so npm's wrapper invokednodeinstead ofbun. Replaced withbin/cli.mjs, a Node.js-compatible wrapper that checks forbunand spawns it with full stdio/signal forwarding.login, search example,--help) and a warning if Bun is not found.Test plan
bun run test)node bin/cli.mjs --versionprints versionnode bin/cli.mjs --helpprints helpnode scripts/postinstall.jsprints welcome messageMade with Cursor