Config the following options for version command in lerna.json should work as expected:
noChangelognoGitTagVersionnoPushSome options of the version command in lerna.json do not work.
But work fine with: lerna version --conventional-commits --no-changelog --no-git-tag-version --no-push.
version command as the following lerna.json.lerna version.lerna.json
{
"command": {
"version": {
"conventionalCommits": true,
"noChangelog": true,
"noGitTagVersion": true,
"noPush": true
}
},
"packages": [
"packages/*"
],
"version": "1.0.0"
}
| Executable | Version |
| ---: | :--- |
| lerna --version | v3.13.3 |
| npm --version | v6.4.1|
| yarn --version | - |
| node --version | v10.15.3 |
| OS | Version |
| --- | --- |
| Windows 10 | 10.0.17134 Build 17134 |
Any negated boolean options are configured in lerna.json by passing false, not mutating the key name.
lerna version --conventional-commits --no-changelog --no-git-tag-version --no-push equivalent lerna.json:
{
"command": {
"version": {
"conventionalCommits": true,
- "noChangelog": true,
- "noGitTagVersion": true,
- "noPush": true
+ "changelog": false,
+ "gitTagVersion": false,
+ "push": false
}
},
"packages": [
"packages/*"
],
"version": "1.0.0"
}
Any negated boolean options are configured in lerna.json by passing false, not mutating the key name.
Any documentation for this?
Not as such, I suppose. Sure would be nice, wouldn't it?
Most helpful comment
Any negated boolean options are configured in
lerna.jsonby passingfalse, not mutating the key name.lerna version --conventional-commits --no-changelog --no-git-tag-version --no-pushequivalent lerna.json: