component/builder.js — pull request #110 by andi-neck (2013-07-03 14:52:22+00:00)
Title: allow require('repo-name') inside components

Probably I'm doing something wrong. If I require an other component B inside component A, it is only possible with: `require('name')` but not with `require('repo-name')`.

I might have a special case where I want to be able to use the components on the server side as well. Therefore I added the components folder to the `NODE_PATH`. The problem is that the `require` lookup on the nodejs server does not work with the `require('name').
I am well aware that not all component's work on the server side, but I only need a few to be working.

Anyway, I think it does not harm if you can include a component with `require('repo-name')` inside another component.