Crafty.c("TweenPromise", {
  init() {
    this.requires("Tween");
  },

  tweenPromise(...args) {
    return new Promise(resolve => {
      this.one("TweenEnd", resolve);
      this.tween(...args);
    });
  }
});

@@ -157,16 +157,22 @@
 nd%22,
+ () =%3E
  resolve
 );%0A 
@@ -167,16 +167,22 @@
  resolve
+(this)
 );%0A     

Resolve with entity