I have one cli
project and one boilerplate
project. Now I want to install all babel plugins and presets inside the cli
, and use the cli
to transpile the boilerplate
.
The problem is, I'd like to run cli commands in boilerplate directory, and babel always looks for plugins/presets from boilerplate/node_modules instead of cli/node_modules.
How can I config babel to search only cli/node_modules?
I've tried to set sourceRoot
and moduleRoot
, but neither work.