Elffuss BraidHub

kikocis/continue public

main · 464 BRawPermalink
1// Make sure odd-numbered version isn't published to main release. This will irreversibly cause us to bump the minor version by 2
2const fs = require("fs");
3
4const packageJson = fs.readFileSync("package.json");
5const packageJsonJson = JSON.parse(packageJson);
6const version = packageJsonJson.version;
7const minor = parseInt(version.split(".")[1]);
8if (minor % 2 !== 0) {
9 throw new Error(
10 "Do not publish odd-numbered version to main VS Code release!",
11 );
12}