deemixer/scripts/set-version.js
2022-01-13 01:33:29 +01:00

7 lines
244 B
JavaScript

const fs = require('fs')
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")