OptionalflatOptionalresolutionsSelective version resolutions. Allows the definition of custom package versions inside dependencies without manual edits in the yarn.lock file.
OptionalworkspacesUsed to configure Yarn workspaces.
Workspaces allow you to manage multiple packages within the same repository in such a way that you only need to run yarn install once to install all of them in a single pass.
Please note that the top-level private property of package.json must be set to true in order to use workspaces.
If your package only allows one version of a given dependency, and you’d like to enforce the same behavior as
yarn install --flaton the command-line, set this totrue.Note that if your
package.jsoncontains"flat": trueand other packages depend on yours (e.g. you are building a library rather than an app), those other packages will also need"flat": truein theirpackage.jsonor be installed withyarn install --flaton the command-line.