mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-19 00:21:54 +03:00
16 lines
370 B
JavaScript
16 lines
370 B
JavaScript
const pkg = require("../../package.json");
|
|
const fs = require("fs");
|
|
const util = require("../../src/util");
|
|
|
|
util.polyfill();
|
|
|
|
const oldVersion = pkg.oldVersion;
|
|
|
|
if (!oldVersion) {
|
|
console.log("Error: no old version?");
|
|
process.exit(1);
|
|
}
|
|
|
|
delete pkg.oldVersion;
|
|
pkg.version = oldVersion;
|
|
fs.writeFileSync("package.json", JSON.stringify(pkg, null, 4) + "\n");
|