fix(cli): upgrade from docker

This commit is contained in:
chenos 2022-06-26 07:35:45 +08:00
parent 570d039f19
commit c4c96e5a79

View File

@ -12,9 +12,14 @@ module.exports = (cli) => {
cli cli
.command('upgrade') .command('upgrade')
.allowUnknownOption() .allowUnknownOption()
.action(async () => { .option('--raw')
.action(async (options) => {
promptForTs(); promptForTs();
const version = await getVersion(); const version = await getVersion();
if (options.raw) {
await runAppCommand('upgrade');
return;
}
if (hasCorePackages()) { if (hasCorePackages()) {
await run('yarn', ['install']); await run('yarn', ['install']);
await runAppCommand('upgrade'); await runAppCommand('upgrade');