From 4e28630c2b3f2e0fe97ceeb869839f187cb08377 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 4 Mar 2024 08:34:54 -0500 Subject: [PATCH 1/3] fix: reference root types --- packages/db/package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/db/package.json b/packages/db/package.json index 06c113649642..f1578b916193 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": [ From efe5378ef2bdc03d508559002b9360019aacf84c Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 4 Mar 2024 08:46:00 -0500 Subject: [PATCH 2/3] chore: changeset --- .changeset/giant-lions-dance.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/giant-lions-dance.md diff --git a/.changeset/giant-lions-dance.md b/.changeset/giant-lions-dance.md new file mode 100644 index 000000000000..0e5a753676d5 --- /dev/null +++ b/.changeset/giant-lions-dance.md @@ -0,0 +1,5 @@ +--- +"@astrojs/db": patch +--- + +Fix type definitions for `astro:db` From 8e081f1fc008ba1e9748e752fa74c1d96e110d04 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 4 Mar 2024 08:53:04 -0500 Subject: [PATCH 3/3] chore: stray console log --- packages/db/src/runtime/db-client.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/db/src/runtime/db-client.ts b/packages/db/src/runtime/db-client.ts index a16a7b7c0540..a92f6714a9c4 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);