mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
fix: amend package.json templates to include all the deps
This commit is contained in:
parent
9818b82377
commit
8fda2ea384
@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import Puzzle from '@strapi/icons/Puzzle';
|
||||
import { Puzzle } from '@strapi/icons';
|
||||
|
||||
const PluginIcon = () => <Puzzle />;
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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"
|
||||
},
|
||||
|
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user