Use matchdep to detect if devDependencies are installed. Require each if so.