component/builder.js — pull request #92 by jabapyth (2013-05-06 18:52:14+00:00)
Title: Adding a call to fs.exists before copying/linking files

I ran into this while doing component build -c with a file referenced in the component.json that did not exist. Since fstat's error has not .message attribute, all I got was "error: undefined" ... took me a while to figure it out.

Also, without this fix component's linking silently links nonexistent files.