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:
parent
6407897643
commit
78ddfadbf9
3 changed files with 7 additions and 4 deletions
5
.changeset/giant-lions-dance.md
Normal file
5
.changeset/giant-lions-dance.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@astrojs/db": patch
|
||||
---
|
||||
|
||||
Fix type definitions for `astro:db`
|
|
@ -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": [
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue