Skip to content

Commit

Permalink
feat: simplify option names
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Nov 9, 2018
1 parent 520d979 commit 03b056a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions bin/dev-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,4 @@ if (!supportedCommands.has(command)) {
process.exit(1);
}

require("../lib/private/cli")(command, packageName, {
gitPull: !argv["no-pull"],
gitPush: argv.push
});
require("../lib/private/cli")(command, packageName, { pull: !argv["no-pull"], push: argv.push });
2 changes: 1 addition & 1 deletion lib/setup-repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const isObject = require("es5-ext/object/is-object")
module.exports = async (path, repoUrl, options = {}) => {
if (!isObject(options)) options = {};
if (await isDirectory(path)) {
const tryPull = options.gitPull, tryPush = options.gitPush;
const tryPull = options.pull, tryPush = options.push;

if (!tryPull && !tryPush) return false;

Expand Down

0 comments on commit 03b056a

Please sign in to comment.