function entryPoints( pkgs, options ) {
	var results;
	var opts;
	var err;
	var dir;
	if ( !isStringArray( pkgs ) ) {
		throw new TypeError( format( 'invalid argument. First argument must be an array of strings. Value: `%s`.', pkgs ) );
	}
	opts = copy( defaults );
	if ( arguments.length > 1 ) {
		err = validate( opts, options );
		if ( err ) {
			throw err;
		}
	}
	debug( 'Options: %s', JSON.stringify( opts ) );
	if ( opts.dir ) {
		dir = path.resolve( cwd(), opts.dir );
	} else {
		dir = cwd();
	}
	debug( 'Base directory: %s', dir );

	debug( 'Resolving packages...' );
	results = resolve( pkgs, dir );
	if ( results instanceof Error ) {
		debug( 'Encountered an error when resolving packages: %s', results.message );
		throw results;
	}
	debug( 'Successfully resolved packages.' );

	debug( 'Determining entry points...' );
	results = getEntries( results );
	if ( results instanceof Error ) {
		debug( 'Encountered an error when determining entry points: %s', results.message );
		throw results;
	}
	debug( 'Successfully determined entry points.' );
	return results;
}
Synchronously resolves package browser entry points.

@param {StringArray} pkgs - list of packages
@param {Options} [options] - function options
@param {string} [options.dir] - root directory from which to resolve packages
@throws {TypeError} first argument must be an array of strings
@throws {TypeError} callback argument must be a function
@throws {TypeError} options argument must be an object
@throws {TypeError} must provide valid options
@returns {ObjectArray} entry points

@example
var pkgs = [ '/foo/bar/baz' ];

var entries = entryPoints( pkgs );
// e.g., returns [{...}]