diff options
author | 2024-03-14 14:39:53 -0400 | |
---|---|---|
committer | 2024-03-14 14:39:53 -0400 | |
commit | 5166e9715a1ea18eb5c737ccf834c2ff446d253c (patch) | |
tree | 175443d136ba4baeb63e133cc740d2434c188673 | |
parent | 7d8565db339cb6d5c83395e849a291fe9995b51f (diff) | |
download | astro-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.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`); } } } |