Skip to content

chore: split NPM packages#11318

Merged
jif-oai merged 1 commit into
mainfrom
jif/split-npm-packages
Feb 10, 2026
Merged

chore: split NPM packages#11318
jif-oai merged 1 commit into
mainfrom
jif/split-npm-packages

Conversation

@jif-oai

@jif-oai jif-oai commented Feb 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR changes npm distribution for @openai/codex from one monolithic tarball to a split-package model:

  • @openai/codex becomes a small JS launcher package.
  • Native binaries move into per-platform packages (for example @openai/codex-darwin-arm64, @openai/codex-
    linux-x64-musl, etc.).
  • The root package uses optionalDependencies so npm installs only the matching platform package.

Why

Our current publish uploads a single large tarball (~206.5 MB, ~504.7 MB unpacked), which now fails in
release CI with:

Splitting by platform keeps each publish payload below registry limits and follows established native-CLI
npm patterns.

Behavior/Compatibility

  • npx @openai/codex and codex CLI UX stay the same.
  • No runtime binary download is required.
  • Unsupported platform/arch still returns a clear error.

Release Workflow Changes

  • Build and pack platform-specific npm packages.
  • Publish root package + platform packages under the same version/tag (latest / alpha).
  • Keep trusted publishing/provenance flow unchanged.

@jif-oai

jif-oai commented Feb 10, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6b4e2bdd8d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-cli/scripts/build_npm_package.py
@jif-oai jif-oai merged commit c19969c into main Feb 10, 2026
31 checks passed
@jif-oai jif-oai deleted the jif/split-npm-packages branch February 10, 2026 14:49
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant