mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-08 20:19:06 +03:00
chore: cleaned changelog
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
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}`);
|
||||
};
|
||||
13
scripts/update-manifest-version.js
Normal file
13
scripts/update-manifest-version.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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}`);
|
||||
Reference in New Issue
Block a user