Skip to content

feat(npm): add configurable npm-shrinkwrap generation - #2293

Closed
stewartadam wants to merge 2 commits into
axodotdev:mainfrom
stewartadam:feat/configurable-shrinkwrap
Closed

stewartadam wants to merge 2 commits into
axodotdev:mainfrom
stewartadam:feat/configurable-shrinkwrap

Conversation

@stewartadam

@stewartadam stewartadam commented Feb 17, 2026 •

Copy link
Copy Markdown

Fixes #2286.

Adds a configurable option to include a npm-shrinkwrap.json in package distributions.

Given discussion in npm/cli#8938 and its potential impact on package consumers, I chose to default the new option to false to make shrinkwrap behavior opt-in, but this is a breaking change for existing users of cargo-dist. Happy to flip that to true if opt-out is preferred instead.

Documentation updated and assumes the option will be made available in release version v0.31.

Note: this PR was created with the help of AI (Codex/5.3/High).

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.

Option to disable generation of npm-shrinkwrap.json

1 participant