/heroku-buildpack-yarn-workspaces

Heroku buildpack designed to deal with yarn workspaces.

Primary LanguageShellMIT LicenseMIT

Heroku Buildpack Yarn Workspaces

This buildpack is for monorepos configured with yarn workspaces. This is an appropriation of the heroku-monorepo-buildpack.

Rationale

It deals with the issue of not having required yarn v3 directiories. It will copy .yarnrc.yml, yarn.lock and yarn/* directories.

Usage

  1. Set the APP_BASE configuration variable. It should point to the relative path of your intended workspace. e.g. packages/my-package.

  2. Ensure you have a yarn.lock on your project's root directory. This buildpack will copy the yarn.lock to the APP_BASE directory. This is helpful for Heroku to detect and automatically install yarn in our behalf.

  3. Add this buildpack to your app using the command: heroku buildpacks:add -a <app> [https://github.com/MantasMikal/heroku-buildpack-yarn-workspaces](https://github.com/MantasMikal/heroku-buildpack-yarn-workspaces)