Skip to main content
Version: Next

Lockfile

Home > @backstage/cli-node > Lockfile

Represents a package manager lockfile.

Signature:

class Lockfile 

Methods

Method

Modifiers

Description

createSimplifiedDependencyGraph()

Creates a simplified dependency graph from the lockfile data, where each key is a package, and the value is a set of all packages that it depends on across all versions.

diff(otherLockfile)

Diff with another lockfile, returning entries that have been added, changed, and removed compared to the other lockfile.

get(name)

Returns the name of all packages available in the lockfile

getDependencyTreeHash(startName)

Generates a sha1 hex hash of the dependency graph for a package.

keys()

Get the entries for a single package in the lockfile

load(path)

static

Load a Lockfile from a file path.

parse(content)

static

Parse lockfile contents into a Lockfile.