From b7198c68125a856a02e5bdbab13231d6be430543 Mon Sep 17 00:00:00 2001 From: Flakebi Date: Fri, 29 Apr 2022 22:14:45 +0200 Subject: [PATCH] Fix --build-once Commandline args need to be accessed through options, not program. --- 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()