import updateNotifier , { NotifyOptions } from 'update-notifier' ; import { readPackageJson , findUp , readAppPackageJson } from './fs' ; export default updateNotifier ; /**
 * Checks for update for the package
 */ export const checkForUpdate = ( customMessage ? ) : void => { const pkg = module . parent ? readPackageJson ( findUp ( module . parent . filename , 'package.json' ) ) : readAppPackageJson ( ) ; updateNotifier ( { pkg } ) . notify ( customMessage ) ; } ;