mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 03:05:07 +08:00
16 lines
437 B
JavaScript
16 lines
437 B
JavaScript
const { exec } = require('child_process');
|
|
const log = require('../helpers/log');
|
|
|
|
function update(config) {
|
|
log.message('安装@webank/fes-core @webank/fes-ui...');
|
|
exec(`cd ${config.folders.PROJECT_DIR} && npm i @webank/fes-core @webank/fes-ui --save && npm i`, (err) => {
|
|
if (err) {
|
|
console.error(err);
|
|
return;
|
|
}
|
|
log.message('升级完毕');
|
|
});
|
|
}
|
|
|
|
module.exports = update;
|