Require users to pass a filename, or specify --no-babelrc when using CLI with stdin. (#7461)
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"args": ["--config-file", "../.othername_babelrc"]
|
||||
}
|
||||
"args": ["--config-file", "../.othername_babelrc", "-f", "file.js"]
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"args": ["--out-file", "script.js"]
|
||||
"args": ["--out-file", "script.js", "-f", "file.js"]
|
||||
}
|
||||
|
||||
3
packages/babel-cli/test/fixtures/babel/stdin/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/stdin/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["-f", "file.js"]
|
||||
}
|
||||
Reference in New Issue
Block a user