Skip to content

Commit c33cc90

Browse files
committed
update root changelog on new version
Signed-off-by: Tim Deubler <[email protected]>
1 parent dfc199c commit c33cc90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/bumpversion.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
const {join} = require('path');
21-
const {writeFileSync} = require('fs');
21+
const {copyFile, writeFileSync} = require('fs');
2222

2323
const XYZ_MAPS_SRC = '../';
2424

@@ -29,3 +29,9 @@ const pkgJson = require(pkgPath);
2929
pkgJson.version = require(join(__dirname, XYZ_MAPS_SRC, 'lerna.json')).version;
3030

3131
writeFileSync(pkgPath, JSON.stringify(pkgJson, null, 2), 'utf8');
32+
console.log('bumped root version.');
33+
34+
copyFile(join(__dirname, XYZ_MAPS_SRC, 'packages', 'core', 'CHANGELOG.MD'), join(__dirname, XYZ_MAPS_SRC, 'CHANGELOG.MD'), (err) => {
35+
if (err) throw err;
36+
console.log('updated CHANGELOG.MD in root.');
37+
});

0 commit comments

Comments
 (0)