Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: add vite as an optional peer dependency to core and astro #2941

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

vonagam
Copy link
Contributor

@vonagam vonagam commented Aug 3, 2023

Closes #2431.

Currently on unocss installs with yarn those warnings are shown:

➤ YN0002: │ @unocss/astro@npm:0.54.0 doesn't provide vite (p2c1b4), requested by @unocss/vite
➤ YN0002: │ unocss@npm:0.54.0 [dc3fc] doesn't provide vite (pa8d36), requested by @unocss/vite

@unocss/vite peer depends on vite, but neither unocss nor @unocss/astro package provide that dependency in any form. Add it as an optional peer dependency to them.

@vonagam vonagam requested a review from antfu as a code owner August 3, 2023 06:13
@netlify
Copy link

netlify bot commented Aug 3, 2023

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 93070d5
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/64d365e9edcabd0008779133
😎 Deploy Preview https://deploy-preview-2941--unocss.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 site configuration.

@antfu antfu added this pull request to the merge queue Aug 9, 2023
Merged via the queue into unocss:main with commit 345a83c Aug 9, 2023
10 checks passed
@vonagam vonagam deleted the add-vite-as-optional-peer branch August 9, 2023 13:59
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.

Wrong peer dependency when installing with Yarn
2 participants