PackageManger
packages.PackageManger
Constructors
constructor
+ new PackageManger(account
: Account, log
: Logger, fs
: FileSystemWrapper): PackageManger
Parameters:
Name | Type |
---|---|
account | Account |
log | Logger |
fs | FileSystemWrapper |
Returns: PackageManger
Methods
addDependency
▸ addDependency(name
: string, version
: string, restriction
: "=="
, options
: { directoryPath
: string }): Promise<void>
Parameters:
Name | Type |
---|---|
name | string |
version | string |
restriction | "==" |
options | object |
options.directoryPath | string |
Returns: Promise<void>
removeDependency
▸ removeDependency(name
: string, options
: { directoryPath
: string }): Promise<void>
Parameters:
Name | Type |
---|---|
name | string |
options | object |
options.directoryPath | string |
Returns: Promise<void>
restoreDependecy
▸ restoreDependecy(options
: { directoryPath
: string ; force?
: boolean }): Promise<void>
Parameters:
Name | Type |
---|---|
options | object |
options.directoryPath | string |
options.force? | boolean |
Returns: Promise<void>
restoreDependecyInternal
▸ restoreDependecyInternal(projectInfo
: ProjectInformation, options
: { force?
: boolean }): Promise<void>
Parameters:
Name | Type |
---|---|
projectInfo | ProjectInformation |
options | object |
options.force? | boolean |
Returns: Promise<void>
Found a mistake? Email us, and we'll send you a free t-shirt!