From 522c8738139ec5f2e0ae9ee16284032cacf04dc1 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Mon, 7 Jun 2021 17:27:11 -0400 Subject: [PATCH] Don't pass through generic args to build (#322) * Don't pass through generic args to build * Adding a changeset --- .changeset/quick-waves-build.md | 5 +++++ packages/astro/src/cli.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/quick-waves-build.md 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 () => {