Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: generate plugins that work for v5 #16

Merged
merged 9 commits into from
May 20, 2024
Next Next commit
fix: sdk-plugin in generated package.json
innerdvations committed May 13, 2024
commit 6d56afa1ff43c082f65f21682af410fb4990e18d
3 changes: 3 additions & 0 deletions src/cli/commands/plugin/init/action.ts
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ const USE_BETA_VERSIONS: string[] = [
'@strapi/design-system',
'@strapi/icons',
'@strapi/strapi',
'@strapi/sdk-plugin',
] as const;

export default async (
@@ -250,11 +251,13 @@ const PLUGIN_TEMPLATE = defineTemplate(async ({ logger, gitConfig, packagePath }
* version, failing that we leave the fallback of *.
*/
'@strapi/strapi': '*',
'@strapi/sdk-plugin': '*',
prettier: '*',
},
peerDependencies: {
// TODO: set this to 5.0.0 when Strapi 5 is released
'@strapi/strapi': '^5.0.0-beta',
'@strapi/sdk-plugin': 'ˆ5.0.0-beta',
},
strapi: {
kind: 'plugin',