Skip to content

Commit 1b38b2a

Browse files
authored
fix: Respect outFile when detecting no output in asc (#1391)
1 parent ec86d41 commit 1b38b2a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: cli/asc.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -720,13 +720,6 @@ exports.main = function main(argv, options, callback) {
720720

721721
// Prepare output
722722
if (!args.noEmit) {
723-
let hasStdout = false;
724-
let hasOutput = args.textFile != null
725-
|| args.binaryFile != null
726-
|| args.jsFile != null
727-
|| args.tsdFile != null
728-
|| args.idlFile != null;
729-
730723
if (args.outFile != null) {
731724
if (/\.was?t$/.test(args.outFile) && args.textFile == null) {
732725
args.textFile = args.outFile;
@@ -737,6 +730,13 @@ exports.main = function main(argv, options, callback) {
737730
}
738731
}
739732

733+
let hasStdout = false;
734+
let hasOutput = args.textFile != null
735+
|| args.binaryFile != null
736+
|| args.jsFile != null
737+
|| args.tsdFile != null
738+
|| args.idlFile != null;
739+
740740
// Write binary
741741
if (args.binaryFile != null) {
742742
let basename = path.basename(args.binaryFile);

0 commit comments

Comments
 (0)