From 3a6fe55da494327c814ff0a2d17bcb35f379a75c Mon Sep 17 00:00:00 2001 From: Nulo Date: Sun, 24 Dec 2023 13:31:00 -0300 Subject: [PATCH] volver a bun para sitio --- sitio/package.json | 2 -- sitio/src/lib/server/db.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) 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";