question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot publish package dependent on new version of another package in same changeset

See original GitHub issue

Affected 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:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chronicIntrovertcommented, Aug 30, 2022

@imthinhvu what is your recipe for publishing packages in topological order with Turborepo? I’d love to borrow that.

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 does turbo run build && changeset publish

1reaction
Andaristcommented, Aug 22, 2022

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 call changeset publish.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found