mirror of
https://github.com/jamescliffordspratt/macros.git
synced 2026-07-22 05:46:53 +00:00
10 lines
335 B
JavaScript
10 lines
335 B
JavaScript
|
|
const fs = require("fs");
|
||
|
|
|
||
|
|
const pkg = JSON.parse(fs.readFileSync("package.json", "utf8"));
|
||
|
|
const manifest = JSON.parse(fs.readFileSync("manifest.json", "utf8"));
|
||
|
|
|
||
|
|
manifest.version = pkg.version;
|
||
|
|
|
||
|
|
fs.writeFileSync("manifest.json", JSON.stringify(manifest, null, 2));
|
||
|
|
console.log(`✅ Updated manifest.json to version ${pkg.version}`);
|