Files
goose-highlighter/scripts/semantic-prepare.js
2025-06-23 15:58:24 +03:00

12 lines
444 B
JavaScript

const fs = require("fs");
const path = require("path");
module.exports = async ({ nextRelease }) => {
const manifestPath = path.resolve(__dirname, "../manifest.json");
const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
manifest.version = nextRelease.version;
fs.writeFileSync(manifestPath, JSON.stringify(manifest, null, 2));
console.log(`✅ Updated manifest.json to version ${nextRelease.version}`);
};