Is there a way to specify a working directory for yarn? This would be different then the --modules-folder option. Specifically, I\'m trying to run the yarn install command f
--cwd is what you want.
--cwd
(tested with yarn 1.3.2)
You can use --cwd like so yarn --cwd <path> <yarn command>. The order of arguments is important.
yarn --cwd <path> <yarn command>
Example:
yarn --cwd ~/test_project/ dev
Because the following will not work:
yarn dev --cwd ~/test_project/