1 | import {readPackageUpAsync} from 'read-pkg-up';
|
2 | import alfredNotifier from 'alfred-notifier';
|
3 |
|
4 | export default async function updateNotification() {
|
5 | const {package: pkg} = await readPackageUpAsync();
|
6 | const alfy = (pkg || {}).alfy || {};
|
7 |
|
8 | if (alfy.updateNotification !== false) {
|
9 | alfredNotifier();
|
10 | }
|
11 | }
|