Skip to content

fix: sync json output of pack and publish#9247

Merged
wraithgar merged 1 commit intolatestfrom
gar/pack-json
Apr 16, 2026
Merged

fix: sync json output of pack and publish#9247
wraithgar merged 1 commit intolatestfrom
gar/pack-json

Conversation

@wraithgar
Copy link
Copy Markdown
Member

@wraithgar wraithgar commented Apr 16, 2026

BREAKING CHANGE: the --json output of npm pack and npm publish have changed. They are now always consistent, and in the same format.

Previously, npm pack would output an array of entries and npm publish an object. The npm publish object also changed forms depending on if workspaces were being published.

Now, the output is always an object with the package name as the top level index.

fixes npm/statusboard#1073

BREAKING CHANGE: the --json output of `npm pack` and `npm publish` have changed.  They are now always consistent, and in the same format.

Previously, `npm pack` would output an array of entries and `npm publish` an object.  The `npm publish` object also changed forms depending on if workspaces were also being published.

Now, the output is always an object with the package name as the top level index.
@wraithgar wraithgar requested a review from a team as a code owner April 16, 2026 18:16
@wraithgar wraithgar merged commit 2e9b26e into latest Apr 16, 2026
22 checks passed
@wraithgar wraithgar deleted the gar/pack-json branch April 16, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make pack --json return an object like publish --json instead of an array

2 participants