Transition
After using bower
for managing dependencies, I have decided to switch to yarn
. The biggest challenge I am facing is moving from the existing .bowerrc
file to a new .yarnrc
configuration.
.bowerrc
{
"directory": "src/vendors"
}
The difficulty lies in creating a .yarnrc
file that only places dependencies into src/vendors
, while keeping devDependencies
in another directory like node_modules
.
.yarnrc
--modules-folder src/vendors
Query
How can I segregate dependencies into src/vendors
and keep devDependencies
in node_modules
when migrating to Yarn?