/**
 * @Author       : your name
 * @Date         : 2021-08-27 15:46:39
 * @LastEditTime : 2021-08-27 15:56:26
 * @LastEditors  : Please set LastEditors
 * @Description  : In User Settings Edit
 * @FilePath     : /vue-excel-table/publish.js
 */
const fs = require('fs');

const data = fs.readFileSync('./package.json');
const pack = JSON.parse(data);
pack.version = pack.version.substr(0, 4) + (parseInt(pack.version[4], 10) + 1);

console.log(JSON.stringify(pack));
fs.writeFileSync('./package.json', JSON.stringify(pack, null, 2));
