YarnLockFileDependencyScanner Class

Scans Yarn lockfiles (yarn.lock) for the installed npm packages, in the Yarn 1 format and in the YAML format of Yarn 2 and later.

public sealed class YarnLockFileDependencyScanner : DependencyScanner

Remarks

The versions are not updatable, as the checksum of each package would no longer match. A package installed under another name is reported as the installed package, with the name it is installed under in Dependency.Metadata under the alias key. The workspaces, the packages installed from a local folder (file:, link:, portal:) and the patched copies of packages are not reported.

Inheritance
DependencyScanner YarnLockFileDependencyScanner

Constructors

NameDescription
YarnLockFileDependencyScanner()

YarnLockFileDependencyScanner()

YarnLockFileDependencyScanner.cs
public YarnLockFileDependencyScanner()

No documentation is available.

Methods

NameDescription
ScanAsync(ScanFileContext)

ScanAsync(ScanFileContext)

YarnLockFileDependencyScanner.cs

net10.0

public override ValueTask ScanAsync(ScanFileContext context)

net11.0

public override ValueTask ScanAsync(ScanFileContext context)

Parameters

context ScanFileContext

Returns

ValueTask

No documentation is available.