Skip to content

Commit

Permalink
feat: show project name in update message
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Mar 24, 2018
1 parent ef9d0d7 commit b490600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/init/check_update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const hook: Hook<'init'> = async function ({config}) {
try {
const distTags = await fs.readJSON(file)
if (distTags && distTags.latest && semver.gt(distTags.latest, config.version)) {
this.warn(`Update available to ${distTags.latest} from ${config.version}`)
this.warn(`${config.name} update available to ${distTags.latest} from ${config.version}`)
}
} catch (err) {
if (err.code !== 'ENOENT') throw err
Expand Down

0 comments on commit b490600

Please sign in to comment.