Specify Yarn dependency install path

I’m using Yarn to manage my dependencies for my project. I have developer dependencies (devDependencies) required for development and font-end dependencies (dependencies) that my project will require and use to run. I use Git to manage my version control. Yarn by default seems to install ALL dependencies in the node_modules directory. This is fine for developer dependencies, but because I am using git I typically ignore this directory. I would however like to commit my front-end dependencies and isolate them from developer dependencies. I’m wondering if it’s possible to configure Yarn to install required dependencies in a separate directory from developer dependencies. Bower has similar functionality in the .bowerrc file but I can’t find anything similar for Yarn.

So for example:

  • How to install and use bower in windows 7
  • Yeoman install and collaboration (over git for instance)
  • Host bower component on Visual Studio Online
  • Unable to download three.js file using bower
  • Bower: ENOGIT Git is not installed or not in the PATH
  • git: create tag and push to remote: why tag is behind master on remote?
  • devDependencies would be installed : /node_modules
    dependencies would be installed: /vendor

    I considered using Bower alongside Yarn for my front-end dependencies but that seems to defeat the purpose of using Yarn.

  • No such file: ‘pom.xml’ error in jenkins
  • How to install GitWeb on Windows?
  • TortoiseGit: What's the difference between “Git Sync”, “Fetch” and “Pull”?
  • Remove large .pack file created by git
  • Perforce equivalent of git local commit
  • src refspec ~ does not match any
  • Git Baby is a git and github fan, let's start git clone.