@@ -180,23 +180,24 @@ async function main() {
180
180
step ( '\nUpdating versions in package.json files...' )
181
181
await updateVersions ( pkgWithVersions )
182
182
183
- step ( '\nUpdating lock...' )
183
+ step ( 'Updating lock...' )
184
184
await runIfNotDry ( `pnpm` , [ 'install' ] )
185
185
186
186
step ( '\nGenerating changelogs...' )
187
187
for ( const pkg of pkgWithVersions ) {
188
- step ( ` -> ${ pkg . name } (${ pkg . path } )` )
189
- step ( '\n Generating Changelog...')
188
+ step ( `-> ${ chalk . bold ( pkg . name ) } (${ pkg . path } )` )
189
+ step ( chalk . dim ( ' Generating Changelog...') )
190
190
await runIfNotDry ( `pnpm` , [ 'run' , 'changelog' ] , { cwd : pkg . path } )
191
- step ( '\n Formatting Changelog...')
191
+ step ( chalk . dim ( ' Formatting Changelog...') )
192
192
await runIfNotDry ( `pnpm` , [ 'exec' , 'prettier' , '--write' , 'CHANGELOG.md' ] , {
193
193
cwd : pkg . path ,
194
194
} )
195
- step ( '\n Copying License ...')
195
+ step ( chalk . dim ( ' Copying LICENSE ...') )
196
196
await fs . copyFile (
197
197
resolve ( __dirname , '../LICENSE' ) ,
198
198
resolve ( pkg . path , 'LICENSE' )
199
199
)
200
+ step ( chalk . dim ( `Done with ${ chalk . bold ( pkg . name ) } ` ) )
200
201
}
201
202
202
203
const { yes : isChangelogCorrect } = await prompt ( {
@@ -241,8 +242,9 @@ async function main() {
241
242
step ( '\nCreating tags...' )
242
243
let versionsToPush = [ ]
243
244
for ( const pkg of pkgWithVersions ) {
244
- const tagName =
245
- pkg . name === 'vuefire' ? `v${ pkg . version } ` : `${ pkg . name } @${ pkg . version } `
245
+ const tagName = `${ pkg . name } @${ pkg . version } `
246
+ // NOTE: cannot do this because it won't work with the changelog generator
247
+ // pkg.name === 'vuefire' ? `v${pkg.version}` : `${pkg.name}@${pkg.version}`
246
248
versionsToPush . push ( `refs/tags/${ tagName } ` )
247
249
await runIfNotDry ( 'git' , [ 'tag' , tagName ] )
248
250
}
0 commit comments