Home > @microsoft/rush-lib > VersionPolicy > setDependenciesBeforeCommit

VersionPolicy.setDependenciesBeforeCommit() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Tells the version policy to modify any dependencies in the target package to values used for checked-in source.

Signature:

setDependenciesBeforeCommit(packageName: string, configuration: RushConfiguration): void;

Parameters

Parameter Type Description
packageName string  
configuration RushConfiguration  

Returns:

void