Skip to content

Keep npm out of the workspace when publishing - #12

Merged
jwaldrip merged 1 commit into
mainfrom
ci-publish-noworkspaces
Aug 7, 2026
Merged

Keep npm out of the workspace when publishing#12
jwaldrip merged 1 commit into
mainfrom
ci-publish-noworkspaces

Conversation

@jwaldrip

@jwaldrip jwaldrip commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Third dry run failed with EUNSUPPORTEDPROTOCOL again, in the same step, after the reorder. The reorder wasn't wrong, it was insufficient.

Any npm command run inside packages/relic-mcp walks up to the workspace root and resolves the sibling packages, and those still carry bun's workspace:*. Stripping this package's own manifest never had a chance, because the manifests npm chokes on belong to @relic/format, @relic/server, and @relic/viewer.

Two changes:

  • npm version is replaced by a direct JSON edit, which sets the version and drops devDependencies in one pass and resolves nothing.
  • Every remaining npm invocation carries --no-workspaces, so pack and publish stop climbing out of the package they were pointed at.

🤖 Generated with Claude Code

Third dry run failed with EUNSUPPORTEDPROTOCOL again, in the same place,
after the reorder. The reorder was not wrong, it was insufficient.

Any npm command run inside packages/relic-mcp walks up to the workspace
root and resolves the sibling packages, and those still carry bun's
`workspace:*`. Stripping this package's own manifest never had a chance,
because the manifests npm chokes on belong to @relic/format, @relic/
server, and @relic/viewer.

Two changes. `npm version` is replaced by a direct JSON edit, which sets
the version and drops devDependencies in one pass and resolves nothing.
And every remaining npm invocation carries --no-workspaces, so pack and
publish stop climbing out of the package they were pointed at.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@jwaldrip
jwaldrip merged commit 958e5ee into main Aug 7, 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