diff options
-rw-r--r-- | .changeset/giant-lions-dance.md | 5 | ||||
-rw-r--r-- | packages/db/package.json | 5 | ||||
-rw-r--r-- | packages/db/src/runtime/db-client.ts | 1 |
3 files changed, 7 insertions, 4 deletions
diff --git a/.changeset/giant-lions-dance.md b/.changeset/giant-lions-dance.md new file mode 100644 index 000000000..0e5a75367 --- /dev/null +++ b/.changeset/giant-lions-dance.md @@ -0,0 +1,5 @@ +--- +"@astrojs/db": patch +--- + +Fix type definitions for `astro:db` diff --git a/packages/db/package.json b/packages/db/package.json index 06c113649..f1578b916 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -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": [ diff --git a/packages/db/src/runtime/db-client.ts b/packages/db/src/runtime/db-client.ts index a16a7b7c0..a92f6714a 100644 --- a/packages/db/src/runtime/db-client.ts +++ b/packages/db/src/runtime/db-client.ts @@ -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); |