summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2024-03-14 14:39:53 -0400
committerGravatar GitHub <noreply@github.com> 2024-03-14 14:39:53 -0400
commit5166e9715a1ea18eb5c737ccf834c2ff446d253c (patch)
tree175443d136ba4baeb63e133cc740d2434c188673
parent7d8565db339cb6d5c83395e849a291fe9995b51f (diff)
downloadastro-5166e9715a1ea18eb5c737ccf834c2ff446d253c.tar.gz
astro-5166e9715a1ea18eb5c737ccf834c2ff446d253c.tar.zst
astro-5166e9715a1ea18eb5c737ccf834c2ff446d253c.zip
chore: remove duplicate astro:db log (#10441)
* chore: remove duplicate astro:db log * chore: changeset
-rw-r--r--.changeset/eleven-lobsters-doubt.md5
-rw-r--r--packages/db/src/core/integration/vite-plugin-inject-env-ts.ts2
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`);
}
}
}