Skip to content

Latest commit

 

History

History
69 lines (33 loc) · 933 Bytes

merge-package-dependencies.yarnisflat.md

File metadata and controls

69 lines (33 loc) · 933 Bytes

Home > @userfrosting/merge-package-dependencies > yarnIsFlat

yarnIsFlat() function

Uses yarn.lock to detect if multiple versions of a dependency have been installed.

Signature:

export declare function yarnIsFlat(p?: string, log?: LogOption): boolean;

Parameters

Parameter

Type

Description

p

string

(Optional) Directory of yarn.lock.

log

LogOption

(Optional) If true, progress and errors will be logged. Has no affect on exceptions thrown.

**Returns:**

boolean