Skip to content

Commit 746a11b

Browse files
committed
feat(perfomance): COM-3153 move react dependencies to peerDependencies
1 parent a26e82d commit 746a11b

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@csssr/csssr.images",
3-
"version": "3.3.0",
3+
"version": "3.3.1",
44
"description": "Utilities for Webpack and React to simplify images workflow",
55
"main": "dist/index.js",
66
"types": "dist",
@@ -42,18 +42,22 @@
4242
"jest": "^26.6.3",
4343
"loader-utils": "^2.0.0",
4444
"prettier": "^2.2.1",
45+
"react": "^17.0.2",
46+
"react-dom": "^17.0.2",
4547
"ts-jest": "^26.5.4",
4648
"ts-loader": "^8.1.0",
4749
"ts-node": "^9.1.1",
50+
"typescript": "^4.2.4",
4851
"webpack": "^5.30.0",
4952
"webpack-cli": "^4.6.0"
5053
},
5154
"dependencies": {
5255
"imgproxy": "^0.1.2",
56+
"schema-utils": "^3.0.0"
57+
},
58+
"peerDependencies": {
5359
"react": "^17.0.2",
54-
"react-dom": "^17.0.2",
55-
"schema-utils": "^3.0.0",
56-
"typescript": "^4.2.3"
60+
"react-dom": "^17.0.2"
5761
},
5862
"resolutions": {
5963
"node-notifier": ">=8.0.1",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5048,10 +5048,10 @@ typedarray-to-buffer@^3.1.5:
50485048
dependencies:
50495049
is-typedarray "^1.0.0"
50505050

5051-
typescript@^4.2.3:
5052-
version "4.2.3"
5053-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.3.tgz#39062d8019912d43726298f09493d598048c1ce3"
5054-
integrity sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==
5051+
typescript@^4.2.4:
5052+
version "4.2.4"
5053+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961"
5054+
integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==
50555055

50565056
unbox-primitive@^1.0.0:
50575057
version "1.0.1"

0 commit comments

Comments
 (0)