Don't pass through generic args to build (#322)

* Don't pass through generic args to build

* Adding a changeset
This commit is contained in:
Matthew Phillips 2021-06-07 17:27:11 -04:00 committed by GitHub
parent d90f3fc540
commit 522c873813
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes bug where astro build would fail when trying to log

View file

@ -12,8 +12,8 @@ import devServer from './dev.js';
import { reload } from './reload.js';
const { readFile } = fsPromises;
const buildAndExit = async (...args: Parameters<typeof build>) => {
const ret = await build(...args);
const buildAndExit = async (astroConfig: AstroConfig) => {
const ret = await build(astroConfig);
process.exit(ret);
};
const reloadAndExit = async () => {