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 Jul 24, 2019
1 parent 3e8f71b commit b53d98d
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 @@ -21,7 +21,7 @@ export default async function({ cliOptions, babelOptions }) {
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 @@ -148,7 +148,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 @@ -271,7 +271,7 @@ export default function parseArgv(args: Array<string>) {
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 b53d98d

Please sign in to comment.