We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b295f35 commit d98869eCopy full SHA for d98869e
packages/babel-minify/src/cli.js
@@ -252,10 +252,12 @@ async function run(args) {
252
253
const options = getMinifyOpts(argv);
254
255
- if (!process.stdin.isTTY) {
256
- return runStdin(argv, options);
257
- } else if (argv._.length <= 0) {
258
- return printHelpInfo({ exitCode: 1 });
+ if (argv._.length <= 0) {
+ if (!process.stdin.isTTY) {
+ return runStdin(argv, options);
+ } else {
259
+ return printHelpInfo({ exitCode: 1 });
260
+ }
261
} else if (argv._.length === 1 && (await isFile(argv._[0]))) {
262
return runFile(argv, options);
263
} else {
0 commit comments