Skip to content

Commit 0a733b8

Browse files
gyoshevtsvetomir
authored andcommitted
refactor: rename variable
`pub` may refer to 'public' or 'publish' in this context, that clears it up.
1 parent a63a842 commit 0a733b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/semantic-prerelease.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const branch = process.env.TRAVIS_BRANCH || process.env.GIT_LOCAL_BRANCH;
77
const branchTags = config.release && config.release.branchTags;
88
const tag = branchTags && branchTags[branch];
99
const dryRun = process.argv.find(arg => /^(--dry-run|-n)$/.test(arg));
10-
const pub = process.argv.find(arg => /^(--public)$/.test(arg));
10+
const public = process.argv.find(arg => /^(--public)$/.test(arg));
1111
const validate = process.argv.find(arg => /^(--validate|-v)$/.test(arg));
1212
const command = [ 'npm', 'publish' ];
1313

@@ -20,7 +20,7 @@ if (tag) {
2020
command.push('--tag', tag);
2121
}
2222

23-
if (pub) {
23+
if (public) {
2424
command.push('--access=public');
2525
}
2626

0 commit comments

Comments
 (0)