diff --git a/packages/generators/generators/lib/files/js/plugin/admin/src/components/PluginIcon/index.js b/packages/generators/generators/lib/files/js/plugin/admin/src/components/PluginIcon/index.js index a7c98f7bd5..e2bb2d5922 100644 --- a/packages/generators/generators/lib/files/js/plugin/admin/src/components/PluginIcon/index.js +++ b/packages/generators/generators/lib/files/js/plugin/admin/src/components/PluginIcon/index.js @@ -5,7 +5,7 @@ */ import React from 'react'; -import Puzzle from '@strapi/icons/Puzzle'; +import { Puzzle } from '@strapi/icons'; const PluginIcon = () => ; diff --git a/packages/generators/generators/lib/files/ts/plugin/admin/src/index.tsx b/packages/generators/generators/lib/files/ts/plugin/admin/src/index.tsx index c8c5fb9279..d33663e38e 100644 --- a/packages/generators/generators/lib/files/ts/plugin/admin/src/index.tsx +++ b/packages/generators/generators/lib/files/ts/plugin/admin/src/index.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import { prefixPluginTranslations } from '@strapi/helper-plugin'; import pluginPkg from '../../package.json'; import pluginId from './pluginId'; @@ -44,7 +43,7 @@ export default { const { locales } = app; const importedTrads = await Promise.all( - locales.map(locale => { + locales.map((locale) => { return import(`./translations/${locale}.json`) .then(({ default: data }) => { return { diff --git a/packages/generators/generators/lib/templates/js/plugin-package.json.hbs b/packages/generators/generators/lib/templates/js/plugin-package.json.hbs index ef694efa20..a337048ff4 100644 --- a/packages/generators/generators/lib/templates/js/plugin-package.json.hbs +++ b/packages/generators/generators/lib/templates/js/plugin-package.json.hbs @@ -8,7 +8,17 @@ "kind": "plugin", "displayName": "{{titleCase pluginName }}" }, - "dependencies": {}, + "dependencies": { + "@strapi/design-system": "^1.6.3", + "@strapi/helper-plugin": "^4.6.0", + "@strapi/icons": "^1.6.3", + "axios": "^1.2.2", + "prop-types": "^15.7.2", + "react": "^17.0.2", + "react-dom": "^17.0.2", + "react-router-dom": "^5.3.4", + "styled-components": "^5.3.6" + }, "author": { "name": "A Strapi developer" }, diff --git a/packages/generators/generators/lib/templates/ts/plugin-package.json.hbs b/packages/generators/generators/lib/templates/ts/plugin-package.json.hbs index 14a3b2285d..078fc62232 100644 --- a/packages/generators/generators/lib/templates/ts/plugin-package.json.hbs +++ b/packages/generators/generators/lib/templates/ts/plugin-package.json.hbs @@ -8,9 +8,22 @@ "kind": "plugin" }, "dependencies": { - "@strapi/icons": "^1.3.1" + "@strapi/design-system": "^1.6.3", + "@strapi/helper-plugin": "^4.6.0", + "@strapi/icons": "^1.6.3", + "axios": "^1.2.2", + "prop-types": "^15.7.2", + "react": "^17.0.2", + "react-dom": "^17.0.2", + "react-router-dom": "^5.3.4", + "styled-components": "^5.3.6" }, "devDependencies": { + "@strapi/typescript-utils": "^4.6.0", + "@types/react": "^17.0.53", + "@types/react-dom": "^17.0.18", + "@types/react-router-dom": "^5.3.3", + "@types/styled-components": "^5.1.26", "typescript": "4.6.3" }, "author": {