@babel/cli
Advanced tools
Comparing version 7.13.10 to 7.13.14
@@ -45,5 +45,7 @@ "use strict"; | ||
commander.option("--source-root [filename]", "The root from which all sources are relative."); | ||
commander.option("--module-root [filename]", "Optional prefix for the AMD module formatter that will be prepended to the filename on module definitions."); | ||
commander.option("-M, --module-ids", "Insert an explicit id for modules."); | ||
commander.option("--module-id [string]", "Specify a custom name for module ids."); | ||
{ | ||
commander.option("--module-root [filename]", "Optional prefix for the AMD module formatter that will be prepended to the filename on module definitions."); | ||
commander.option("-M, --module-ids", "Insert an explicit id for modules."); | ||
commander.option("--module-id [string]", "Specify a custom name for module ids."); | ||
} | ||
commander.option("-x, --extensions [extensions]", "List of extensions to compile when a directory has been the input. [.es6,.js,.es,.jsx,.mjs]", collect); | ||
@@ -63,3 +65,3 @@ commander.option("--keep-file-extension", "Preserve the file extensions of the input files."); | ||
commander.option("--out-file-extension [string]", "Use a specific extension for the output files"); | ||
commander.version("7.13.10" + " (@babel/core " + _core().version + ")"); | ||
commander.version("7.13.14" + " (@babel/core " + _core().version + ")"); | ||
commander.usage("[options] <files ...>"); | ||
@@ -151,5 +153,2 @@ commander.action(() => {}); | ||
sourceRoot: opts.sourceRoot, | ||
moduleRoot: opts.moduleRoot, | ||
moduleIds: opts.moduleIds, | ||
moduleId: opts.moduleId, | ||
babelrc: opts.babelrc === true ? undefined : opts.babelrc, | ||
@@ -159,2 +158,9 @@ highlightCode: opts.highlightCode === true ? undefined : opts.highlightCode, | ||
}; | ||
{ | ||
Object.assign(babelOptions, { | ||
moduleRoot: opts.moduleRoot, | ||
moduleIds: opts.moduleIds, | ||
moduleId: opts.moduleId | ||
}); | ||
} | ||
@@ -161,0 +167,0 @@ for (const key of Object.keys(babelOptions)) { |
{ | ||
"name": "@babel/cli", | ||
"version": "7.13.10", | ||
"version": "7.13.14", | ||
"description": "Babel command line.", | ||
@@ -44,4 +44,4 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"devDependencies": { | ||
"@babel/core": "7.13.10", | ||
"@babel/helper-fixtures": "7.13.10", | ||
"@babel/core": "7.13.14", | ||
"@babel/helper-fixtures": "7.13.13", | ||
"rimraf": "^3.0.0" | ||
@@ -48,0 +48,0 @@ }, |
33505
721