{"action":"created","comment":{"url":"https://api.github.com/repos/angular/ts-minify/pulls/comments/37252178","id":37252178,"diff_hunk":"@@ -89,6 +92,12 @@ export class Minifier {\n \n     // given a base path, preserve file directory structure\n     var subFilePath = filePath.replace(this._minifierOptions.basePath, '');\n+\n+    if (subFilePath === filePath) {\n+      filePath = path.relative(process.cwd(), filePath);","path":"src/main.ts","position":16,"original_position":16,"commit_id":"0d0037e7145e48d8fb5592192fef5ef55e3b2306","original_commit_id":"0d0037e7145e48d8fb5592192fef5ef55e3b2306","user":{"login":"rkirov","id":95713,"avatar_url":"https://avatars.githubusercontent.com/u/95713?v=3","gravatar_id":"","url":"https://api.github.com/users/rkirov","html_url":"https://github.com/rkirov","followers_url":"https://api.github.com/users/rkirov/followers","following_url":"https://api.github.com/users/rkirov/following{/other_user}","gists_url":"https://api.github.com/users/rkirov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkirov/subscriptions","organizations_url":"https://api.github.com/users/rkirov/orgs","repos_url":"https://api.github.com/users/rkirov/repos","events_url":"https://api.github.com/users/rkirov/events{/privacy}","received_events_url":"https://api.github.com/users/rkirov/received_events","type":"User","site_admin":false},"body":"doesn't look right, you already normalized on line 84.","created_at":"2015-08-18T00:11:53Z","updated_at":"2015-08-18T00:11:53Z","html_url":"https://github.com/angular/ts-minify/pull/31#discussion_r37252178","pull_request_url":"https://api.github.com/repos/angular/ts-minify/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/angular/ts-minify/pulls/comments/37252178"},"html":{"href":"https://github.com/angular/ts-minify/pull/31#discussion_r37252178"},"pull_request":{"href":"https://api.github.com/repos/angular/ts-minify/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/angular/ts-minify/pulls/31","id":42504953,"html_url":"https://github.com/angular/ts-minify/pull/31","diff_url":"https://github.com/angular/ts-minify/pull/31.diff","patch_url":"https://github.com/angular/ts-minify/pull/31.patch","issue_url":"https://api.github.com/repos/angular/ts-minify/issues/31","number":31,"state":"open","locked":false,"title":"check if lhs of property access expression is a module","user":{"login":"dariajung","id":1554757,"avatar_url":"https://avatars.githubusercontent.com/u/1554757?v=3","gravatar_id":"","url":"https://api.github.com/users/dariajung","html_url":"https://github.com/dariajung","followers_url":"https://api.github.com/users/dariajung/followers","following_url":"https://api.github.com/users/dariajung/following{/other_user}","gists_url":"https://api.github.com/users/dariajung/gists{/gist_id}","starred_url":"https://api.github.com/users/dariajung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariajung/subscriptions","organizations_url":"https://api.github.com/users/dariajung/orgs","repos_url":"https://api.github.com/users/dariajung/repos","events_url":"https://api.github.com/users/dariajung/events{/privacy}","received_events_url":"https://api.github.com/users/dariajung/received_events","type":"User","site_admin":false},"body":"Add a check to see if the Left Hand Side expression is a module. \r\n\r\nNeeds a unit test, and E2E test.","created_at":"2015-08-14T22:45:16Z","updated_at":"2015-08-18T00:11:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6b9f5f732b5bd4ffde7c92eded38de82180d8ef","assignee":{"login":"rkirov","id":95713,"avatar_url":"https://avatars.githubusercontent.com/u/95713?v=3","gravatar_id":"","url":"https://api.github.com/users/rkirov","html_url":"https://github.com/rkirov","followers_url":"https://api.github.com/users/rkirov/followers","following_url":"https://api.github.com/users/rkirov/following{/other_user}","gists_url":"https://api.github.com/users/rkirov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkirov/subscriptions","organizations_url":"https://api.github.com/users/rkirov/orgs","repos_url":"https://api.github.com/users/rkirov/repos","events_url":"https://api.github.com/users/rkirov/events{/privacy}","received_events_url":"https://api.github.com/users/rkirov/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/angular/ts-minify/pulls/31/commits","review_comments_url":"https://api.github.com/repos/angular/ts-minify/pulls/31/comments","review_comment_url":"https://api.github.com/repos/angular/ts-minify/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/ts-minify/issues/31/comments","statuses_url":"https://api.github.com/repos/angular/ts-minify/statuses/0d0037e7145e48d8fb5592192fef5ef55e3b2306","head":{"label":"angular:check-module","ref":"check-module","sha":"0d0037e7145e48d8fb5592192fef5ef55e3b2306","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":39101099,"name":"ts-minify","full_name":"angular/ts-minify","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/ts-minify","description":"A tool to aid minification of Typescript code, using Typescript's type information.","fork":false,"url":"https://api.github.com/repos/angular/ts-minify","forks_url":"https://api.github.com/repos/angular/ts-minify/forks","keys_url":"https://api.github.com/repos/angular/ts-minify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/ts-minify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/ts-minify/teams","hooks_url":"https://api.github.com/repos/angular/ts-minify/hooks","issue_events_url":"https://api.github.com/repos/angular/ts-minify/issues/events{/number}","events_url":"https://api.github.com/repos/angular/ts-minify/events","assignees_url":"https://api.github.com/repos/angular/ts-minify/assignees{/user}","branches_url":"https://api.github.com/repos/angular/ts-minify/branches{/branch}","tags_url":"https://api.github.com/repos/angular/ts-minify/tags","blobs_url":"https://api.github.com/repos/angular/ts-minify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/ts-minify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/ts-minify/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/ts-minify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/ts-minify/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/ts-minify/languages","stargazers_url":"https://api.github.com/repos/angular/ts-minify/stargazers","contributors_url":"https://api.github.com/repos/angular/ts-minify/contributors","subscribers_url":"https://api.github.com/repos/angular/ts-minify/subscribers","subscription_url":"https://api.github.com/repos/angular/ts-minify/subscription","commits_url":"https://api.github.com/repos/angular/ts-minify/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/ts-minify/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/ts-minify/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/ts-minify/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/ts-minify/contents/{+path}","compare_url":"https://api.github.com/repos/angular/ts-minify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/ts-minify/merges","archive_url":"https://api.github.com/repos/angular/ts-minify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/ts-minify/downloads","issues_url":"https://api.github.com/repos/angular/ts-minify/issues{/number}","pulls_url":"https://api.github.com/repos/angular/ts-minify/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/ts-minify/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/ts-minify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/ts-minify/labels{/name}","releases_url":"https://api.github.com/repos/angular/ts-minify/releases{/id}","created_at":"2015-07-14T21:25:05Z","updated_at":"2015-08-17T17:50:07Z","pushed_at":"2015-08-17T17:25:40Z","git_url":"git://github.com/angular/ts-minify.git","ssh_url":"git@github.com:angular/ts-minify.git","clone_url":"https://github.com/angular/ts-minify.git","svn_url":"https://github.com/angular/ts-minify","homepage":null,"size":653,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":5,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"7db076f1a3d9f989a2d6adfcf08a7a85847535b8","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":39101099,"name":"ts-minify","full_name":"angular/ts-minify","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/ts-minify","description":"A tool to aid minification of Typescript code, using Typescript's type information.","fork":false,"url":"https://api.github.com/repos/angular/ts-minify","forks_url":"https://api.github.com/repos/angular/ts-minify/forks","keys_url":"https://api.github.com/repos/angular/ts-minify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/ts-minify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/ts-minify/teams","hooks_url":"https://api.github.com/repos/angular/ts-minify/hooks","issue_events_url":"https://api.github.com/repos/angular/ts-minify/issues/events{/number}","events_url":"https://api.github.com/repos/angular/ts-minify/events","assignees_url":"https://api.github.com/repos/angular/ts-minify/assignees{/user}","branches_url":"https://api.github.com/repos/angular/ts-minify/branches{/branch}","tags_url":"https://api.github.com/repos/angular/ts-minify/tags","blobs_url":"https://api.github.com/repos/angular/ts-minify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/ts-minify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/ts-minify/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/ts-minify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/ts-minify/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/ts-minify/languages","stargazers_url":"https://api.github.com/repos/angular/ts-minify/stargazers","contributors_url":"https://api.github.com/repos/angular/ts-minify/contributors","subscribers_url":"https://api.github.com/repos/angular/ts-minify/subscribers","subscription_url":"https://api.github.com/repos/angular/ts-minify/subscription","commits_url":"https://api.github.com/repos/angular/ts-minify/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/ts-minify/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/ts-minify/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/ts-minify/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/ts-minify/contents/{+path}","compare_url":"https://api.github.com/repos/angular/ts-minify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/ts-minify/merges","archive_url":"https://api.github.com/repos/angular/ts-minify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/ts-minify/downloads","issues_url":"https://api.github.com/repos/angular/ts-minify/issues{/number}","pulls_url":"https://api.github.com/repos/angular/ts-minify/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/ts-minify/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/ts-minify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/ts-minify/labels{/name}","releases_url":"https://api.github.com/repos/angular/ts-minify/releases{/id}","created_at":"2015-07-14T21:25:05Z","updated_at":"2015-08-17T17:50:07Z","pushed_at":"2015-08-17T17:25:40Z","git_url":"git://github.com/angular/ts-minify.git","ssh_url":"git@github.com:angular/ts-minify.git","clone_url":"https://github.com/angular/ts-minify.git","svn_url":"https://github.com/angular/ts-minify","homepage":null,"size":653,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/ts-minify/pulls/31"},"html":{"href":"https://github.com/angular/ts-minify/pull/31"},"issue":{"href":"https://api.github.com/repos/angular/ts-minify/issues/31"},"comments":{"href":"https://api.github.com/repos/angular/ts-minify/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/ts-minify/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/ts-minify/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/ts-minify/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/angular/ts-minify/statuses/0d0037e7145e48d8fb5592192fef5ef55e3b2306"}}}}