From f2cd4a173aa23f1271a89b434cfe07579284e2c8 Mon Sep 17 00:00:00 2001 From: Nayan Garg Date: Thu, 1 Sep 2022 13:46:35 +0530 Subject: [PATCH] fixed build-once --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 45cf3db..718efee 100755 --- a/src/index.js +++ b/src/index.js @@ -142,7 +142,7 @@ async function main () { const buildError = await build(inputPath) - if (program.buildOnce) { + if (options.buildOnce) { process.exit(buildError ? 1 : 0) } else { watch()