Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass rootMode from @babel/node. #9078

Merged
merged 2 commits into from Nov 29, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/babel-node/src/_babel-node.js
Expand Up @@ -52,6 +52,11 @@ program.option(
"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'.",
);
commander.option(
"--root-mode [mode]",
"The project-root resolution mode. " +
"One of 'root' (the default), 'upward', or 'upward-optional'.",
);
program.option("-w, --plugins [string]", "", collect);
program.option("-b, --presets [string]", "", collect);

Expand All @@ -70,6 +75,7 @@ register({
presets: program.presets,
configFile: program.configFile,
envName: program.envName,
rootMode: program.rootMode,
wtgtybhertgeghgtwtg marked this conversation as resolved.
Show resolved Hide resolved

// Commander will default the "--no-" arguments to true, but we want to
// leave them undefined so that @babel/core can handle the
Expand Down