I have a Rails application using React, Webpack, and Yarn for the client side. I have everything relating to the client side within the /client directory. This includes my yarn.
To use yarn
to install your application's dependences
a) yarn.lock
should be present in root of the repo.
yarn install
b) package-lock.json
should be removed
git rm package-lock.json
To use npm
a) yarn.lock
should be removed
Source: https://devcenter.heroku.com/articles/ruby-support#installed-binaries
https://docs.npmjs.com/files/package-lock.json