UNPKG

@serverless-devs/s

Version:

Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.

21 lines (17 loc) 613 B
const { UpdateNotifier } = require('./lib'); (async () => { try { console.log('********Starting update cli in daemon********'); // Exit process when offline setTimeout(process.exit, 1000 * 30); const updateNotifier = new UpdateNotifier(); await updateNotifier.update(); console.log('********Update cli successfully in daemon********'); // Call process exit explicitly to terminate the child process, // otherwise the child process will run forever, according to the Node.js docs process.exit(); } catch (error) { console.error(error); process.exit(1); } })();