Skip to content

fix: publish packages with Yarn - #168

Merged
vadimkibana merged 1 commit into
elastic:mainfrom
bartoval:publish_with_yarn_4
Jul 2, 2026
Merged

vadimkibana merged 1 commit into
elastic:mainfrom
bartoval:publish_with_yarn_4

Conversation

@bartoval

@bartoval bartoval commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

I tried to download the v4.7.0 in kibana and I received this error

error Couldn't find package "@elastic/pretty-printer@workspace:^" required by "@elastic/[email protected]" on the "npm" registry.

I found this issue to be similar https://github.com/changesets/changesets/issues/1454 
so internally changeset use npm (probabily also pnpn) but not yarn and  you can't resolve the workspace

I change the way to publish the package using yarn.

Note about --topology
@elastic/esql depends on @elastic/pretty-printer, so it publishes @elastic/pretty-printer first, then @elastic/esql.

I did a test with a local registry (Verdaccio)

@bartoval
bartoval requested a review from a team as a code owner July 1, 2026 08:25
@bartoval bartoval changed the title fix: publish packages with Yarn workspaces fix: publish packages with Yarn Jul 1, 2026
@bartoval bartoval closed this Jul 1, 2026
@vadimkibana vadimkibana reopened this Jul 2, 2026

@vadimkibana vadimkibana 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.

LGTM

@vadimkibana
vadimkibana merged commit 938d42b into elastic:main Jul 2, 2026
3 checks passed
vadimkibana pushed a commit that referenced this pull request Jul 2, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @elastic/[email protected]

### Patch Changes

- [#168](#168)
[`938d42b`](938d42b)
Thanks [@bartoval](https://github.com/bartoval)! - Fix package
publishing through Yarn workspaces.

- Updated dependencies
[[`938d42b`](938d42b)]:
  - @elastic/[email protected]
## @elastic/[email protected]

### Patch Changes

- [#168](#168)
[`938d42b`](938d42b)
Thanks [@bartoval](https://github.com/bartoval)! - Fix package
publishing through Yarn workspaces.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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