Skip to content

Commit

Permalink
chore: make react deps compatible with design system (#70)
Browse files Browse the repository at this point in the history
* chore: make react deps compatible with design system

* chore: changesets
  • Loading branch information
jhoward1994 authored Jan 3, 2025
1 parent d56ebe3 commit 3a01652
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-garlics-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@strapi/sdk-plugin': minor
---

make react deps compatible with design system
8 changes: 4 additions & 4 deletions src/cli/commands/plugin/init/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,10 @@ const getPluginTemplate = ({ suggestedPackageName }: PluginTemplateOptions) => {

pkgJson.devDependencies = {
...pkgJson.devDependencies,
react: '*',
'react-dom': '*',
'react-router-dom': '*',
'styled-components': '*',
react: '^17.0.0 || ^18.0.0',
'react-dom': '^17.0.0 || ^18.0.0',
'react-router-dom': '^6.0.0',
'styled-components': '^6.0.0',
};

pkgJson.peerDependencies = {
Expand Down

0 comments on commit 3a01652

Please sign in to comment.