File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1616 "PR: Internal" : " :house: Internal" ,
1717 "PR: Underlying Tools" : " :hammer: Underlying Tools"
1818 },
19- "cacheDir" : " .changelog" ,
20- "nextVersionFromMetadata" : true
19+ "cacheDir" : " .changelog"
2120 }
2221}
Original file line number Diff line number Diff line change @@ -3,15 +3,20 @@ const path = require('path')
33const execa = require ( 'execa' )
44
55async function genNewRelease ( ) {
6- const { stdout } = await execa ( require . resolve ( 'lerna-changelog/bin/cli' ) )
6+ const nextVersion = require ( '../lerna.json' ) . version
7+ const { stdout } = await execa ( require . resolve ( 'lerna-changelog/bin/cli' ) , [
8+ '--next-version' ,
9+ nextVersion
10+ ] )
711 return stdout
812}
913
1014const gen = ( module . exports = async ( ) => {
1115 const newRelease = await genNewRelease ( )
1216 const changelogPath = path . resolve ( __dirname , '../CHANGELOG.md' )
1317
14- const newChangelog = newRelease + '\n\n\n' + fs . readFileSync ( changelogPath , { encoding : 'utf8' } )
18+ const newChangelog =
19+ newRelease + '\n\n\n' + fs . readFileSync ( changelogPath , { encoding : 'utf8' } )
1520 fs . writeFileSync ( changelogPath , newChangelog )
1621
1722 delete process . env . PREFIX
You can’t perform that action at this time.
0 commit comments