Skip to content

add drizzle (sometime visible, sometime not) #701

@jycouet

Description

@jycouet

Let's say I have a project sv-17 (from a fresh sv create with drizzle),

I'm just above this folder. When I do:

npx sv add -C sv-17

I get the list of add-ons with drizzle visible.
Image

Now, if I do:

cd sv-17
npx sv add
Image

Drizzle is not visible


It's due to this: https://github.com/sveltejs/cli/blob/main/packages/addons/drizzle/index.ts#L91-L95
If somes files exists, sv don't allow to proceed.

1/ There is a bug, it should take -C into account. (to have the same behavior in the folder or out the folder)

2/ I'm not sure it's good to unsupport this case. Maybe we can detect this files and if we have one of them, we create all of these files in another folder like /lib/server/db3 ? (and we say in next steps ?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions