Skip to content

Commit 7337fad

Browse files
authored
Refactor dependencies to reduce dist size (#518)
* Refactor dependencies to reduce dist size * Direct dependencies that are shared with strapi are in peerDependencies (for runtime) and devDependencies (for development) * Direct dependencies that are unique to this plugin are in dependencies (and not also in devDependencies) * Increase version number
1 parent 39da609 commit 7337fad

File tree

2 files changed

+257
-269
lines changed

2 files changed

+257
-269
lines changed

package.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strapi-plugin-navigation",
3-
"version": "3.0.7-beta.2",
3+
"version": "3.0.7-beta.3",
44
"description": "Strapi - Navigation plugin",
55
"strapi": {
66
"name": "navigation",
@@ -40,25 +40,19 @@
4040
}
4141
],
4242
"dependencies": {
43+
"@sensinum/strapi-utils": "^1.0.4",
4344
"@sindresorhus/slugify": "1.1.0",
4445
"@tanstack/react-query": "^5.40.0",
45-
"formik": "^2.4.5",
46-
"lodash": "^4.17.21",
4746
"pluralize": "8.0.0",
48-
"react": "^18.3.1",
4947
"react-dnd": "^16.0.1",
5048
"react-dnd-html5-backend": "^16.0.1",
51-
"react-dom": "^18.3.1",
52-
"react-intl": "^6.6.2",
53-
"react-router-dom": "^6.22.3",
5449
"uuid": "^10.0.0",
5550
"zod": "^3.22.5"
5651
},
5752
"devDependencies": {
5853
"@faker-js/faker": "^9.0.3",
5954
"@jest/types": "29.5.x",
6055
"@koa/router": "^12.0.1",
61-
"@sensinum/strapi-utils": "^1.0.4",
6256
"@strapi/design-system": "2.0.0-rc.14",
6357
"@strapi/icons": "2.0.0-rc.14",
6458
"@strapi/plugin-graphql": "^5.8.1",
@@ -70,7 +64,7 @@
7064
"@types/koa": "^2.15.0",
7165
"@types/koa-bodyparser": "^4.3.12",
7266
"@types/koa__router": "^12.0.4",
73-
"@types/lodash": "^4.14.191",
67+
"@types/lodash": "^4.17.4",
7468
"@types/node": "^20.12.0",
7569
"@types/pluralize": "0.0.33",
7670
"@types/react": "^18.3.8",
@@ -85,21 +79,29 @@
8579
"jest-junit": "^16.0.0",
8680
"jest-styled-components": "^7.1.1",
8781
"koa": "^2.15.3",
82+
"lodash": "^4.17.21",
8883
"nodemon": "^2.0.15",
8984
"prettier": "^3.3.3",
85+
"react": "^18.3.1",
86+
"react-dom": "^18.3.1",
87+
"react-intl": "^6.6.2",
9088
"react-query": "3.39.3",
89+
"react-router-dom": "^6.22.3",
9190
"strapi-plugin-rest-cache": "^4.2.9",
9291
"styled-components": "^6.1.13",
9392
"ts-jest": "^29.1.4",
9493
"ts-node": "^10.9.1",
9594
"typescript": "^5.6.2"
9695
},
9796
"peerDependencies": {
97+
"@strapi/design-system": "^2.0.0-rc.14",
98+
"@strapi/icons": "^2.0.0-rc.14",
9899
"@strapi/sdk-plugin": "^5.3.0",
99100
"@strapi/strapi": "^5.8.1",
100101
"lodash": "^4.17.21",
101102
"react": "^18.3.1",
102103
"react-dom": "^18.3.1",
104+
"react-intl": "^6.6.2",
103105
"react-router-dom": "^6.22.3",
104106
"styled-components": "^6.1.13"
105107
},

0 commit comments

Comments
 (0)