Skip to content

Comments

Npm package#70

Open
abronte wants to merge 2 commits intomainfrom
npm_package
Open

Npm package#70
abronte wants to merge 2 commits intomainfrom
npm_package

Conversation

@abronte
Copy link
Contributor

@abronte abronte commented Feb 23, 2026

This makes the CLI binary npm installable. I tried to mock this after how codex packages it's rust binary for npm.

There is a single package that has each platform type as an optional dependency.

description: "Tag to publish from (for example: v1.7.2)"
required: true
type: string

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need a separate npm package for each platform? We could also avoid rebuilding the binaries since we already have a GitHub Action that handles that. Instead, once that workflow completes, we can package all platform-specific binaries into a single npm package and just a have a small logic to resolve the binary path relative to the current js module

Suggested change
workflow_run:
workflows: ["Native Binary Release"]
types:
- completed

Copy link
Member

@Ibrahimrahhal Ibrahimrahhal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment but we can merge it and refactor later if we need it quickly

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.

2 participants