Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Jan 10, 2025
1 parent 56cfe7a commit 5e0f286
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/create-medusa-app/src/utils/prepare-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ type PrepareProjectOptions = {

type PrepareOptions = PreparePluginOptions | PrepareProjectOptions

export default async (prepareOptions: PrepareOptions) => {
export default async <T extends PrepareOptions>(
prepareOptions: T
): Promise<T extends { isPlugin: true } ? void : string | undefined> => {
if (prepareOptions.isPlugin) {
return preparePlugin(prepareOptions)
}
Expand Down

0 comments on commit 5e0f286

Please sign in to comment.