mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +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 React from 'react';
|
||||||
import Puzzle from '@strapi/icons/Puzzle';
|
import { Puzzle } from '@strapi/icons';
|
||||||
|
|
||||||
const PluginIcon = () => <Puzzle />;
|
const PluginIcon = () => <Puzzle />;
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import { prefixPluginTranslations } from '@strapi/helper-plugin';
|
import { prefixPluginTranslations } from '@strapi/helper-plugin';
|
||||||
import pluginPkg from '../../package.json';
|
import pluginPkg from '../../package.json';
|
||||||
import pluginId from './pluginId';
|
import pluginId from './pluginId';
|
||||||
@ -44,7 +43,7 @@ export default {
|
|||||||
const { locales } = app;
|
const { locales } = app;
|
||||||
|
|
||||||
const importedTrads = await Promise.all(
|
const importedTrads = await Promise.all(
|
||||||
locales.map(locale => {
|
locales.map((locale) => {
|
||||||
return import(`./translations/${locale}.json`)
|
return import(`./translations/${locale}.json`)
|
||||||
.then(({ default: data }) => {
|
.then(({ default: data }) => {
|
||||||
return {
|
return {
|
||||||
|
@ -8,7 +8,17 @@
|
|||||||
"kind": "plugin",
|
"kind": "plugin",
|
||||||
"displayName": "{{titleCase pluginName }}"
|
"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": {
|
"author": {
|
||||||
"name": "A Strapi developer"
|
"name": "A Strapi developer"
|
||||||
},
|
},
|
||||||
|
@ -8,9 +8,22 @@
|
|||||||
"kind": "plugin"
|
"kind": "plugin"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"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": {
|
"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"
|
"typescript": "4.6.3"
|
||||||
},
|
},
|
||||||
"author": {
|
"author": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user