Skip to content

Commit

Permalink
chore: update NEXT during versioning (#8794)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Aug 16, 2022
1 parent def2687 commit 90aa628
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion utils/generate_version_file.js
@@ -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}`)
);

0 comments on commit 90aa628

Please sign in to comment.