diff --git a/.changeset/quick-waves-build.md b/.changeset/quick-waves-build.md new file mode 100644 index 000000000..801757ba5 --- /dev/null +++ b/.changeset/quick-waves-build.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fixes bug where astro build would fail when trying to log diff --git a/packages/astro/src/cli.ts b/packages/astro/src/cli.ts index 3016e49c7..2bf6fcbe8 100644 --- a/packages/astro/src/cli.ts +++ b/packages/astro/src/cli.ts @@ -12,8 +12,8 @@ import devServer from './dev.js'; import { reload } from './reload.js'; const { readFile } = fsPromises; -const buildAndExit = async (...args: Parameters) => { - const ret = await build(...args); +const buildAndExit = async (astroConfig: AstroConfig) => { + const ret = await build(astroConfig); process.exit(ret); }; const reloadAndExit = async () => {