mirror of
https://github.com/iaremarkus/wol-reference-viewer.git
synced 2026-07-22 06:14:20 +00:00
19 lines
No EOL
557 B
JavaScript
19 lines
No EOL
557 B
JavaScript
import fs from 'fs';
|
|
|
|
const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf8'));
|
|
const manifestJson = JSON.parse(fs.readFileSync('manifest.json', 'utf8'));
|
|
|
|
const newVersion = process.argv[2];
|
|
|
|
if (!newVersion) {
|
|
console.error('No version provided');
|
|
process.exit(1);
|
|
}
|
|
|
|
packageJson.version = newVersion;
|
|
manifestJson.version = newVersion;
|
|
|
|
fs.writeFileSync('package.json', JSON.stringify(packageJson, null, 2));
|
|
fs.writeFileSync('manifest.json', JSON.stringify(manifestJson, null, 2));
|
|
|
|
console.log(`Version bumped to ${newVersion}`); |