function resolveAliases( dir, aliases ) {
	var keys;
	var key;
	var out;
	var v;
	var i;

	// FIXME: this is likely to only work on POSIX systems; we need to normalize paths to POSIX paths...
	keys = objectKeys( aliases );
	out = {};
	for ( i = 0; i < keys.length; i++ ) {
		key = keys[ i ];
		v = resolve( dir, aliases[ key ] );
		if ( extname( v ) === '' ) {
			v += '/index.js';
		}
		out[ resolve( dir, key ) ] = v;
	}
	return out;
}
Resolves module aliases relative to a provided absolute directory path.

@private
@param {string} dir - absolute directory path
@param {Object} aliases - object mapping module aliases
@returns {Object} object containing resolved module aliases