mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-09 12:37:48 +03:00
13 lines
400 B
JavaScript
13 lines
400 B
JavaScript
import fs from 'fs';
|
||
|
||
const version = process.argv[2];
|
||
if (!version) {
|
||
console.log('ℹ️ No version passed, skipping manifest update');
|
||
process.exit(0);
|
||
}
|
||
|
||
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}`); |