21 lines
559 B
JavaScript
21 lines
559 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const root = path.resolve(__dirname, '..');
|
|
const changelogPath = path.join(root, 'CHANGELOG.md');
|
|
const readmePath = path.join(root, 'README.md');
|
|
|
|
let changelog = '# CHANGELOG\n\nNo changelog entries yet.';
|
|
if (fs.existsSync(changelogPath)) {
|
|
changelog = fs.readFileSync(changelogPath, 'utf8').trim();
|
|
}
|
|
|
|
const readme = `# HPL Toolbox
|
|
|
|
Bundled VS Code extension and standalone tools for playable ad workflows.
|
|
|
|
${changelog}
|
|
`;
|
|
|
|
fs.writeFileSync(readmePath, readme.replace(/\r?\n/g, '\n'), 'utf8');
|