{"action":"created","comment":{"url":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls/comments/223678550","pull_request_review_id":162861189,"id":223678550,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzY3ODU1MA==","diff_hunk":"@@ -78,10 +79,10 @@ export const packageTransformFactory = (\n     }, (graph, _) => graph),\n     // Add entry points to graph\n     map(graph => {\n-      const ngPkg = graph.get(pkgUri);\n+      const ngPkg = graph.get(pkgUri) as PackageNode;\n       const entryPoints = [ngPkg.data.primary, ...ngPkg.data.secondaries].map(entryPoint => {\n         const { destinationFiles, moduleId } = entryPoint;\n-        const node = new EntryPointNode(ngUrl(moduleId));\n+        const node = new EntryPointNode(ngUrl(moduleId), ngPkg.cache.sourcesFileCache);","path":"src/lib/ng-v5/package.transform.ts","position":25,"original_position":25,"commit_id":"ea01b3817ae34d1988d2cb43629ad15e481c8d18","original_commit_id":"ea01b3817ae34d1988d2cb43629ad15e481c8d18","user":{"login":"alan-agius4","id":17563226,"node_id":"MDQ6VXNlcjE3NTYzMjI2","avatar_url":"https://avatars3.githubusercontent.com/u/17563226?v=4","gravatar_id":"","url":"https://api.github.com/users/alan-agius4","html_url":"https://github.com/alan-agius4","followers_url":"https://api.github.com/users/alan-agius4/followers","following_url":"https://api.github.com/users/alan-agius4/following{/other_user}","gists_url":"https://api.github.com/users/alan-agius4/gists{/gist_id}","starred_url":"https://api.github.com/users/alan-agius4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alan-agius4/subscriptions","organizations_url":"https://api.github.com/users/alan-agius4/orgs","repos_url":"https://api.github.com/users/alan-agius4/repos","events_url":"https://api.github.com/users/alan-agius4/events{/privacy}","received_events_url":"https://api.github.com/users/alan-agius4/received_events","type":"User","site_admin":false},"body":"Share it between all EntryPoint nodes","created_at":"2018-10-09T12:29:13Z","updated_at":"2018-10-09T12:29:13Z","html_url":"https://github.com/ng-packagr/ng-packagr/pull/1101#discussion_r223678550","pull_request_url":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls/1101","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls/comments/223678550"},"html":{"href":"https://github.com/ng-packagr/ng-packagr/pull/1101#discussion_r223678550"},"pull_request":{"href":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls/1101"}},"in_reply_to_id":223640156},"pull_request":{"url":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls/1101","id":218889131,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4ODg5MTMx","html_url":"https://github.com/ng-packagr/ng-packagr/pull/1101","diff_url":"https://github.com/ng-packagr/ng-packagr/pull/1101.diff","patch_url":"https://github.com/ng-packagr/ng-packagr/pull/1101.patch","issue_url":"https://api.github.com/repos/ng-packagr/ng-packagr/issues/1101","number":1101,"state":"open","locked":false,"title":"fix: `JavaScript heap out of memory` when having a lot of secondary entrypoints","user":{"login":"alan-agius4","id":17563226,"node_id":"MDQ6VXNlcjE3NTYzMjI2","avatar_url":"https://avatars3.githubusercontent.com/u/17563226?v=4","gravatar_id":"","url":"https://api.github.com/users/alan-agius4","html_url":"https://github.com/alan-agius4","followers_url":"https://api.github.com/users/alan-agius4/followers","following_url":"https://api.github.com/users/alan-agius4/following{/other_user}","gists_url":"https://api.github.com/users/alan-agius4/gists{/gist_id}","starred_url":"https://api.github.com/users/alan-agius4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alan-agius4/subscriptions","organizations_url":"https://api.github.com/users/alan-agius4/orgs","repos_url":"https://api.github.com/users/alan-agius4/repos","events_url":"https://api.github.com/users/alan-agius4/events{/privacy}","received_events_url":"https://api.github.com/users/alan-agius4/received_events","type":"User","site_admin":false},"body":"\r\nPreviously we had a source file cache for each entrypoint, with this change we unify it to have a single one for all the entrypoints, so that when having a lot of entrypoints we don't cache node_modules and files more than once.\r\n\r\nCloses #1099\r\n","created_at":"2018-09-28T08:21:39Z","updated_at":"2018-10-09T12:29:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"651052848d3303f71e25dad42efd7227e019aa64","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls/1101/commits","review_comments_url":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls/1101/comments","review_comment_url":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ng-packagr/ng-packagr/issues/1101/comments","statuses_url":"https://api.github.com/repos/ng-packagr/ng-packagr/statuses/ea01b3817ae34d1988d2cb43629ad15e481c8d18","head":{"label":"alan-agius4:perf_memory_less","ref":"perf_memory_less","sha":"ea01b3817ae34d1988d2cb43629ad15e481c8d18","user":{"login":"alan-agius4","id":17563226,"node_id":"MDQ6VXNlcjE3NTYzMjI2","avatar_url":"https://avatars3.githubusercontent.com/u/17563226?v=4","gravatar_id":"","url":"https://api.github.com/users/alan-agius4","html_url":"https://github.com/alan-agius4","followers_url":"https://api.github.com/users/alan-agius4/followers","following_url":"https://api.github.com/users/alan-agius4/following{/other_user}","gists_url":"https://api.github.com/users/alan-agius4/gists{/gist_id}","starred_url":"https://api.github.com/users/alan-agius4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alan-agius4/subscriptions","organizations_url":"https://api.github.com/users/alan-agius4/orgs","repos_url":"https://api.github.com/users/alan-agius4/repos","events_url":"https://api.github.com/users/alan-agius4/events{/privacy}","received_events_url":"https://api.github.com/users/alan-agius4/received_events","type":"User","site_admin":false},"repo":{"id":112093113,"node_id":"MDEwOlJlcG9zaXRvcnkxMTIwOTMxMTM=","name":"ng-packagr","full_name":"alan-agius4/ng-packagr","private":false,"owner":{"login":"alan-agius4","id":17563226,"node_id":"MDQ6VXNlcjE3NTYzMjI2","avatar_url":"https://avatars3.githubusercontent.com/u/17563226?v=4","gravatar_id":"","url":"https://api.github.com/users/alan-agius4","html_url":"https://github.com/alan-agius4","followers_url":"https://api.github.com/users/alan-agius4/followers","following_url":"https://api.github.com/users/alan-agius4/following{/other_user}","gists_url":"https://api.github.com/users/alan-agius4/gists{/gist_id}","starred_url":"https://api.github.com/users/alan-agius4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alan-agius4/subscriptions","organizations_url":"https://api.github.com/users/alan-agius4/orgs","repos_url":"https://api.github.com/users/alan-agius4/repos","events_url":"https://api.github.com/users/alan-agius4/events{/privacy}","received_events_url":"https://api.github.com/users/alan-agius4/received_events","type":"User","site_admin":false},"html_url":"https://github.com/alan-agius4/ng-packagr","description":"Transpile your libraries to Angular Package Format","fork":true,"url":"https://api.github.com/repos/alan-agius4/ng-packagr","forks_url":"https://api.github.com/repos/alan-agius4/ng-packagr/forks","keys_url":"https://api.github.com/repos/alan-agius4/ng-packagr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alan-agius4/ng-packagr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alan-agius4/ng-packagr/teams","hooks_url":"https://api.github.com/repos/alan-agius4/ng-packagr/hooks","issue_events_url":"https://api.github.com/repos/alan-agius4/ng-packagr/issues/events{/number}","events_url":"https://api.github.com/repos/alan-agius4/ng-packagr/events","assignees_url":"https://api.github.com/repos/alan-agius4/ng-packagr/assignees{/user}","branches_url":"https://api.github.com/repos/alan-agius4/ng-packagr/branches{/branch}","tags_url":"https://api.github.com/repos/alan-agius4/ng-packagr/tags","blobs_url":"https://api.github.com/repos/alan-agius4/ng-packagr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alan-agius4/ng-packagr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alan-agius4/ng-packagr/git/refs{/sha}","trees_url":"https://api.github.com/repos/alan-agius4/ng-packagr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alan-agius4/ng-packagr/statuses/{sha}","languages_url":"https://api.github.com/repos/alan-agius4/ng-packagr/languages","stargazers_url":"https://api.github.com/repos/alan-agius4/ng-packagr/stargazers","contributors_url":"https://api.github.com/repos/alan-agius4/ng-packagr/contributors","subscribers_url":"https://api.github.com/repos/alan-agius4/ng-packagr/subscribers","subscription_url":"https://api.github.com/repos/alan-agius4/ng-packagr/subscription","commits_url":"https://api.github.com/repos/alan-agius4/ng-packagr/commits{/sha}","git_commits_url":"https://api.github.com/repos/alan-agius4/ng-packagr/git/commits{/sha}","comments_url":"https://api.github.com/repos/alan-agius4/ng-packagr/comments{/number}","issue_comment_url":"https://api.github.com/repos/alan-agius4/ng-packagr/issues/comments{/number}","contents_url":"https://api.github.com/repos/alan-agius4/ng-packagr/contents/{+path}","compare_url":"https://api.github.com/repos/alan-agius4/ng-packagr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alan-agius4/ng-packagr/merges","archive_url":"https://api.github.com/repos/alan-agius4/ng-packagr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alan-agius4/ng-packagr/downloads","issues_url":"https://api.github.com/repos/alan-agius4/ng-packagr/issues{/number}","pulls_url":"https://api.github.com/repos/alan-agius4/ng-packagr/pulls{/number}","milestones_url":"https://api.github.com/repos/alan-agius4/ng-packagr/milestones{/number}","notifications_url":"https://api.github.com/repos/alan-agius4/ng-packagr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alan-agius4/ng-packagr/labels{/name}","releases_url":"https://api.github.com/repos/alan-agius4/ng-packagr/releases{/id}","deployments_url":"https://api.github.com/repos/alan-agius4/ng-packagr/deployments","created_at":"2017-11-26T15:16:43Z","updated_at":"2018-09-27T10:56:52Z","pushed_at":"2018-10-09T12:28:22Z","git_url":"git://github.com/alan-agius4/ng-packagr.git","ssh_url":"git@github.com:alan-agius4/ng-packagr.git","clone_url":"https://github.com/alan-agius4/ng-packagr.git","svn_url":"https://github.com/alan-agius4/ng-packagr","homepage":"http://spektrakel.de/ng-packagr/","size":11588,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ng-packagr:master","ref":"master","sha":"e0fed36e909ed75d0a665fffe7ef5a36ccb1f36b","user":{"login":"ng-packagr","id":42751888,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNzUxODg4","avatar_url":"https://avatars1.githubusercontent.com/u/42751888?v=4","gravatar_id":"","url":"https://api.github.com/users/ng-packagr","html_url":"https://github.com/ng-packagr","followers_url":"https://api.github.com/users/ng-packagr/followers","following_url":"https://api.github.com/users/ng-packagr/following{/other_user}","gists_url":"https://api.github.com/users/ng-packagr/gists{/gist_id}","starred_url":"https://api.github.com/users/ng-packagr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ng-packagr/subscriptions","organizations_url":"https://api.github.com/users/ng-packagr/orgs","repos_url":"https://api.github.com/users/ng-packagr/repos","events_url":"https://api.github.com/users/ng-packagr/events{/privacy}","received_events_url":"https://api.github.com/users/ng-packagr/received_events","type":"Organization","site_admin":false},"repo":{"id":91553810,"node_id":"MDEwOlJlcG9zaXRvcnk5MTU1MzgxMA==","name":"ng-packagr","full_name":"ng-packagr/ng-packagr","private":false,"owner":{"login":"ng-packagr","id":42751888,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNzUxODg4","avatar_url":"https://avatars1.githubusercontent.com/u/42751888?v=4","gravatar_id":"","url":"https://api.github.com/users/ng-packagr","html_url":"https://github.com/ng-packagr","followers_url":"https://api.github.com/users/ng-packagr/followers","following_url":"https://api.github.com/users/ng-packagr/following{/other_user}","gists_url":"https://api.github.com/users/ng-packagr/gists{/gist_id}","starred_url":"https://api.github.com/users/ng-packagr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ng-packagr/subscriptions","organizations_url":"https://api.github.com/users/ng-packagr/orgs","repos_url":"https://api.github.com/users/ng-packagr/repos","events_url":"https://api.github.com/users/ng-packagr/events{/privacy}","received_events_url":"https://api.github.com/users/ng-packagr/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ng-packagr/ng-packagr","description":"Transpile your libraries to Angular Package Format","fork":false,"url":"https://api.github.com/repos/ng-packagr/ng-packagr","forks_url":"https://api.github.com/repos/ng-packagr/ng-packagr/forks","keys_url":"https://api.github.com/repos/ng-packagr/ng-packagr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ng-packagr/ng-packagr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ng-packagr/ng-packagr/teams","hooks_url":"https://api.github.com/repos/ng-packagr/ng-packagr/hooks","issue_events_url":"https://api.github.com/repos/ng-packagr/ng-packagr/issues/events{/number}","events_url":"https://api.github.com/repos/ng-packagr/ng-packagr/events","assignees_url":"https://api.github.com/repos/ng-packagr/ng-packagr/assignees{/user}","branches_url":"https://api.github.com/repos/ng-packagr/ng-packagr/branches{/branch}","tags_url":"https://api.github.com/repos/ng-packagr/ng-packagr/tags","blobs_url":"https://api.github.com/repos/ng-packagr/ng-packagr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ng-packagr/ng-packagr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ng-packagr/ng-packagr/git/refs{/sha}","trees_url":"https://api.github.com/repos/ng-packagr/ng-packagr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ng-packagr/ng-packagr/statuses/{sha}","languages_url":"https://api.github.com/repos/ng-packagr/ng-packagr/languages","stargazers_url":"https://api.github.com/repos/ng-packagr/ng-packagr/stargazers","contributors_url":"https://api.github.com/repos/ng-packagr/ng-packagr/contributors","subscribers_url":"https://api.github.com/repos/ng-packagr/ng-packagr/subscribers","subscription_url":"https://api.github.com/repos/ng-packagr/ng-packagr/subscription","commits_url":"https://api.github.com/repos/ng-packagr/ng-packagr/commits{/sha}","git_commits_url":"https://api.github.com/repos/ng-packagr/ng-packagr/git/commits{/sha}","comments_url":"https://api.github.com/repos/ng-packagr/ng-packagr/comments{/number}","issue_comment_url":"https://api.github.com/repos/ng-packagr/ng-packagr/issues/comments{/number}","contents_url":"https://api.github.com/repos/ng-packagr/ng-packagr/contents/{+path}","compare_url":"https://api.github.com/repos/ng-packagr/ng-packagr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ng-packagr/ng-packagr/merges","archive_url":"https://api.github.com/repos/ng-packagr/ng-packagr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ng-packagr/ng-packagr/downloads","issues_url":"https://api.github.com/repos/ng-packagr/ng-packagr/issues{/number}","pulls_url":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls{/number}","milestones_url":"https://api.github.com/repos/ng-packagr/ng-packagr/milestones{/number}","notifications_url":"https://api.github.com/repos/ng-packagr/ng-packagr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ng-packagr/ng-packagr/labels{/name}","releases_url":"https://api.github.com/repos/ng-packagr/ng-packagr/releases{/id}","deployments_url":"https://api.github.com/repos/ng-packagr/ng-packagr/deployments","created_at":"2017-05-17T08:43:27Z","updated_at":"2018-10-08T14:42:52Z","pushed_at":"2018-10-09T12:28:30Z","git_url":"git://github.com/ng-packagr/ng-packagr.git","ssh_url":"git@github.com:ng-packagr/ng-packagr.git","clone_url":"https://github.com/ng-packagr/ng-packagr.git","svn_url":"https://github.com/ng-packagr/ng-packagr","homepage":"http://ng-packagr.github.io/ng-packagr/","size":11917,"stargazers_count":1122,"watchers_count":1122,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":147,"mirror_url":null,"archived":false,"open_issues_count":143,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":147,"open_issues":143,"watchers":1122,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls/1101"},"html":{"href":"https://github.com/ng-packagr/ng-packagr/pull/1101"},"issue":{"href":"https://api.github.com/repos/ng-packagr/ng-packagr/issues/1101"},"comments":{"href":"https://api.github.com/repos/ng-packagr/ng-packagr/issues/1101/comments"},"review_comments":{"href":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls/1101/comments"},"review_comment":{"href":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ng-packagr/ng-packagr/pulls/1101/commits"},"statuses":{"href":"https://api.github.com/repos/ng-packagr/ng-packagr/statuses/ea01b3817ae34d1988d2cb43629ad15e481c8d18"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"alan-agius4"}}