Skip to content

Commit

Permalink
refactor(publish): Allow --git-reset to be configured from lerna.json
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Nov 27, 2018
1 parent 3b98973 commit b199f32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/publish/command.js
Expand Up @@ -60,7 +60,7 @@ exports.builder = yargs => {
"git-reset": {
describe: "Reset the git working tree.\nPass --no-git-reset to disable.",
type: "boolean",
default: true,
defaultDescription: "true",
},
};

Expand Down
2 changes: 1 addition & 1 deletion commands/publish/index.js
Expand Up @@ -160,7 +160,7 @@ class PublishCommand extends Command {
chain = chain.then(() => this.packUpdated());
chain = chain.then(() => this.publishPacked());

if (this.options.gitReset) {
if (this.options.gitReset !== false) {
chain = chain.then(() => this.resetChanges());
}

Expand Down

0 comments on commit b199f32

Please sign in to comment.