PackageManger

packages.PackageManger

Constructors

constructor

+ new PackageManger(account: Account, log: Logger, fs: FileSystemWrapper): PackageManger

Parameters:

NameType
accountAccount
logLogger
fsFileSystemWrapper

Returns: PackageManger

Methods

addDependency

addDependency(name: string, version: string, restriction: "==", options: { directoryPath: string }): Promise<void>

Parameters:

NameType
namestring
versionstring
restriction"=="
optionsobject
options.directoryPathstring

Returns: Promise<void>


removeDependency

removeDependency(name: string, options: { directoryPath: string }): Promise<void>

Parameters:

NameType
namestring
optionsobject
options.directoryPathstring

Returns: Promise<void>


restoreDependecy

restoreDependecy(options: { directoryPath: string ; force?: boolean }): Promise<void>

Parameters:

NameType
optionsobject
options.directoryPathstring
options.force?boolean

Returns: Promise<void>


restoreDependecyInternal

restoreDependecyInternal(projectInfo: ProjectInformation, options: { force?: boolean }): Promise<void>

Parameters:

NameType
projectInfoProjectInformation
optionsobject
options.force?boolean

Returns: Promise<void>

Found a mistake? Email us, and we'll send you a free t-shirt!

Enroll in beta

Request invite to our private Beta program for developers to join the waitlist. No spam, we promise.