From c3ef507c0c7ee395fb1433238c7f7e065a574e49 Mon Sep 17 00:00:00 2001 From: MaxGraey Date: Fri, 22 Jul 2022 11:25:31 +0300 Subject: [PATCH] prevent uses binaryFile --- cli/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/index.js b/cli/index.js index e42be5bbfa..dc4818ca6b 100644 --- a/cli/index.js +++ b/cli/index.js @@ -855,6 +855,10 @@ export async function main(argv, options) { // Prepare output if (!opts.noEmit) { + if (opts.binaryFile) { + // We catched lagacy field for binary output (before 0.20) + return prepareResult(Error("`binaryFile` doesn't support. Please use `outFile` instead.")); + } let bindings = opts.bindings || []; let hasStdout = false; let hasOutFile = opts.outFile != null;