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:

  • ASP NET Core: How to create wwwroot/lib on build
  • How to use Github Pages with Dependencies?
  • How to use Bower with private Bitbucket repository?
  • git clone works in git shell, but not windows command line
  • git: create tag and push to remote: why tag is behind master on remote?
  • How to install a bower package using a private git server (SSH)?
  • 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.

  • Composer - Forked Laravel 4.2 not installing
  • How do I get a rebased branch back to origin?
  • Understanding git: connect branch to a remote repository
  • Find committed version of an external patched file
  • Running a Git build inside a ClearCase View in tcsh
  • Custom diff for git and binary file
  • Git Baby is a git and github fan, let's start git clone.