interstellar / update-version.js
Pim Schreurs
Modernize dependencies and stuff
9c06e0f
raw
history blame contribute delete
315 Bytes
const { version } = require('./package.json')
const fs = require('fs')
const path = require('path')
const indexPath = path.join(__dirname, 'index.html')
const indexHtml = fs.readFileSync(indexPath, { encoding: 'utf-8' })
fs.writeFileSync(indexPath, indexHtml.replace(/version \d+\.\d+\.\d+/, `version ${version}`))