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:
parent
d90f3fc540
commit
522c873813
2 changed files with 7 additions and 2 deletions
5
.changeset/quick-waves-build.md
Normal file
5
.changeset/quick-waves-build.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixes bug where astro build would fail when trying to log
|
|
@ -12,8 +12,8 @@ import devServer from './dev.js';
|
||||||
import { reload } from './reload.js';
|
import { reload } from './reload.js';
|
||||||
|
|
||||||
const { readFile } = fsPromises;
|
const { readFile } = fsPromises;
|
||||||
const buildAndExit = async (...args: Parameters<typeof build>) => {
|
const buildAndExit = async (astroConfig: AstroConfig) => {
|
||||||
const ret = await build(...args);
|
const ret = await build(astroConfig);
|
||||||
process.exit(ret);
|
process.exit(ret);
|
||||||
};
|
};
|
||||||
const reloadAndExit = async () => {
|
const reloadAndExit = async () => {
|
||||||
|
|
Loading…
Reference in a new issue