Fix indentation in sync_version.js for error handling of missing version field

This commit is contained in:
Sudo-Ivan
2026-03-06 01:27:25 -06:00
parent 56d219df61
commit def5c2be56
+2 -2
View File
@@ -15,8 +15,8 @@ const versionPyPath = path.join(root, "meshchatx", "src", "version.py");
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
const version = pkg.version;
if (!version || typeof version !== "string") {
console.error("package.json has no valid 'version' field");
process.exit(1);
console.error("package.json has no valid 'version' field");
process.exit(1);
}
const content = `"""Version string synced from package.json. Do not edit by hand.