Skip to content

Commit

Permalink
fix(cli): make migrate not error if there are no dependencies (#6707)
Browse files Browse the repository at this point in the history
Co-authored-by: jcesarmobile <jcesarmobile@gmail.com>
  • Loading branch information
petermakeswebsites and jcesarmobile committed Jul 12, 2023
1 parent 427da42 commit 25ca83a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/tasks/migrate.ts
Expand Up @@ -414,7 +414,7 @@ async function installLatestLibs(
pkgJson['devDependencies'][devDepKey] = pluginVersion;
}
}
for (const depKey of Object.keys(pkgJson['dependencies'])) {
for (const depKey of Object.keys(pkgJson['dependencies'] || {})) {
if (libs.includes(depKey)) {
pkgJson['dependencies'][depKey] = coreVersion;
} else if (plugins.includes(depKey)) {
Expand Down

0 comments on commit 25ca83a

Please sign in to comment.