PackageId

sealed external interface PackageId(source)

Unique identifier with a package name and version. If changing this, remember to change packageIdIsEqual.

Properties

Link copied to clipboard
abstract var name: String

Name of the package. Should not include @types. If accessing a non-index file, this should include its name e.g. "foo/bar".

Link copied to clipboard
abstract var subModuleName: String

Name of a submodule within this package. May be "".

Link copied to clipboard
abstract var version: String

Version of the package, e.g. "1.2.3"