const path = require("path");
module.exports = async function() {
	const resolve1 = this.getResolve();
	const resolve2 = this.getResolve({
		extensions: [".xyz", ".js"]
	});
	return `module.exports = ${JSON.stringify({
		one: path.basename(await resolve1(__dirname, "./index")),
		two: path.basename(await resolve2(__dirname, "./index")),
	})}`;
};

@@ -43,14 +43,8 @@
 ts =
- async
  fun
@@ -53,16 +53,16 @@
 ion() %7B%0A
+
 %09const r
@@ -161,16 +161,133 @@
 %22%5D%0A%09%7D);%0A
+%09return Promise.all(%5B%0A%09%09resolve1(__dirname, %22./index%22),%0A%09%09resolve2(__dirname, %22./index%22)%0A%09%5D).then((%5Bone, two%5D) =%3E %7B%0A%09
 %09return 
@@ -325,16 +325,17 @@
 ify(%7B%0A%09%09
+%09
 one: pat
@@ -349,47 +349,15 @@
 ame(
-await resolve1(__dirname, %22./index%22)
+one
 ),%0A
+%09
 %09%09tw
@@ -377,53 +377,26 @@
 ame(
-await resolve2(__dirname, %22./index%22)
+two
 ),%0A
+%09
 %09%7D)%7D%60;%0A
+%09%7D);%0A
 %7D;%0A

convert test case to normal function for node.js 6 support