diff --git a/package.json b/package.json index 6ebca94d3..542a60b0e 100644 --- a/package.json +++ b/package.json @@ -26,5 +26,15 @@ "prettier": "^2.5.0", "rimraf": "^3.0.2", "stylelint": "^13.13.1" + }, + "pnpm": { + "peerDependencyRules": { + "ignoreMissing": [ + "@algolia/client-search", + "@types/react", + "react", + "react-dom" + ] + } } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4b6c70708..5cb26eff5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -303,6 +303,9 @@ packages: peerDependencies: '@algolia/client-search': ^4.9.1 algoliasearch: ^4.9.1 + peerDependenciesMeta: + '@algolia/client-search': + optional: true dependencies: '@algolia/autocomplete-shared': 1.7.1 algoliasearch: 4.13.1 @@ -820,6 +823,13 @@ packages: '@types/react': '>= 16.8.0 < 19.0.0' react: '>= 16.8.0 < 19.0.0' react-dom: '>= 16.8.0 < 19.0.0' + peerDependenciesMeta: + '@types/react': + optional: true + react: + optional: true + react-dom: + optional: true dependencies: '@algolia/autocomplete-core': 1.7.1 '@algolia/autocomplete-preset-algolia': 1.7.1_algoliasearch@4.13.1 @@ -6216,6 +6226,9 @@ packages: resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==} peerDependencies: react: ^18.2.0 + peerDependenciesMeta: + react: + optional: true dependencies: loose-envify: 1.4.0 react: 18.2.0