Turns out this is wrong:
await sv.add({
cwd,
addons: {
drizzle: sv.officialAddons.drizzle,
},
options: {
drizzle: { database: "sqlite", sqlite: "client-sqlite3" },
},
packageManager: "pnpm",
});
This is the fix:
- drizzle: { database: "sqlite", client: "better-sqlite3" },
+ drizzle: { database: "sqlite", sqlite: "better-sqlite3" },
I've been using a client key to match the CLI script:
npx sv add drizzle="database:postgresql+client:postgres.js"
I did name this as a docs issue, but would prefer the API to match CLI.
Turns out this is wrong:
This is the fix:
I've been using a
clientkey to match the CLI script:npx sv add drizzle="database:postgresql+client:postgres.js"I did name this as a docs issue, but would prefer the API to match CLI.