resolveDependency(dependency) {
    if (dependency.charAt(0) == '.') return false;
    if (this.exclude.indexOf(dependency) >= 0) return false;
    const split = dependency.split('/');
    return split[0].charAt(0) == '@' ? split[0] + '/' + split[1] : split[0];
  }
/**
   * Takes a dependency name and resolves it to the actual dependency name,
   * stripping any subdirectories from the dependency name (retaining @org
   * style dependencies). It also excludes dependencies with relative paths (./
   * or ../ style) and any dependencies listed in {@link Package#exclude}
   * @param {string} dependency - The dependency to resolve
   * @return {string | boolean} - The resolved dependency name, or false if the
   * the dependency is excluded.
   */
Takes a dependency name and resolves it to the actual dependency name,
stripping any subdirectories from the dependency name (retaining @org
style dependencies). It also excludes dependencies with relative paths (.
or ../ style) and any dependencies listed in  Package#exclude
@param {string} dependency - The dependency to resolve
@return {string | boolean} - The resolved dependency name, or false if the
the dependency is excluded.
Takes a dependency name and resolves it to the actual dependency name stripping any subdirectories from the dependency name ( retaining @org style dependencies ) . It also excludes dependencies with relative paths ( . or .. / style ) and any dependencies listed in Package#exclude @param { string } dependency - The dependency to resolve @return { string | boolean } - The resolved dependency name or false if the the dependency is excluded .
resolveDependency(dependency) {
    if (dependency.charAt(0) == '.') return false;
    if (this.exclude.indexOf(dependency) >= 0) return false;
    const split = dependency.split('/');
    return split[0].charAt(0) == '@' ? split[0] + '/' + split[1] : split[0];
  }
resolveDependency ( dependency ) { if ( dependency . charAt ( 0 ) == '.' ) return false ; if ( this . exclude . indexOf ( dependency ) >= 0 ) return false ; const split = dependency . split ( '/' ) ; return split [ 0 ] . charAt ( 0 ) == '@' ? split [ 0 ] + '/' + split [ 1 ] : split [ 0 ] ; }
Takes a dependency name and resolves it to the actual dependency name,
 stripping any subdirectories from the dependency name (retaining @org
 style dependencies).
Takes a dependency name and resolves it to the actual dependency name stripping any subdirectories from the dependency name ( retaining @org style dependencies ) .