Expose the envName as a programmatic and CLI option.

This commit is contained in:
Logan Smyth
2017-11-14 23:04:08 -08:00
parent 74439889d8
commit aa2d415507
4 changed files with 14 additions and 2 deletions

View File

@@ -49,6 +49,11 @@ commander.option(
collect,
);
commander.option("--config-file [path]", "Path a to .babelrc file to use");
commander.option(
"--env-name [name]",
"The name of the 'env' to use when loading configs and plugins. " +
"Defaults to the value of BABEL_ENV, or else NODE_ENV, or else 'development'.",
);
// Basic file input configuration.
commander.option("--source-type [script|module]", "");