0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00

fix: reference base types (#10315)

* fix: reference root types

* chore: changeset

* chore: stray console log
This commit is contained in:
Ben Holmes 2024-03-04 09:14:56 -05:00 committed by GitHub
parent 6407897643
commit 78ddfadbf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View file

@ -0,0 +1,5 @@
---
"@astrojs/db": patch
---
Fix type definitions for `astro:db`

View file

@ -4,12 +4,12 @@
"description": "",
"license": "MIT",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
"types": "./index.d.ts",
"main": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./index.d.ts",
"import": "./dist/index.js"
},
"./utils": {
@ -51,7 +51,6 @@
},
"files": [
"index.d.ts",
"config-augment.d.ts",
"dist"
],
"keywords": [

View file

@ -9,7 +9,6 @@ const isWebContainer = !!process.versions?.webcontainer;
export function createLocalDatabaseClient({ dbUrl }: { dbUrl: string }): LibSQLDatabase {
const url = isWebContainer ? 'file:content.db' : dbUrl;
console.log('memory', process.env.TEST_IN_MEMORY_DB);
const client = createClient({ url: process.env.TEST_IN_MEMORY_DB ? ':memory:' : url });
const db = drizzleLibsql(client);