Skip to content

Conversation

@kabaros
Copy link
Contributor

@kabaros kabaros commented Nov 4, 2025

This fixes a bug that @jenniferarnesen noticed on analytics library where running the command npx @dhis2/cli-utils release --publish npm fails to publish to npm.

This is caused by the update to the release command in this PR to support pnpm, where I made a wrong assumption - see notes on the PR - that the release command is only used internally in the CLI project itself, hence it didn't need to be kept backwards compatible. This missed this pattern where some projects are still using it through npx directly.

The PR updates the command so that it is backwards compatible, and works with both yarn and pnpm projects.

It was tested on multi-calendar project: Here you can see it raising the same error, and here it publishes successfully when pointed to the version on this alpha branch.

pnpm also continues to work, as the CLI project itself is using it (and published to alpha without issues).

(the PR also removed the link to cli-create project as we deleted it)

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 5, 2025

@KaiVandivier KaiVandivier merged commit 21d988d into master Nov 5, 2025
7 checks passed
@KaiVandivier KaiVandivier deleted the alpha branch November 5, 2025 09:18
dhis2-bot added a commit that referenced this pull request Nov 5, 2025
## [5.2.1](v5.2.0...v5.2.1) (2025-11-05)

### Bug Fixes

* run publish pipeline ([#633](#633)) ([5abdd1a](5abdd1a))
* update d2 utils release to support both pnpm and yarn ([#632](#632)) ([21d988d](21d988d))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 5.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants