PackageResolver

interface PackageResolver

Host-provided strategy that turns a package reference, in the form of @scope/package:version, into files on the context's file system.

Inheritors

Types

Link copied to clipboard

Resolver for hosts that do not support packages. Both operations throw UnsupportedPackageResolutionException.

Functions

Link copied to clipboard
abstract fun install(reference: String, projectRoot: FsEntry): ResolvedPackage

Makes the package available locally, replacing a previously installed different version. May perform network access and write files.

Link copied to clipboard
abstract fun locate(reference: String, projectRoot: FsEntry): ResolvedPackage?

Looks the package up locally, without side effects.