Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c6b4e84

Browse files
authoredAug 15, 2022
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

+4
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)
Failed to load comments.