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

Make db-seed script cross-platform compatibile #9

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

buckhalt
Copy link
Member

@buckhalt buckhalt commented Sep 1, 2023

"db-seed": "NODE_ENV=development prisma db seed" does not work on windows because windows requires using SET in the command to set environment variables inline.

cross-env solves this by allowing for setting and using environment variables inline across platforms.

makes this script cross-platform-compatible because windows requires SET otherwise
@buckhalt buckhalt marked this pull request as ready for review September 1, 2023 16:56
@jthrilly jthrilly self-requested a review September 4, 2023 14:50
Copy link
Member

@jthrilly jthrilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like cross-env is still perfectly okay to use, so I say we merge this. Thanks Caden!

@jthrilly jthrilly merged commit 52b165e into main Sep 4, 2023
@jthrilly jthrilly deleted the cross-platform-compatibility branch April 16, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants