fix(cli): upgrade from docker
This commit is contained in:
parent
570d039f19
commit
c4c96e5a79
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user