Skip to content

Commit 6102666

Browse files
Coerce ignoreScripts to a Boolean
1 parent 5ab06ff commit 6102666

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/normalize-options.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export async function normalizeOptions(raw: VersionBumpOptions): Promise<Normali
6868
let all = Boolean(raw.all);
6969
let noVerify = Boolean(raw.noVerify);
7070
let cwd = raw.cwd || process.cwd();
71+
let ignoreScripts = Boolean(raw.ignoreScripts);
7172

7273
let release: Release;
7374
if (!raw.release || raw.release === "prompt") {
@@ -132,8 +133,6 @@ export async function normalizeOptions(raw: VersionBumpOptions): Promise<Normali
132133
throw new Error("Cannot prompt for the version number because input or output has been disabled.");
133134
}
134135

135-
let ignoreScripts = raw.ignoreScripts as boolean;
136-
137136
return { release, commit, tag, push, files, cwd, interface: ui, ignoreScripts };
138137
}
139138

0 commit comments

Comments
 (0)