philbooth/check-types.js — pull request #2 by ForbesLindesay (2012-11-07 11:18:56+00:00)
Title: Fix to work with component

This fixes the module to work with [component](https://github.com/component/component) which doesn't let you prefix paths with './' (https://github.com/component/component/issues/36) and requires you to explicitly list the scripts used in your component.

In addition I fixed the check for `module.exports` vs. `window` because in browser based package managers, window will still be defined.