diff options
| author | Adam Vandenberg | 2013-05-08 15:02:08 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2013-05-08 15:02:08 -0700 | 
| commit | 1bc3574fcc3b3c1d6a9aaf9cac66b67a51eac97a (patch) | |
| tree | 5058eb1b07f9c6b83962d039aeb3bc4251a5ebef /Library/Formula/node.rb | |
| parent | eed6c5c2edf034a44bc1fba0889a0a4e8ddf7117 (diff) | |
| download | homebrew-1bc3574fcc3b3c1d6a9aaf9cac66b67a51eac97a.tar.bz2 | |
node: inline npmrc script
Diffstat (limited to 'Library/Formula/node.rb')
| -rw-r--r-- | Library/Formula/node.rb | 8 | 
1 files changed, 1 insertions, 7 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index e884c7deb..8aa4f14c7 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -74,7 +74,7 @@ class Node < Formula      system "make install"      unless build.include? 'without-npm' -      (lib/"node_modules/npm/npmrc").write(npmrc) +      (lib/"node_modules/npm/npmrc").write("prefix = #{npm_prefix}\n")      end    end @@ -90,12 +90,6 @@ class Node < Formula      "#{HOMEBREW_PREFIX}/lib/node_modules"    end -  def npmrc -    <<-EOS.undent -      prefix = #{npm_prefix} -    EOS -  end -    def caveats      if build.include? 'without-npm'        <<-EOS.undent  | 
