diff options
-rw-r--r-- | .changeset/eleven-lobsters-doubt.md | 5 | ||||
-rw-r--r-- | packages/db/src/core/integration/vite-plugin-inject-env-ts.ts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/eleven-lobsters-doubt.md b/.changeset/eleven-lobsters-doubt.md new file mode 100644 index 000000000..e1efade52 --- /dev/null +++ b/.changeset/eleven-lobsters-doubt.md @@ -0,0 +1,5 @@ +--- +"@astrojs/db": patch +--- + +Remove duplicate astro:db log during type generation diff --git a/packages/db/src/core/integration/vite-plugin-inject-env-ts.ts b/packages/db/src/core/integration/vite-plugin-inject-env-ts.ts index 1202e72d6..c205e29b6 100644 --- a/packages/db/src/core/integration/vite-plugin-inject-env-ts.ts +++ b/packages/db/src/core/integration/vite-plugin-inject-env-ts.ts @@ -46,7 +46,7 @@ export async function setUpEnvTs({ if (!typesEnvContents.includes(dbTypeReference)) { typesEnvContents = `${dbTypeReference}\n${typesEnvContents}`; await writeFile(envTsPath, typesEnvContents, 'utf-8'); - logger.info(`${cyan(bold('[astro:db]'))} Added ${bold(envTsPathRelativetoRoot)} types`); + logger.info(`Added ${bold(envTsPathRelativetoRoot)} types`); } } } |