mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-09 04:29:09 +03:00
feat: semantic-prepare.js
This commit is contained in:
12
scripts/semantic-prepare.js
Normal file
12
scripts/semantic-prepare.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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}`);
|
||||
};
|
||||
Reference in New Issue
Block a user