Skip to content

Commit

Permalink
feat(version): add --allow-updating-peer-deps, closes #333
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Oct 5, 2022
1 parent cd0463b commit fc3a4d4
Show file tree
Hide file tree
Showing 18 changed files with 457 additions and 169 deletions.
3 changes: 3 additions & 0 deletions __fixtures__/lockfile-pnpm/packages/package-2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"version": "2.3.4",
"dependencies": {
"@my-workspace/package-1": "workspace:^2.3.4"
},
"peerDependencies": {
"@my-workspace/package-1": "workspace:^2.3.4"
}
}
3 changes: 3 additions & 0 deletions __fixtures__/lockfile-pnpm/packages/package-4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"dependencies": {
"@my-workspace/package-1": "workspace:2.3.4",
"@my-workspace/package-2": "workspace:~"
},
"peerDependencies": {
"@my-workspace/package-1": "workspace:>=2.0.0"
}
}
10 changes: 10 additions & 0 deletions packages/cli/schemas/lerna-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,9 @@
"allowBranch": {
"$ref": "#/$defs/commandOptions/version/allowBranch"
},
"allowUpdatingPeerDeps": {
"$ref": "#/$defs/commandOptions/version/allowUpdatingPeerDeps"
},
"amend": {
"$ref": "#/$defs/commandOptions/version/amend"
},
Expand Down Expand Up @@ -865,6 +868,9 @@
"allowBranch": {
"$ref": "#/$defs/commandOptions/version/allowBranch"
},
"allowUpdatingPeerDeps": {
"$ref": "#/$defs/commandOptions/version/allowUpdatingPeerDeps"
},
"amend": {
"$ref": "#/$defs/commandOptions/version/amend"
},
Expand Down Expand Up @@ -1259,6 +1265,10 @@
],
"description": "For `lerna version`, the branches to allow versioning from."
},
"allowUpdatingPeerDeps": {
"type": "boolean",
"description": "For `lerna version`, allow updating peer dependencies versions. Note that `peerDependencies` with semver range (ie `>=2.0.0`) will never be bumped even with this flag enabled."
},
"amend": {
"type": "boolean",
"description": "During `lerna version`, when true, amend the existing commit instead of generating a new one."
Expand Down

0 comments on commit fc3a4d4

Please sign in to comment.