Skip to content

Commit

Permalink
fix: sdk-plugin in generated package.json (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
innerdvations authored May 13, 2024
1 parent 72cc3bf commit 26163fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Empty file modified bin/strapi-plugin.js
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions src/cli/commands/plugin/init/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const USE_BETA_VERSIONS: string[] = [
'@strapi/design-system',
'@strapi/icons',
'@strapi/strapi',
'@strapi/sdk-plugin',
] as const;

export default async (
Expand Down Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/cli/commands/plugin/init/files/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { outdent } from 'outdent';
import type { TemplateFile } from '@strapi/pack-up';

const PLUGIN_ICON_CODE = outdent`
import { Puzzle } from '@strapi/icons';
import { PuzzlePiece } from '@strapi/icons';
const PluginIcon = () => <Puzzle />;
const PluginIcon = () => <PuzzlePiece />;
export { PluginIcon };
`;
Expand Down

0 comments on commit 26163fa

Please sign in to comment.