supabase-community / seed

Automatically seed your database with production-like dummy data based on your schema for local development and testing.
MIT License
489 stars 19 forks source link

feat(cli): possibility to init in a custom directory #135

Closed jgoux closed 7 months ago

jgoux commented 7 months ago

In this PR I'm adding the possibility of initializing @snaplet/seed in a custom folder.

When working on the Prisma example, I thought it would have been nice to initialize in the prisma folder under prisma/seed for example.

We can now do this:

npx @snaplet/seed init prisma/seed

Docs PR: https://github.com/snaplet/docs/pull/104

Fixes S-2082

linear[bot] commented 7 months ago
S-2082 Add an optional folder path as positional argument for "init"

We should be able to initialize seed in a folder other than the current one. Example: `npx snaplet/seed init prisma/seed` It would then create all the files in this folder.