Skip to content

Commit

Permalink
Rename use-file-extension -> out-file-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Aug 5, 2019
1 parent 939aa7c commit e75f349
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/babel-cli/src/babel/dir.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default async function({
relative,
cliOptions.keepFileExtension
? path.extname(relative)
: cliOptions.useFileExtension,
: cliOptions.outFileExtension,
);

const dest = getDest(relative, base);
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-cli/src/babel/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ commander.option(
"Delete the out directory before compilation",
);
commander.option(
"--use-file-extension [string]",
"--out-file-extension [string]",
"Use a specific extension for the output files",
);

Expand Down Expand Up @@ -278,7 +278,7 @@ export default function parseArgv(args: Array<string>): CmdOptions {
filenames,
extensions: opts.extensions,
keepFileExtension: opts.keepFileExtension,
useFileExtension: opts.useFileExtension,
outFileExtension: opts.outFileExtension,
watch: opts.watch,
skipInitialBuild: opts.skipInitialBuild,
outFile: opts.outFile,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"src",
"--out-dir",
"lib",
"--use-file-extension",
"--out-file-extension",
".mjs",
"--extensions",
".jsx,.mjs",
Expand Down

0 comments on commit e75f349

Please sign in to comment.