npm-reinstall
Version:
Just reinstall npm package.
21 lines (20 loc) • 610 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var update_notifier_1 = __importDefault(require("update-notifier"));
var pkg = require('../../package.json');
var notificationInterval = 1000 * 60 * 60; // 1 hour
/**
* Update notifier.
*
* @export
*/
function notifier() {
update_notifier_1.default({
pkg: pkg,
updateCheckInterval: notificationInterval
}).notify();
}
exports.default = notifier;