From e11418bc38edf89aa71ed0b9ab9ee6af2183b7f0 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 31 Jul 2013 13:51:05 -0500 Subject: Handle mkpath of node_modules directory in keg --- Library/Formula/node.rb | 3 --- Library/Homebrew/keg.rb | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3