Skip to content

Commit

Permalink
fix: trigger --build flag with -b
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-Shea committed Dec 27, 2023
1 parent f8fcd3d commit 2dbb0f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export async function run(argv: string[] = process.argv) {
const options = parse(argv)
const args = options["--"]

if (argv.includes("--build") && !args.length) args.push("build")
if ((argv.includes("--build") || argv.includes("-b")) && !args.length)
args.push("build")

if (argv.includes("--rebuild") && !args.length) args.push("build")

if (options.serial) options.concurrency = 1
Expand Down

0 comments on commit 2dbb0f4

Please sign in to comment.