mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 12:13:57 +00:00
13 lines
322 B
JavaScript
13 lines
322 B
JavaScript
const fs = require('fs');
|
|
const packageJson = fs.readFileSync('app/package.json', { encoding: 'utf-8' });
|
|
const json = JSON.parse(packageJson);
|
|
|
|
const text = `
|
|
module.exports = {
|
|
version: '${json.version}',
|
|
buildTime: '${new Date().toISOString()}'
|
|
};
|
|
`;
|
|
|
|
fs.writeFileSync('packages/api/src/currentVersion.js', text);
|