Rush StackShopBlogEvents
Skip to main content

Home > @microsoft/rush-lib > PhasedCommandHooks > createEnvironmentForOperation

PhasedCommandHooks.createEnvironmentForOperation 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.

Hook invoked to define environment variables for an operation. May be invoked by the runner to get the environment for the operation.

Signature:

readonly createEnvironmentForOperation: SyncWaterfallHook<[
IEnvironment,
IOperationRunnerContext & IOperationExecutionResult
]>;