{"action":"created","issue":{"url":"https://api.github.com/repos/jvilk/merge-source-maps/issues/1","repository_url":"https://api.github.com/repos/jvilk/merge-source-maps","labels_url":"https://api.github.com/repos/jvilk/merge-source-maps/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jvilk/merge-source-maps/issues/1/comments","events_url":"https://api.github.com/repos/jvilk/merge-source-maps/issues/1/events","html_url":"https://github.com/jvilk/merge-source-maps/issues/1","id":186927405,"number":1,"title":"Ignore missing sources","user":{"login":"IceCreamYou","id":203177,"avatar_url":"https://avatars.githubusercontent.com/u/203177?v=3","gravatar_id":"","url":"https://api.github.com/users/IceCreamYou","html_url":"https://github.com/IceCreamYou","followers_url":"https://api.github.com/users/IceCreamYou/followers","following_url":"https://api.github.com/users/IceCreamYou/following{/other_user}","gists_url":"https://api.github.com/users/IceCreamYou/gists{/gist_id}","starred_url":"https://api.github.com/users/IceCreamYou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IceCreamYou/subscriptions","organizations_url":"https://api.github.com/users/IceCreamYou/orgs","repos_url":"https://api.github.com/users/IceCreamYou/repos","events_url":"https://api.github.com/users/IceCreamYou/events{/privacy}","received_events_url":"https://api.github.com/users/IceCreamYou/received_events","type":"User","site_admin":false},"labels":[{"id":269183661,"url":"https://api.github.com/repos/jvilk/merge-source-maps/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-02T21:39:04Z","updated_at":"2016-11-08T03:01:12Z","closed_at":null,"body":"Sometimes when I'm developing, I'll have a series of actions like this:\r\n\r\n- Create a new branch in git\r\n- Create a new file and write some code\r\n- Compile that file, generating a source map\r\n- Switch branches, so the file I was working on no longer exists\r\n\r\nIn this situation, I'm ignoring the compiled files and source maps via `.gitignore`, so when I switch branches, those files stick around but the source file doesn't.\r\n\r\nAs a result, when I try to compile again, it fails with an error like:\r\n\r\n```\r\nRunning \"merge-source-maps:main\" (merge-source-maps) task\r\nWarning: ENOENT: no such file or directory, open 'file.js'\r\n```\r\n\r\nI would like for these errors to be warnings, and for the compilation to proceed anyway. Generally I still want to be reminded that I have stray files that I should clean up, but I'd rather do that later, not in the middle of when I'm just trying to test a change.\r\n\r\nI know there is already the `ignoreMissingSourceMaps` option; this would be its complement."},"comment":{"url":"https://api.github.com/repos/jvilk/merge-source-maps/issues/comments/259032186","html_url":"https://github.com/jvilk/merge-source-maps/issues/1#issuecomment-259032186","issue_url":"https://api.github.com/repos/jvilk/merge-source-maps/issues/1","id":259032186,"user":{"login":"IceCreamYou","id":203177,"avatar_url":"https://avatars.githubusercontent.com/u/203177?v=3","gravatar_id":"","url":"https://api.github.com/users/IceCreamYou","html_url":"https://github.com/IceCreamYou","followers_url":"https://api.github.com/users/IceCreamYou/followers","following_url":"https://api.github.com/users/IceCreamYou/following{/other_user}","gists_url":"https://api.github.com/users/IceCreamYou/gists{/gist_id}","starred_url":"https://api.github.com/users/IceCreamYou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IceCreamYou/subscriptions","organizations_url":"https://api.github.com/users/IceCreamYou/orgs","repos_url":"https://api.github.com/users/IceCreamYou/repos","events_url":"https://api.github.com/users/IceCreamYou/events{/privacy}","received_events_url":"https://api.github.com/users/IceCreamYou/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T03:01:12Z","updated_at":"2016-11-08T03:01:12Z","body":"What do you think of throwing a custom error if `fs.readFileSync` fails in `SourceFile` and checking for that error in `lib/index.ts`? I'm not sure it's sensible to just ignore the error because then all the code that deals with `SourceFile`s would have to add checks to make sure the `SourceFile` is valid."}}
{"actor":{"display_login":"IceCreamYou"}}