diff options
Diffstat (limited to 'Library/Formula/node.rb')
| -rw-r--r-- | Library/Formula/node.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index fdce91443..3eb8ada33 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -74,6 +74,14 @@ class Node < Formula unless build.include? 'without-npm' (lib/"node_modules/npm/npmrc").write("prefix = #{npm_prefix}\n") + + # Link npm manpages + Pathname.glob("#{lib}/node_modules/npm/man/*").each do |man| + dir = send(man.basename) + man.children.each do |file| + dir.install_symlink(file.relative_path_from(dir)) + end + end end end |
