aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-07-31 13:51:05 -0500
committerJack Nagel2013-07-31 13:51:05 -0500
commite11418bc38edf89aa71ed0b9ab9ee6af2183b7f0 (patch)
tree3dc1c76cb9d1efdd076135abb58a964883eaebb5 /Library
parent19acab2180d1bd35d2bb0969ecd278784895068c (diff)
downloadhomebrew-e11418bc38edf89aa71ed0b9ab9ee6af2183b7f0.tar.bz2
Handle mkpath of node_modules directory in keg
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/node.rb3
-rw-r--r--Library/Homebrew/keg.rb2
2 files changed, 1 insertions, 4 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index edb577b0f..541d0085f 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -65,9 +65,6 @@ class Node < Formula
unless build.include? 'without-npm'
(lib/"node_modules/npm/npmrc").write("prefix = #{npm_prefix}\n")
- # we need to force make this directory, or node modules installed here
- # by npm will end up in the node keg and won't survive upgrades
- mkdir_p "#{HOMEBREW_PREFIX}/lib/node_modules"
end
end
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index e7a8a7406..475ecf688 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -141,7 +141,7 @@ class Keg < Pathname
when /^gdk-pixbuf/ then :mkpath
when 'ghc' then :mkpath
when 'lua' then :mkpath
- when 'node' then :mkpath
+ when /^node/ then :mkpath
when /^ocaml/ then :mkpath
when /^perl5/ then :mkpath
when 'php' then :mkpath