diff options
author | 2021-06-07 17:27:11 -0400 | |
---|---|---|
committer | 2021-06-07 17:27:11 -0400 | |
commit | 522c8738139ec5f2e0ae9ee16284032cacf04dc1 (patch) | |
tree | be47500c1809127c0563809cc011756312783afd | |
parent | d90f3fc54094037b62c1a333168dc0e237cf0291 (diff) | |
download | astro-522c8738139ec5f2e0ae9ee16284032cacf04dc1.tar.gz astro-522c8738139ec5f2e0ae9ee16284032cacf04dc1.tar.zst astro-522c8738139ec5f2e0ae9ee16284032cacf04dc1.zip |
Don't pass through generic args to build (#322)
* Don't pass through generic args to build
* Adding a changeset
-rw-r--r-- | .changeset/quick-waves-build.md | 5 | ||||
-rw-r--r-- | packages/astro/src/cli.ts | 4 |
2 files changed, 7 insertions, 2 deletions
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<typeof build>) => { - const ret = await build(...args); +const buildAndExit = async (astroConfig: AstroConfig) => { + const ret = await build(astroConfig); process.exit(ret); }; const reloadAndExit = async () => { |