diff --git a/sitio/package.json b/sitio/package.json index 9be4247..cf34c99 100644 --- a/sitio/package.json +++ b/sitio/package.json @@ -15,7 +15,6 @@ "@sveltejs/adapter-node": "^2.0.2", "@sveltejs/kit": "^2.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0", - "@types/better-sqlite3": "^7.6.8", "autoprefixer": "^10.4.16", "db-datos": "workspace:^", "postcss": "^8.4.32", @@ -32,7 +31,6 @@ }, "type": "module", "dependencies": { - "better-sqlite3": "^9.2.2", "chart.js": "^4.4.1", "chartjs-adapter-dayjs-4": "^1.0.4", "dayjs": "^1.11.10", diff --git a/sitio/src/lib/server/db.ts b/sitio/src/lib/server/db.ts index e1a9dc6..7462d9c 100644 --- a/sitio/src/lib/server/db.ts +++ b/sitio/src/lib/server/db.ts @@ -1,5 +1,5 @@ -import Database from "better-sqlite3"; -import { drizzle } from "drizzle-orm/better-sqlite3"; +import Database from "bun:sqlite"; +import { drizzle } from "drizzle-orm/bun-sqlite"; import * as schema from "db-datos/schema.js"; import { env } from "$env/dynamic/private";