typescript compile server for connect-middleware