Home > @microsoft/rush-lib > PackageJsonEditor > addOrUpdateDependency
PackageJsonEditor.addOrUpdateDependency() method
Signature:
addOrUpdateDependency(packageName: string, newVersion: string, dependencyType: DependencyType): void;
Parameters
Parameter | Type | Description |
---|---|---|
packageName | string | |
newVersion | string | |
dependencyType | DependencyType |
Returns:
void