Skip to content

feat!: add support for pnpm and drop cli-style dependencies - #11

Merged
kabaros merged 4 commits into
mainfrom
pnpm-no-cli-style
Sep 21, 2026
Merged

kabaros merged 4 commits into
mainfrom
pnpm-no-cli-style

Conversation

@kabaros

@kabaros kabaros commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

This contains:

  • changes in pnpm branch to support workflows with pnpm
  • changes from pnpm-no-cli-style which drops the dependency of the workflows on @dhi2/cli-style

BREAKING CHANGE: The previous v1 version works with yarn 1 . Apps have to be bumped to use pnpm and drop cli-style before using this branch. These changes can be automated using the modernise-apps skill

@kabaros kabaros changed the title feat!: add support for pnpm dropping cli-style feat!: add support for pnpm and drop cli-style dependencies Sep 18, 2026

@KaiVandivier KaiVandivier left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Got one suggestion --

Comment thread .github/workflows/lint-pr-title.yml Outdated
- run: echo "${{ github.event.pull_request.title }}" | npx commitlint --config ${{ steps.commitlint.outputs.CONFIG_PATH }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: echo "${{ github.event.pull_request.title }}" | pnpx commitlint@12 --config commitlint.config.mjs

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip from ClaudeAI: a PR title containing something like "; curl … # would run as a command here -- the usual fix is to pass the title through an environment variable:

- run: echo "$PR_TITLE" | pnpx commitlint@12 --config commitlint.config.mjs
  env:
    PR_TITLE: ${{ github.event.pull_request.title }}

kabaros and others added 4 commits September 21, 2026 14:24
…title

Based on the pnpm branch. lint.yml now runs the consuming app's own `pnpm
lint` script instead of `pnpm d2-style check`, and lint-commits.yml /
lint-pr-title.yml point commitlint straight at the app's own
commitlint.config.mjs instead of resolving the config via
require('@dhis2/cli-style').config.commitlint -- which breaks for any app
that has migrated off cli-style onto the shared @dhis2/config-* packages.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@kabaros
kabaros merged commit 1736f8d into main Sep 21, 2026
@kabaros
kabaros deleted the pnpm-no-cli-style branch September 21, 2026 14:09
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.0.0 🎉

The release is available on GitHub release

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.

2 participants