mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
Pass --mode flag to build (#6647)
This commit is contained in:
parent
7daef9a299
commit
45da39a864
2 changed files with 12 additions and 1 deletions
5
.changeset/smart-wombats-peel.md
Normal file
5
.changeset/smart-wombats-peel.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix --mode flag for builds
|
|
@ -218,7 +218,13 @@ async function runCommand(cmd: string, flags: yargs.Arguments) {
|
||||||
case 'build': {
|
case 'build': {
|
||||||
const { default: build } = await import('../core/build/index.js');
|
const { default: build } = await import('../core/build/index.js');
|
||||||
|
|
||||||
return await build(settings, { flags, logging, telemetry, teardownCompiler: true });
|
return await build(settings, {
|
||||||
|
flags,
|
||||||
|
logging,
|
||||||
|
telemetry,
|
||||||
|
teardownCompiler: true,
|
||||||
|
mode: flags.mode,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'check': {
|
case 'check': {
|
||||||
|
|
Loading…
Reference in a new issue