Skip to content

Commit 5b72618

Browse files
committed
Fix --no-push argument 🕷
1 parent 3ffaf8c commit 5b72618

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = (api, projectOptions) => {
5151
add: Boolean(args.a || args.add || pluginOptions.add),
5252
only: args.v || args.remove || pluginOptions.only || '.',
5353
remote: args.o || args.remote || pluginOptions.remote || 'origin',
54-
push: !Boolean(args.n || args['no-push'] || (pluginOptions.hasOwnProperty('push') ? !pluginOptions.push : false)),
54+
push: !Boolean(args.n || (args.hasOwnProperty('push') ? !args.push : false) || (pluginOptions.hasOwnProperty('push') ? !pluginOptions.push : false)),
5555
depth: args.p || args.depth || pluginOptions.depth || 1,
5656
user: user || pluginOptions.user,
5757
};

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-cli-plugin-gh-pages",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "vue-cli 3 plugin to deploy to GitHub pages",
55
"author": "Jasper Zonneveld <[email protected]>",
66
"repository": {

0 commit comments

Comments
 (0)