chore: update NEXT
during versioning (#8794)
This commit is contained in:
parent
def2687235
commit
90aa628fcc
@ -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}`)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user