The PRE_UPDATE_CMD event occurs before the update command is executed.
The event listener method receives a Composer\Script\Event instance.
public const PRE_UPDATE_CMD = 'pre-update-cmd';