Skip to main content

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.

getDependencyTreeHash(startName)

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

load(path)

static

Load a Lockfile from a file path.

parse(content)

static

Parse lockfile contents into a Lockfile.