1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
const isUpdater = !!process.argv[2]; let baseVersion = "0.0.0"; if (isUpdater) { baseVersion = require('./updater/package.json')['version']; } else { baseVersion = require('./package.json')['version']; } process.stdout.write(baseVersion + "-" + new Date().toISOString() .replaceAll("-", "") .replaceAll(":", "") .split(".")[0] .replace("T", ".") );