Version: 0.1.00.2.01.0.01.0.11.0.21.0.31.0.41.0.51.0.61.0.71.0.81.0.91.0.101.0.111.0.121.0.131.0.141.0.151.0.161.0.171.0.181.0.191.0.201.0.211.0.221.0.241.0.251.0.261.0.271.0.281.0.291.0.301.0.311.0.321.0.331.0.341.0.351.0.361.0.371.0.381.0.391.0.401.0.411.0.421.0.431.0.461.0.471.0.481.0.491.0.511.0.531.0.541.0.551.0.561.0.581.0.601.0.611.0.621.0.631.0.641.0.651.0.661.0.671.0.681.0.691.0.701.0.711.0.721.0.731.0.741.0.751.0.761.0.771.0.781.0.791.0.801.0.821.0.831.0.841.0.851.0.861.0.871.0.881.0.891.0.901.0.911.0.921.0.931.0.941.0.951.0.961.0.971.0.981.0.991.1.01.1.11.1.21.1.31.1.41.1.51.1.61.1.71.2.01.2.31.2.41.2.51.2.61.2.71.2.81.2.91.2.11
/**
* 检测当前是否有新版本,给出提示升级mtl
* @url http://iuap-design-cdn.oss-cn-beijing.aliyuncs.com/static/uba/ucf-cli-version.json
*/
const updateNotifier = require("update-notifier");
const pkg = require("../package.json");
function checkVersion() {
const notifier = updateNotifier({ pkg, updateCheckInterval: 0 });
if (notifier.update) {
notifier.notify();
}
module.exports = {
checkVersion
};