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