Rush StackShopBlogEvents
Skip to main content

Home > @microsoft/rush-lib > EventHooks

EventHooks class​

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

This class represents Rush event hooks configured for this repo. Hooks are customized script actions that Rush executes when specific events occur. The actions are expressed as a command-line that is executed using the operating system shell.

Signature:

export declare class EventHooks 

Remarks​

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the EventHooks class.

Methods​

Method

Modifiers

Description

get(event)

(BETA) Return all the scripts associated with the specified event.