Add build script, _generateSourcesContent should handle null sourcesContents, better invalid mapping message.