Skip to content

Commit 07b725f

Browse files
committed
feat(cli): support nitro build --builder
1 parent 5ec65f3 commit 07b725f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cli/commands/build.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ export default defineCommand({
2727
description:
2828
"The build preset to use (you can also use `NITRO_PRESET` environment variable).",
2929
},
30+
builder: {
31+
type: "string",
32+
description:
33+
"The builder to use (you can also use `NITRO_BUILDER` environment variable).",
34+
},
3035
compatibilityDate: {
3136
type: "string",
3237
description:
@@ -41,6 +46,7 @@ export default defineCommand({
4146
dev: false,
4247
minify: args.minify,
4348
preset: args.preset,
49+
builder: args.builder as "rollup" | "rolldown" | "vite",
4450
},
4551
{
4652
compatibilityDate: args.compatibilityDate as DateString,

0 commit comments

Comments
 (0)