Changed gruntfile.  Turned out not to solve the d.ts problem so will probably set it back.