Skip to content

Commit

Permalink
fix(cli): upgrade from docker
Browse files Browse the repository at this point in the history
  • Loading branch information
chenos committed Jun 25, 2022
1 parent 570d039 commit c4c96e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/core/cli/src/commands/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit c4c96e5

Please sign in to comment.