mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
10 lines
319 B
JavaScript
10 lines
319 B
JavaScript
|
const { writeFileSync, readFileSync } = require('fs');
|
||
|
const { join } = require('path');
|
||
|
|
||
|
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)
|
||
|
);
|