Skip to content

Commit f17ed76

Browse files
committed
Updated utility usage of parse-cmd-args.
1 parent acd3b0b commit f17ed76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/version.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { inc, parse } from 'semver';
88

99
import parseCmdArgs from 'parse-cmd-args';
1010

11-
const { input } = parseCmdArgs(null, {
11+
const { inputs } = parseCmdArgs(null, {
1212
requireUserInput: true
1313
});
1414

@@ -28,7 +28,7 @@ const loadAndParsePackageFile = async path => {
2828

2929
const { prerelease } = parse(pkg.version);
3030

31-
const nextVersion = inc(pkg.version, input, prerelease[0]);
31+
const nextVersion = inc(pkg.version, inputs[0], prerelease[0]);
3232

3333
await writeFile(
3434
join(workspace, './package.json'),

0 commit comments

Comments
 (0)