Verify latest 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?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
Verify latest 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
publishConfig.directoryset../package.json[version]!==./build/package.json[version])pnpm publish --report-summaryDescribe 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?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response