Skip to content

Commit 7dec0d1

Browse files
r0qscameel
andauthored
Update update
Co-authored-by: Kamil Śliwak <[email protected]>
1 parent 1ce8e1b commit 7dec0d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fs.readdir(path.join(__dirname, '/bin'), function (err, files) {
2424

2525
// workaround for pre-0.4.0, where prereleases didn't bump the version
2626
// NOTE: the text must be lexically after 'nightly'
27-
if (semver.major(build.version) === 0 && semver.minor(build.version) < 4) {
27+
if (semver.lt(build.version, '0.4.0')) {
2828
version += '-workaround'
2929
}
3030

0 commit comments

Comments
 (0)