chore: update NEXT during versioning (#8794)

This commit is contained in:
jrandolf 2022-08-16 08:22:14 +02:00 committed by GitHub
parent def2687235
commit 90aa628fcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,18 @@
const {writeFileSync, readFileSync} = require('fs');
const {join} = require('path');
const version = require('../package.json').version;
writeFileSync(
join(__dirname, '../src/generated/version.ts'),
readFileSync(join(__dirname, '../src/templates/version.ts.tmpl'), {
encoding: 'utf-8',
}).replace('PACKAGE_VERSION', require('../package.json').version)
}).replace('PACKAGE_VERSION', version)
);
writeFileSync(
join(__dirname, '../versions.js'),
readFileSync(join(__dirname, '../versions.js'), {
encoding: 'utf-8',
}).replace('NEXT', `v${version}`)
);