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
.command('upgrade')
.allowUnknownOption()
.action(async () => {
.option('--raw')
.action(async (options) => {
promptForTs();
const version = await getVersion();
if (options.raw) {
await runAppCommand('upgrade');
return;
}
if (hasCorePackages()) {
await run('yarn', ['install']);
await runAppCommand('upgrade');