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

prisma-reset executor does not seed #857

Open
maritz opened this issue Aug 9, 2023 · 0 comments
Open

prisma-reset executor does not seed #857

maritz opened this issue Aug 9, 2023 · 0 comments

Comments

@maritz
Copy link

maritz commented Aug 9, 2023

When using the prisma-reset executor (without --skip-seed) seeding does not happen.

As far as I can tell this might not be easy to fix, since the issue is that prisma looks for the package.json in the directory you're calling it from (the workspace root) and ignores the package.json in the project root, where the seed command is defined.

Defining the seed command in the workspace root package.json would only work if I had only one project with prisma in it.

So as a workaround I have to manually call seed after reset.

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

No branches or pull requests

1 participant