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

VersionPolicy.setDependenciesBeforePublish() 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 publishing.

Signature:

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

Parameters

Parameter Type Description
packageName string  
configuration RushConfiguration  

Returns:

void