Skip to content

Commit

Permalink
Blueprints: Backfill themeData from themeZipFile
Browse files Browse the repository at this point in the history
#1793 introduced a directory resource type and changed the name of a few required parameters. Among others, the `themeZipFile` parameter in the `installTheme`  changed to `themeData`. Unfortunately, the `compile()` function had a type and did not backfill the new required parameter using the older, well known `themeZipFile` parameter which caused Blueprint execution errors.
  • Loading branch information
adamziel authored Oct 8, 2024
1 parent 804711c commit d0cec49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/playground/blueprints/src/lib/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ export function compileBlueprint(
(step as any)?.step === 'installTheme' &&
'themeData' in step
) {
(step as any).themeData = (step as any).themeData;
(step as any).themeData = (step as any).themeZipFile;
logger.warn(
`The "themeData" option of the "installTheme" step is deprecated. Use "themeData" instead.`
`The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.`
);
}
}
Expand Down

0 comments on commit d0cec49

Please sign in to comment.