Rush StackShopBlogEvents
Skip to main content

Home > @microsoft/rush-lib > IOperationSettings > sharding

IOperationSettings.sharding property

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

An optional config object for sharding the operation. If specified, the operation will be sharded into multiple invocations. The count property specifies the number of shards to create. The shardArgumentFormat property specifies the format of the argument to pass to the command to indicate the shard index and count. The default value is --shard={shardIndex}/{shardCount}.

Signature:

sharding?: IRushPhaseSharding;