code: function(patterns, options) {
    if (options && options.strict) {
      if (patterns[0] !== '.') {
        return resolveDep.npm(patterns, options);
      }
      return resolveDep.local(patterns, options);
    }
    var locals = resolveDep.local(patterns, options);
    var npm = resolveDep.npm(patterns, options);
    return locals.concat(npm);
  }
docs: Resolve both npm packages and local modules by:
  
  1. Attempting to expand glob patterns to local modules, then
  1. Attempting to match glob patterns to deps in package.json
  
  **Examples:**
  
  ```js
  // file path
  resolve('foo/bar.js');
  // glob patterns
  resolve('foo/*.js');
  // named npm module (installed in node_modules)
  resolve('chai');
  // combination
  resolve(['chai', 'foo/*.js']);
  ```
  @param  {Array|String} `patterns` Glob patterns for files or npm modules.
  @param  {Object} `options`
  @return {Array}