2021-07-18 20:29:07 +00:00
|
|
|
const fs = require('fs')
|
2022-01-13 00:33:29 +00:00
|
|
|
const generateVersion = require('./gen-version.js')
|
2021-07-18 20:29:07 +00:00
|
|
|
|
|
|
|
let package = JSON.parse(fs.readFileSync('package.json'))
|
|
|
|
package.version = generateVersion()
|
|
|
|
fs.writeFileSync('package.json', JSON.stringify(package, null, 2)+"\n")
|