Skip to content

Commit c6b4e84

Browse files
authored
Prevent uses binaryFile and propose use outFile (#2380)
1 parent afa0e2d commit c6b4e84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,10 @@ export async function main(argv, options) {
856856

857857
// Prepare output
858858
if (!opts.noEmit) {
859+
if (opts.binaryFile) {
860+
// We catched lagacy field for binary output (before 0.20)
861+
return prepareResult(Error("`binaryFile` doesn't support. Please use `outFile` instead."));
862+
}
859863
let bindings = opts.bindings || [];
860864
let hasStdout = false;
861865
let hasOutFile = opts.outFile != null;

0 commit comments

Comments
 (0)