fix: amend package.json templates to include all the deps

This commit is contained in:
Josh 2023-02-13 09:48:40 +00:00
parent 9818b82377
commit 8fda2ea384
4 changed files with 27 additions and 5 deletions

View File

@ -5,7 +5,7 @@
*/
import React from 'react';
import Puzzle from '@strapi/icons/Puzzle';
import { Puzzle } from '@strapi/icons';
const PluginIcon = () => <Puzzle />;

View File

@ -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 {

View File

@ -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"
},

View File

@ -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": {