0.1.6 updates and add changelog
This commit is contained in:
20
scripts/sync-readme.js
Normal file
20
scripts/sync-readme.js
Normal file
@@ -0,0 +1,20 @@
|
||||
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');
|
||||
Reference in New Issue
Block a user