Skip to content

Commit 9fbff9c

Browse files
committed
fix(build): add react dependencies to react-icons and jest-canvas-mock to root
Add react and react-dom to react-icons devDependencies for TypeScript compilation. Add jest-canvas-mock to root devDependencies for Jest setup.
1 parent 97f2fc6 commit 9fbff9c

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"globals": "^15.15.0",
6161
"husky": "^9.1.7",
6262
"jest": "^29.7.0",
63+
"jest-canvas-mock": "^2.5.2",
6364
"jest-environment-jsdom": "^29.7.0",
6465
"jest-transform-stub": "^2.0.0",
6566
"lerna": "^8.2.4",

packages/react-icons/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
"@patternfly/patternfly": "6.5.0-prerelease.33",
3838
"@rhds/icons": "^2.0.0",
3939
"fs-extra": "^11.3.0",
40+
"react": "^18.3.1",
41+
"react-dom": "^18.3.1",
4042
"tslib": "^2.8.1"
4143
},
4244
"peerDependencies": {

yarn.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4690,6 +4690,8 @@ __metadata:
46904690
"@patternfly/patternfly": "npm:6.5.0-prerelease.33"
46914691
"@rhds/icons": "npm:^2.0.0"
46924692
fs-extra: "npm:^11.3.0"
4693+
react: "npm:^18.3.1"
4694+
react-dom: "npm:^18.3.1"
46934695
tslib: "npm:^2.8.1"
46944696
peerDependencies:
46954697
react: ^17 || ^18 || ^19
@@ -4747,6 +4749,7 @@ __metadata:
47474749
globals: "npm:^15.15.0"
47484750
husky: "npm:^9.1.7"
47494751
jest: "npm:^29.7.0"
4752+
jest-canvas-mock: "npm:^2.5.2"
47504753
jest-environment-jsdom: "npm:^29.7.0"
47514754
jest-transform-stub: "npm:^2.0.0"
47524755
lerna: "npm:^8.2.4"

0 commit comments

Comments
 (0)