Skip to content

Commit ca5f91c

Browse files
committed
fix(overwrite): Discard output dir when output file is specified
1 parent a96b518 commit ca5f91c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Promise.resolve()
6969
error('Input Error: You must pass a valid list of files to parse')
7070
}
7171

72-
if (i.length > 1 && !argv.dir && !argv.replace) {
72+
if (i.length > 1 && !argv.dir && !argv.replace && !output) {
7373
error(
7474
'Input Error: Must use --dir or --replace with multiple input files'
7575
)

0 commit comments

Comments
 (0)