diff --git a/doc/articles/scripts.md b/doc/articles/scripts.md index fcb2f7b4c..02226526a 100644 --- a/doc/articles/scripts.md +++ b/doc/articles/scripts.md @@ -22,11 +22,10 @@ Composer fires the following named events during its execution process: ### Command Events -- **pre-install-cmd**: occurs before the `install` command is executed. -- **post-install-cmd**: occurs after the `install` command has been executed. -- **pre-update-cmd**: occurs before the `update` command is executed. -- **post-update-cmd**: occurs after the `update` command has been executed. -- **pre-status-cmd**: occurs before the `status` command is executed. +- **pre-install-cmd**: occurs before the `install` command is executed with a lock file present. +- **post-install-cmd**: occurs after the `install` command has been executed with a lock file present. +- **pre-update-cmd**: occurs before the `update` command is executed, or before the `install` command is executed without a lock file present. +- **post-update-cmd**: occurs after the `update` command has been executed, or after the `install` command has been executed without a lock file present. - **post-status-cmd**: occurs after the `status` command has been executed. - **pre-archive-cmd**: occurs before the `archive` command is executed. - **post-archive-cmd**: occurs after the `archive` command has been executed.