Skip to content

Commit

Permalink
fix new-frameworks logic
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Aug 15, 2022
1 parent 441d432 commit c0a47e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/lib/cli/src/automigrate/fixes/new-frameworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,12 @@ export const newFrameworks: Fix<NewFrameworkRunOptions> = {
main.setFieldValue(['framework', 'name'], frameworkPackage);
main.setFieldValue(['framework', 'options'], frameworkOptions);

if (currentCore?.builder) {
delete currentCore.builder;
}

if (Object.keys(builderInfo.options).length > 0) {
main.setFieldValue(['framework', 'options', 'builder'], builderInfo.options);
delete currentCore.builder;
}

if (currentCore) {
Expand Down

0 comments on commit c0a47e1

Please sign in to comment.