YarnConfiguration: { flat?: boolean; resolutions?: Dependency }

Type declaration

  • Optionalflat?: boolean

    If your package only allows one version of a given dependency, and you’d like to enforce the same behavior as yarn install --flat on the command-line, set this to true.

    Note that if your package.json contains "flat": true and other packages depend on yours (e.g. you are building a library rather than an app), those other packages will also need "flat": true in their package.json or be installed with yarn install --flat on the command-line.

  • Optionalresolutions?: Dependency

    Selective version resolutions. Allows the definition of custom package versions inside dependencies without manual edits in the yarn.lock file.