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: make expo peer dependencies optional #1714

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

Cherry
Copy link
Contributor

@Cherry Cherry commented Dec 27, 2023

#1678 introduced an expo driver, but did not make these peer dependencies optional.

This results in unnecessary inflation of node_modules in other projects, with react (appears to solely be used for https://github.com/drizzle-team/drizzle-orm/blob/main/drizzle-orm/src/expo-sqlite/migrator.ts), and then the main expo-sqlite dependency.

@Zamiell
Copy link

Zamiell commented Dec 28, 2023

Thanks for this PR, I was about to submit the same thing.
Also note that we need to add @types/react to be optional as well in this PR, I think.

@Cherry
Copy link
Contributor Author

Cherry commented Dec 28, 2023

Also note that we need to add @types/react to be optional as well in this PR, I think.

Good catch, thank you! Added that here now too.

@AndriiSherman AndriiSherman merged commit e6445a0 into drizzle-team:main Jan 2, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants