Skip to content

fix(deps): Move dependencies to devDependencies to fix peer dependency issues#2831

Merged
dylantientcheu merged 2 commits intomainfrom
fix/peer-dependencies
Jan 8, 2026
Merged

fix(deps): Move dependencies to devDependencies to fix peer dependency issues#2831
dylantientcheu merged 2 commits intomainfrom
fix/peer-dependencies

Conversation

@8bittitan
Copy link
Copy Markdown
Contributor

Fixes #2825

Summary

Moves most dependencies to be devDependencies as most of them are bundled together at build time. This fixes peer dependency warnings/errors when installing the packages with a more strict package manager setting (pnpm for example)

Testing

To test the changes, I built all the packages with yarn build then generated a local NPM artifact with yarn pack -o ./docsearch-%v.tgz to simulate them being published.

In a different project I then added the various packages to the package.json, pointing to their local "registry". Then I ran the following:

pnpm config set --location=project auto-install-peers false
pnpm install

Screenshots

Fresh pnpm isntall with no peer dependency errors
Screenshot 2026-01-07 at 3 02 40 PM

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 7, 2026

Deploy Preview for docsearch-demo failed.

Name Link
🔨 Latest commit d6bf73f
🔍 Latest deploy log https://app.netlify.com/projects/docsearch-demo/deploys/695fddf8be7f7800089a833f

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 7, 2026

Deploy Preview for docsearch ready!

Name Link
🔨 Latest commit d6bf73f
🔍 Latest deploy log https://app.netlify.com/projects/docsearch/deploys/695fddf8c95c0600080b8cb8
😎 Deploy Preview https://deploy-preview-2831--docsearch.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dylantientcheu dylantientcheu merged commit ed59c7b into main Jan 8, 2026
0 of 6 checks passed
@dylantientcheu dylantientcheu deleted the fix/peer-dependencies branch January 8, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4.4.0 regresses the peer dependencies issues with @docsearch/js

2 participants