Skip to content

Add a "--conservative" flag for "rush generate"#549

Merged
octogonz merged 5 commits into
masterfrom
pgonzal/rush-conservative-generate
Mar 2, 2018
Merged

Add a "--conservative" flag for "rush generate"#549
octogonz merged 5 commits into
masterfrom
pgonzal/rush-conservative-generate

Conversation

@octogonz

@octogonz octogonz commented Mar 2, 2018

Copy link
Copy Markdown
Collaborator

Scenario:

  1. A person adds a new dependency to their project's package.json
  2. This requires them to run rush generate

Normally this also forces an upgrade of all SemVer range dependencies in shrinkwrap.yaml, which frequently requires the person to fix compatibility issues unrelated to their change.

This is unnecessary for repos that already handle these upgrades automatically in a separate branch. This PR introduces a new switch "--conservative" that causes PNPM to upgrade only the minimal set of dependencies required to satisfy your package.json changes.

NOTE: This change requires pnpm-1.35.2 with the fix for pnpm/pnpm#1054

pgonzal added 3 commits March 1, 2018 16:17
… the existing library versions in shrinkwrap.yaml as much as possible. It requires PNPM 1.35.2 with this fix:

pnpm/pnpm#1054
@octogonz octogonz requested review from iclanton and nickpape March 2, 2018 00:23
@octogonz

octogonz commented Mar 2, 2018

Copy link
Copy Markdown
Collaborator Author

@sboyleMS @alinsirbu FYI

@octogonz octogonz merged commit 65749d1 into master Mar 2, 2018
@octogonz octogonz deleted the pgonzal/rush-conservative-generate branch May 2, 2018 04:21
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.

2 participants