Skip to content

Commit

Permalink
refactor: resolving update notifier
Browse files Browse the repository at this point in the history
don't throw if package can't be found for some reason
  • Loading branch information
cossssmin committed Apr 28, 2023
1 parent 8d63329 commit 81fd625
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ module.exports = () => {

await importCwd(bin).build(env)

updateNotifier({
pkg: importCwd(resolveCwd('@maizzle/framework/package.json')),
shouldNotifyInNpmScript: true,
}).notify()
try {
updateNotifier({
pkg: importCwd(resolveCwd('@maizzle/framework/package.json')),
shouldNotifyInNpmScript: true,
}).notify()
} catch {}
})

program
Expand Down

0 comments on commit 81fd625

Please sign in to comment.