Files
goose-highlighter/scripts/update-manifest-version.js
2025-06-23 16:12:21 +03:00

13 lines
378 B
JavaScript

const fs = require("fs");
const version = process.argv[2];
if (!version) {
console.error("❌ No version passed");
process.exit(1);
}
const manifest = JSON.parse(fs.readFileSync("manifest.json", "utf-8"));
manifest.version = version;
fs.writeFileSync("manifest.json", JSON.stringify(manifest, null, 2));
console.log(`✅ Updated manifest.json to version ${version}`);