deemixer/scripts/set-version.js

7 lines
244 B
JavaScript
Raw Normal View History

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