From bd36f5ef1bdb2716777b33f44125a8eefb22c4a7 Mon Sep 17 00:00:00 2001 From: Sam Evaskitas Date: Sat, 12 Oct 2013 04:58:43 +0100 Subject: [PATCH 1/3] added warning about referencing dependencies in pre-install and pre-update --- doc/articles/scripts.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/articles/scripts.md b/doc/articles/scripts.md index be777aa08..fabbc0bc5 100644 --- a/doc/articles/scripts.md +++ b/doc/articles/scripts.md @@ -41,6 +41,8 @@ Composer fires the following named events during its execution process: - **post-create-project-cmd**: occurs after the `create-project` command is executed. +**NOTE: Composer makes no assumptions about the state of your dependencies prior to `install` or `update`. Therefore, you should not specify scripts that require Composer-managed dependencies in the `pre-update` or `pre-install` event hooks. If you need to execute scripts prior to `install` or `update` please make sure they are self-contained within your root package. + ## Defining scripts The root JSON object in `composer.json` should have a property called From ec3e5bf5abe20baee05b6417412acc0316c7fa43 Mon Sep 17 00:00:00 2001 From: Sam Evaskitas Date: Sat, 12 Oct 2013 05:03:08 +0100 Subject: [PATCH 2/3] fix up markdown --- doc/articles/scripts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/articles/scripts.md b/doc/articles/scripts.md index fabbc0bc5..ada9a69da 100644 --- a/doc/articles/scripts.md +++ b/doc/articles/scripts.md @@ -41,7 +41,7 @@ Composer fires the following named events during its execution process: - **post-create-project-cmd**: occurs after the `create-project` command is executed. -**NOTE: Composer makes no assumptions about the state of your dependencies prior to `install` or `update`. Therefore, you should not specify scripts that require Composer-managed dependencies in the `pre-update` or `pre-install` event hooks. If you need to execute scripts prior to `install` or `update` please make sure they are self-contained within your root package. +**NOTE: Composer makes no assumptions about the state of your dependencies prior to `install` or `update`. Therefore, you should not specify scripts that require Composer-managed dependencies in the `pre-update-cmd` or `pre-install-cmd` event hooks. If you need to execute scripts prior to `install` or `update` please make sure they are self-contained within your root package.** ## Defining scripts From 2f71d25f31917359f8aebf91b997e1e1f21adfa4 Mon Sep 17 00:00:00 2001 From: Sam Evaskitas Date: Sat, 12 Oct 2013 14:32:57 +0100 Subject: [PATCH 3/3] fix line lengths --- doc/articles/scripts.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/articles/scripts.md b/doc/articles/scripts.md index ada9a69da..4e8d3b7d1 100644 --- a/doc/articles/scripts.md +++ b/doc/articles/scripts.md @@ -41,7 +41,12 @@ Composer fires the following named events during its execution process: - **post-create-project-cmd**: occurs after the `create-project` command is executed. -**NOTE: Composer makes no assumptions about the state of your dependencies prior to `install` or `update`. Therefore, you should not specify scripts that require Composer-managed dependencies in the `pre-update-cmd` or `pre-install-cmd` event hooks. If you need to execute scripts prior to `install` or `update` please make sure they are self-contained within your root package.** +**NOTE: Composer makes no assumptions about the state of your dependencies +prior to `install` or `update`. Therefore, you should not specify scripts that +require Composer-managed dependencies in the `pre-update-cmd` or +`pre-install-cmd` event hooks. If you need to execute scripts prior to +`install` or `update` please make sure they are self-contained within your +root package.** ## Defining scripts