Skip to content

Comments

Prepare chcli for npm publishing#2

Merged
KeKs0r merged 1 commit intomainfrom
KeKs0r/npm-publish-setup
Feb 18, 2026
Merged

Prepare chcli for npm publishing#2
KeKs0r merged 1 commit intomainfrom
KeKs0r/npm-publish-setup

Conversation

@KeKs0r
Copy link
Contributor

@KeKs0r KeKs0r commented Feb 18, 2026

Summary

  • Switch build from compiled binary to JS bundle (--target node --packages external) for cross-runtime compatibility
  • Replace Bun-specific APIs (Bun.file, Bun.stdin) with Node.js equivalents (readFile, async stdin reader)
  • Read version dynamically from package.json instead of hardcoding
  • Remove private: true, add files/bin/description/license/keywords/repository fields
  • Add changeset for initial beta release

Test plan

  • bun run build produces 6.1 KB JS bundle
  • node dist/chcli.js --version works
  • bun dist/chcli.js --version works
  • All 17 unit tests pass
  • Typecheck passes
  • npm pack --dry-run shows clean tarball (3 files, 3.5 KB)

🤖 Generated with Claude Code

- Switch build from compiled binary to JS bundle (--target node --packages external)
- Replace Bun-specific APIs (Bun.file, Bun.stdin) with Node.js equivalents
- Read version dynamically from package.json instead of hardcoding
- Remove private:true, add files/bin/description/license/keywords fields
- Add changeset for initial beta release

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@KeKs0r KeKs0r merged commit 12285f6 into main Feb 18, 2026
1 check failed
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