Skip to content

Publish workspace ranges as real versions - #7

Merged
rajat1saxena merged 3 commits into
mainfrom
fix-billing-peer-range
Oct 9, 2026
Merged

rajat1saxena merged 3 commits into
mainfrom
fix-billing-peer-range

Conversation

@rajat1saxena

Copy link
Copy Markdown
Member

Problem

@codelitdev/platform@0.4.0 was published with its optional @codelitdev/billing peer set to workspace:*. changeset publish runs npm publish, which copies workspace: ranges unchanged, so with npm:

npm install @codelitdev/platform@0.4.0 @codelitdev/billing@0.4.0
npm error code EUNSUPPORTEDPROTOCOL
npm error Unsupported URL Type "workspace:": workspace:*

Bun installs it because it ignores the optional peer, and bun pm pack rewrites workspace: ranges, which is why packed-tarball testing missed it.

Changes

  • Peer range: declare the billing peer of platform as >=0.4.0, as mcp-server-kit and platform-conformance already do for their platform peer. A patch changeset releases 0.4.1.
  • Release safeguard: scripts/resolve-workspace-ranges.mjs runs in release before changeset publish. It rewrites any remaining workspace: ranges in public packages to real versions on CI's checkout. Today that only affects devDependencies. Workspace patterns it can't expand (anything other than literal folder names and *) make it fail instead of skipping packages.
  • Lockfile: bun.lock now records the 0.4.0 package versions. The release commit didn't update it.

Testing

  • format:check, verify and template:smoke pass.
  • I ran the script on a copy of the manifests:
    • All public workspace:* ranges were rewritten, and the private examples were left alone.
    • The examples/*/apps/* pattern was expanded correctly.
    • The **, ? and @(a|b) patterns threw an error.

Rajat added 2 commits October 9, 2026 09:03
0.4.0 shipped the optional @codelitdev/billing peer as workspace:*,
which npm refuses to install. Declare it as >=0.4.0 like the other
internal peers. Also syncs bun.lock with the 0.4.0 package versions.
changeset publish runs npm publish, which copies workspace: ranges into
the published package.json unchanged. Rewrite them to real versions on
CI's checkout first. Workspace patterns the script cannot expand throw
instead of skipping packages.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T03:55:46.588509Z 3966b68 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: 3966b680dc

ℹ️ 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 scripts/resolve-workspace-ranges.mjs
@rajat1saxena
rajat1saxena merged commit f7307d2 into main Oct 9, 2026
1 check passed
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