diff options
author | isaacs <i@izs.me> | 2010-08-24 23:10:02 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-08-25 16:21:50 +0400 |
commit | fce1c8d1450a73b1add8131500df5a80242d060b (patch) | |
tree | c810478a9a574d38c52b8b041dadd8f0cff9e3c7 /man | |
parent | 4792d408ec52cfb8c2382ff274dab6349bb625c9 (diff) |
remove the link field from documentation. no one uses it.
Diffstat (limited to 'man')
-rw-r--r-- | man/json.1 | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/man/json.1 b/man/json.1 index 98c41546d..15bc16180 100644 --- a/man/json.1 +++ b/man/json.1 @@ -239,41 +239,6 @@ For example, these are all valid: . .IP "" 0 . -.SH "link" -You may specify a \fBlink\fR member in your package\.json to have npm link -dependencies in to a particular location inside your package dir\. For example: -. -.IP "" 4 -. -.nf -{ "dependencies" : - { "boo" : "2\.0\.1" - , "baz" : ">1\.0\.2 <=2\.3\.4" - , "foo" : "1\.0\.0 \- 2\.9999\.9999" - , "bar" : ">=1\.0\.2 <2\.1\.2" - } -, "link" : - { "boo" : "\./deps/boo" - , "baz" : "\./lib/baz" - , "foo" : "\./deps/foo" - , "bar" : "\./deps/bar" - } -} -. -.fi -. -.IP "" 0 -. -.P -This would link the dependencies into the specified locations, so that the -package code could do \fBrequire("\./deps/foo")\fR to import whichever version of \fBfoo\fR was satisfying the requirement\. -. -.P -<strong style="color:red">Warning!</strong> This is currently the \fIonly\fR way -in which npm modifies the pristine nature of the package directory, and it may -go away eventually\. It\'s just that it satisfies a use case that is pretty -tricky to do otherwise\. -. .SH "engines" Packages/1\.0 says that you can have an "engines" field with an array of engine names\. However, it has no provision for specifying which version of the engine |