You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
370 B
17 lines
370 B
3 years ago
|
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");
|