From 5166e9715a1ea18eb5c737ccf834c2ff446d253c Mon Sep 17 00:00:00 2001 From: Ben Holmes Date: Thu, 14 Mar 2024 14:39:53 -0400 Subject: [PATCH] chore: remove duplicate astro:db log (#10441) * chore: remove duplicate astro:db log * chore: changeset --- .changeset/eleven-lobsters-doubt.md | 5 +++++ .../db/src/core/integration/vite-plugin-inject-env-ts.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/eleven-lobsters-doubt.md diff --git a/.changeset/eleven-lobsters-doubt.md b/.changeset/eleven-lobsters-doubt.md new file mode 100644 index 000000000000..e1efade5227c --- /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 1202e72d623c..c205e29b67da 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`); } } }