diff --git a/packages/js/block-templates/package.json b/packages/js/block-templates/package.json index c13a38fb85d..c2f371a1f04 100644 --- a/packages/js/block-templates/package.json +++ b/packages/js/block-templates/package.json @@ -39,6 +39,7 @@ "@testing-library/jest-dom": "^5.16.2", "@testing-library/react-hooks": "^8.0.1", "@types/jest": "^27.4.1", + "@types/react": "^17.0.2", "@types/testing-library__jest-dom": "^5.14.3", "@types/wordpress__block-editor": "^7.0.0", "@types/wordpress__blocks": "^11.0.7", @@ -53,6 +54,8 @@ "jest-cli": "^27.5.1", "postcss": "^8.4.7", "postcss-loader": "^4.3.0", + "react": "^17.0.2", + "react-dom": "^17.0.2", "rimraf": "^3.0.2", "sass-loader": "^10.2.1", "ts-jest": "^27.1.3", @@ -75,5 +78,10 @@ "start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\" \"webpack --watch\"", "prepack": "pnpm run clean && pnpm run build", "lint:fix": "eslint src --fix" + }, + "peerDependencies": { + "@types/react": "^17.0.2", + "react": "^17.0.2", + "react-dom": "^17.0.2" } }