Skip to content

publish summary reports the wrong version if it differs in publishConfig.directory #11239

@Janpot

Description

@Janpot

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

10.32.1

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

  • Have a package which has publishConfig.directory set.
  • The version in this publish directory differs from the main package.json (./package.json[version] !== ./build/package.json[version])
  • publish with pnpm publish --report-summary

Describe the Bug

the summary file contains versions that come from ./package.json[version], which are not the actually published versions.

Expected Behavior

the summary file contains versions that come from ./build/package.json[version], which are the actually published versions.

Which Node.js version are you using?

v24.11.1

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions