From a2e9b2b936666b2a4779feb00dcb8ff0ab82c2ec Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Wed, 6 Mar 2024 09:50:02 -0500 Subject: [PATCH] Fixes loading .ts configs in astro:db (#10342) --- .changeset/dirty-games-jam.md | 6 ++++++ packages/astro/src/core/config/vite-load.ts | 1 + packages/db/src/core/load-file.ts | 2 +- .../fixtures/basics/{astro.config.mjs => astro.config.ts} | 0 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/dirty-games-jam.md rename packages/db/test/fixtures/basics/{astro.config.mjs => astro.config.ts} (100%) diff --git a/.changeset/dirty-games-jam.md b/.changeset/dirty-games-jam.md new file mode 100644 index 000000000000..50ea10998a02 --- /dev/null +++ b/.changeset/dirty-games-jam.md @@ -0,0 +1,6 @@ +--- +"astro": patch +"@astrojs/db": patch +--- + +Fixes @astrojs/db loading TS in the fixtures diff --git a/packages/astro/src/core/config/vite-load.ts b/packages/astro/src/core/config/vite-load.ts index 0df11bfd0375..c890bb48d6df 100644 --- a/packages/astro/src/core/config/vite-load.ts +++ b/packages/astro/src/core/config/vite-load.ts @@ -21,6 +21,7 @@ async function createViteServer(root: string, fs: typeof fsType): Promise