fix(opencode-plugin): move bundled workspace dep to devDependencies#169
Merged
backnotprop merged 1 commit intobacknotprop:mainfrom Feb 21, 2026
Merged
Conversation
The workspace:* protocol is unresolvable outside the monorepo, causing BunInstallFailedError for npm consumers. Since the build bundles @plannotator/server into dist/index.js rather than externalizing it, the dependency is build-time only and belongs in devDependencies.
Owner
|
Thanks and sorry about that @rcdailey Patch is in |
Contributor
Author
|
No problem, glad I could help. And thank you for the quick turnaround on the merge. Unrelated: I noticed your release workflow only builds binaries and creates GitHub releases but doesn't publish to npm. Is that intentional? Happy to contribute a workflow for automated npm publishing if that'd be useful. |
Owner
|
@rcdailey it's not intentional... just lazy with npm auth stuff. Lmk your thoughts and what you would need. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
@plannotator/opencode@0.8.3is broken for all consumers. Installing it via npm/bun fails withBunInstallFailedErrorbecause the published package.json contains aworkspace:*dependency on@plannotator/server, which is unresolvable outside the monorepo.The regression was introduced in #162 (commit 3a9a38e), which added
"@plannotator/server": "workspace:*"todependencies. Prior versions (0.8.2 and earlier) did not have this dependency and installed correctly.Fix
Move
@plannotator/serverfromdependenciestodevDependencies. This is safe because the build script already bundles it intodist/index.js(only@opencode-ai/pluginis externalized via--external), so consumers never need to resolve it at install time.Verified the full build (
bun run build) still succeeds with this change.