Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Nov 22, 2024
1 parent 8fbd92e commit 17c19bf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/cli-plugin-extensions/src/generateExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ export const generateExtension = async ({ input, ora, context }: GenerateExtensi
packageName
});

// Although we already have @webiny/* dependencies in generated extension's
// `package.json` file, we still need to ensure correct package versions are used.
// Despite the fact that the above code ensures that correct Webiny package versions are
// used, note that it only handles the `input.dependencies` field. We still need to run
// this because the `package.json` file that the selected template creates might also have
// Webiny packages that need to be updated. For example, this is the case with the `pbElement`
// extension (see: `packages/cli-plugin-extensions/templates/pbElement/package.json`).
await setWebinyPackageVersions(extension, context.version);

await extension.link();
Expand Down

0 comments on commit 17c19bf

Please sign in to comment.