Cannot publish package dependent on new version of another package in same changeset
See original GitHub issueAffected Packages
https://github.com/BitskiCo/bitski-js
- packages/browser
- packages/provider
Problem
When going to publish a changeset, my browser
package fails on npm install
because it depends on the latest version of my provider
package which is part of the same changeset. Can I somehow specify an order in which the package gets published, or are there any other native ways to get this playing nicely?
Proposed solution
???
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Weird publish error while publishing a new version to npm ...
Maybe I'm missing something - but it seems like changesets looks for that package in that specific version, and it can't find it...
Read more >You cannot publish over the previously published versions
This helped me: Open Command Prompt and do the following steps. npm version <new_Version_No>; npm publish.
Read more >Change Sets Best Practices
Deploy all dependent components: Make sure each outbound change set contains all interdependent components that don't exist in the target org.
Read more >Release artifacts and artifact sources - Azure Pipelines
This article lists and explains the different artifacts sources and how to ... You can choose to pick up the latest version of...
Read more >Getting Started | Liquibase Best Practices
Simply put – a changelog contains an ordered list of changesets, and a changeset contains a change. You and your team can specify...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There’s nothing magical we’re doing - turborepo should support topological build: https://turborepo.org/docs/core-concepts/pipelines#topological-dependency
What we’ve added is a
release
npm script that doesturbo run build && changeset publish
We could accept a PR that would publish packages in a topological order. If you don’t intend to prepare a PR for this then I would recommend you to remove your
prepare
scripts from packages and just run a single monorepo-wide build before you callchangeset publish
.