Merge definitions of transpiled TypeScript namespaces, fixing code (.js), declarations (d.ts) and sourcemaps (.map).