From 1f0849ff6e852882cbd55be5fa491a043ed8c541 Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 5 Jan 2011 15:38:40 -0800 Subject: doc the npm_dependency_* environs --- man1/scripts.1 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'man1') diff --git a/man1/scripts.1 b/man1/scripts.1 index bf2dd76f6..33b12a9ab 100644 --- a/man1/scripts.1 +++ b/man1/scripts.1 @@ -95,6 +95,11 @@ variable set to "foo", and the \fBnpm_package_version\fR set to "1\.2\.5" Configuration parameters are put in the environment with the \fBnpm_config_\fR prefix\. For instance, you can view the effective \fBroot\fR config by checking the \fBnpm_config_root\fR environment variable\. . +.SS "dependency path and versions" +All of the resolved dependencies are available in the environtment as \fBnpm_dependency_=\fR and \fBnpm_dependency__path=\fR\|\. So, if you need to refer to files +from dependency packages, or see which version is installed, you can +refer to those environment variables\. +. .SS "Special: package\.json "config" hash" The package\.json "config" keys are overwritten in the environment if there is a config param of \fB[@]:\fR\|\. For example, if -- cgit v1.2.3