Skip to content

Commit

Permalink
feat(cli): add npm update step to migrate (#6462)
Browse files Browse the repository at this point in the history
  • Loading branch information
markemer committed Apr 17, 2023
1 parent 79c2c55 commit b149e8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/src/tasks/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,11 @@ async function installLatestLibs(
if (runInstall) {
rimraf.sync(join(config.app.rootDir, 'node_modules/@capacitor/!(cli)'));
await runCommand(dependencyManager, ['install']);
if (dependencyManager == 'yarn') {
await runCommand(dependencyManager, ['upgrade']);
} else {
await runCommand(dependencyManager, ['update']);
}
} else {
logger.info(
`Please run an install command with your package manager of choice. (ex: yarn install)`,
Expand Down

0 comments on commit b149e8e

Please sign in to comment.