{"action":"created","issue":{"url":"https://api.github.com/repos/SitePen/remap-istanbul/issues/40","repository_url":"https://api.github.com/repos/SitePen/remap-istanbul","labels_url":"https://api.github.com/repos/SitePen/remap-istanbul/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/SitePen/remap-istanbul/issues/40/comments","events_url":"https://api.github.com/repos/SitePen/remap-istanbul/issues/40/events","html_url":"https://github.com/SitePen/remap-istanbul/issues/40","id":132792375,"number":40,"title":"Incorrect Mapping","user":{"login":"iamchairs","id":4390732,"avatar_url":"https://avatars.githubusercontent.com/u/4390732?v=3","gravatar_id":"","url":"https://api.github.com/users/iamchairs","html_url":"https://github.com/iamchairs","followers_url":"https://api.github.com/users/iamchairs/followers","following_url":"https://api.github.com/users/iamchairs/following{/other_user}","gists_url":"https://api.github.com/users/iamchairs/gists{/gist_id}","starred_url":"https://api.github.com/users/iamchairs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamchairs/subscriptions","organizations_url":"https://api.github.com/users/iamchairs/orgs","repos_url":"https://api.github.com/users/iamchairs/repos","events_url":"https://api.github.com/users/iamchairs/events{/privacy}","received_events_url":"https://api.github.com/users/iamchairs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-10T19:19:23Z","updated_at":"2016-04-01T10:52:10Z","closed_at":null,"body":"I'm looking at the source code now but just in case this is something I'm doing wrong the mapping is completely off. I have one concatenated typescript file with all sourcemaps 64base encoded at the bottom. The first record in the source map appears to be:\r\n\r\n`\"components/log/log.service.ts\"`\r\n\r\nBut in the remapped json it appears as:\r\n\r\n`\"../../../../../../app/components/log/log.service.ts\"`\r\n\r\nI'm not sure why this is. But hopefully I can figure that out soon. Here is my gulp task to run remap-istanbul:\r\n\r\n\r\n    var remapIstanbul = require('remap-istanbul/lib/gulpRemapIstanbul');\r\n\r\n    module.exports = function (gulp, config) {\r\n\r\n       gulp.task('coverage', [\r\n          //'test'\r\n       ], function() {\r\n          return gulp.src(config.paths.coverage)\r\n            .pipe(remapIstanbul({\r\n              reports: {\r\n                json: './coverage/coverage-final.json',\r\n                html: './coverage/html-report'\r\n              }\r\n            }));\r\n       });\r\n\r\n    };"},"comment":{"url":"https://api.github.com/repos/SitePen/remap-istanbul/issues/comments/204347038","html_url":"https://github.com/SitePen/remap-istanbul/issues/40#issuecomment-204347038","issue_url":"https://api.github.com/repos/SitePen/remap-istanbul/issues/40","id":204347038,"user":{"login":"jayku4u","id":3866809,"avatar_url":"https://avatars.githubusercontent.com/u/3866809?v=3","gravatar_id":"","url":"https://api.github.com/users/jayku4u","html_url":"https://github.com/jayku4u","followers_url":"https://api.github.com/users/jayku4u/followers","following_url":"https://api.github.com/users/jayku4u/following{/other_user}","gists_url":"https://api.github.com/users/jayku4u/gists{/gist_id}","starred_url":"https://api.github.com/users/jayku4u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayku4u/subscriptions","organizations_url":"https://api.github.com/users/jayku4u/orgs","repos_url":"https://api.github.com/users/jayku4u/repos","events_url":"https://api.github.com/users/jayku4u/events{/privacy}","received_events_url":"https://api.github.com/users/jayku4u/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T10:52:10Z","updated_at":"2016-04-01T10:52:10Z","body":"Were you able to workaround this bug?"}}