UNPKG

306 BJavaScriptView Raw
1import {readPackageUpAsync} from 'read-pkg-up';
2import alfredNotifier from 'alfred-notifier';
3
4export 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}