Skip to content

Commit 4450299

Browse files
fix: change to odd version numbers
1 parent 84cccd8 commit 4450299

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/client/prepublish.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ for (const key of [
1515
}
1616

1717
const majorVersion = parseInt(process.env.NEW_VERSION.split('.')[0], 10);
18-
if (majorVersion % 2 !== 0) {
18+
if (majorVersion % 2 === 0) {
1919
console.error(
20-
'The client can only be published on even major version numbers'
20+
'The client can only be published on odd major version numbers'
2121
);
2222
process.exit(1);
2323
}

0 commit comments

Comments
 (0)