Skip to content

Commit bc2b528

Browse files
committed
Don't allow --dir or --replace when reading from stdin
1 parent e70b913 commit bc2b528

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ Promise.resolve()
100100

101101
console.warn(chalk.bold.yellow('Warning: No files passed, reading from stdin\n'))
102102

103+
if (argv.replace || argv.dir) error('Cannot use --dir or --replace when reading from stdin')
104+
103105
if (argv.watch) {
104106
error('Cannot run in watch mode when reading from stdin')
105107
}

0 commit comments

Comments
 (0)