{"action":"created","comment":{"url":"https://api.github.com/repos/lerna/lerna/pulls/comments/178207324","pull_request_review_id":108234954,"id":178207324,"diff_hunk":"@@ -27,6 +27,14 @@ export const builder = {\n     type: \"boolean\",\n     default: undefined,\n   },\n+  // This option controls prefix for stream output so that it can be disabled to be friendly\n+  // to tools like Visual Studio Code to highlight the raw results\n+  prefix: {\n+    group: \"Command Options:\",\n+    describe: \"Enable prefix for stream output\",\n+    type: \"boolean\",\n+    default: true,","path":"src/commands/ExecCommand.js","position":10,"original_position":10,"commit_id":"a3721327853eb2311c56351fe24d403ee7235441","original_commit_id":"a3721327853eb2311c56351fe24d403ee7235441","user":{"login":"evocateur","id":5605,"avatar_url":"https://avatars3.githubusercontent.com/u/5605?v=4","gravatar_id":"","url":"https://api.github.com/users/evocateur","html_url":"https://github.com/evocateur","followers_url":"https://api.github.com/users/evocateur/followers","following_url":"https://api.github.com/users/evocateur/following{/other_user}","gists_url":"https://api.github.com/users/evocateur/gists{/gist_id}","starred_url":"https://api.github.com/users/evocateur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evocateur/subscriptions","organizations_url":"https://api.github.com/users/evocateur/orgs","repos_url":"https://api.github.com/users/evocateur/repos","events_url":"https://api.github.com/users/evocateur/events{/privacy}","received_events_url":"https://api.github.com/users/evocateur/received_events","type":"User","site_admin":false},"body":"So the weird thing about our \"durable\" options and yargs is that we need to specify `default: undefined` here, otherwise yargs overwrites our lerna.json-based config. Sorry for the weirdness.","created_at":"2018-03-29T23:37:19Z","updated_at":"2018-03-29T23:39:03Z","html_url":"https://github.com/lerna/lerna/pull/1352#discussion_r178207324","pull_request_url":"https://api.github.com/repos/lerna/lerna/pulls/1352","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/lerna/lerna/pulls/comments/178207324"},"html":{"href":"https://github.com/lerna/lerna/pull/1352#discussion_r178207324"},"pull_request":{"href":"https://api.github.com/repos/lerna/lerna/pulls/1352"}}},"pull_request":{"url":"https://api.github.com/repos/lerna/lerna/pulls/1352","id":178406454,"html_url":"https://github.com/lerna/lerna/pull/1352","diff_url":"https://github.com/lerna/lerna/pull/1352.diff","patch_url":"https://github.com/lerna/lerna/pull/1352.patch","issue_url":"https://api.github.com/repos/lerna/lerna/issues/1352","number":1352,"state":"open","locked":false,"title":"feat: add --prefix flag","user":{"login":"raymondfeng","id":540892,"avatar_url":"https://avatars0.githubusercontent.com/u/540892?v=4","gravatar_id":"","url":"https://api.github.com/users/raymondfeng","html_url":"https://github.com/raymondfeng","followers_url":"https://api.github.com/users/raymondfeng/followers","following_url":"https://api.github.com/users/raymondfeng/following{/other_user}","gists_url":"https://api.github.com/users/raymondfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondfeng/subscriptions","organizations_url":"https://api.github.com/users/raymondfeng/orgs","repos_url":"https://api.github.com/users/raymondfeng/repos","events_url":"https://api.github.com/users/raymondfeng/events{/privacy}","received_events_url":"https://api.github.com/users/raymondfeng/received_events","type":"User","site_admin":false},"body":"<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n## Description\r\n<!--- Describe your changes in detail -->\r\n\r\nBy default, stream output is prefixed with the originating package name. This flag allows us to disable the prefix so that the output can be parsed by a tool such as Visual Studio Code can highlight the result by type for all packages in the same project.\r\n\r\n## Motivation and Context\r\n<!--- Why is this change required? What problem does it solve? -->\r\n<!--- If it fixes an open issue, please link to the issue here. -->\r\n\r\nWe set up the monorepo with npm scripts so that we can run `tsc` and `mocha`. When the scripts are \r\ntriggered inside Visual Studio Code, the stream prefix gets in the way and `tsc` problem matcher cannot\r\nrecognize the output.\r\n\r\n## How Has This Been Tested?\r\n<!--- Please describe in detail how you tested your changes. -->\r\n<!--- Include details of your testing environment, and the tests you ran to -->\r\n<!--- see how your change affects other areas of the code, etc. -->\r\n\r\nA few test cases are added to the PR.\r\n\r\n## Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] My code follows the code style of this project.\r\n- [x] My change requires a change to the documentation.\r\n- [x] I have updated the documentation accordingly.\r\n- [x] I have read the **CONTRIBUTING** document.\r\n- [x] I have added tests to cover my changes.\r\n- [x] All new and existing tests passed.\r\n","created_at":"2018-03-29T18:30:24Z","updated_at":"2018-03-29T23:39:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"798073a0571f08a071a148c67df76da9be0cd8b2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lerna/lerna/pulls/1352/commits","review_comments_url":"https://api.github.com/repos/lerna/lerna/pulls/1352/comments","review_comment_url":"https://api.github.com/repos/lerna/lerna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lerna/lerna/issues/1352/comments","statuses_url":"https://api.github.com/repos/lerna/lerna/statuses/a3721327853eb2311c56351fe24d403ee7235441","head":{"label":"raymondfeng:2.x","ref":"2.x","sha":"a3721327853eb2311c56351fe24d403ee7235441","user":{"login":"raymondfeng","id":540892,"avatar_url":"https://avatars0.githubusercontent.com/u/540892?v=4","gravatar_id":"","url":"https://api.github.com/users/raymondfeng","html_url":"https://github.com/raymondfeng","followers_url":"https://api.github.com/users/raymondfeng/followers","following_url":"https://api.github.com/users/raymondfeng/following{/other_user}","gists_url":"https://api.github.com/users/raymondfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondfeng/subscriptions","organizations_url":"https://api.github.com/users/raymondfeng/orgs","repos_url":"https://api.github.com/users/raymondfeng/repos","events_url":"https://api.github.com/users/raymondfeng/events{/privacy}","received_events_url":"https://api.github.com/users/raymondfeng/received_events","type":"User","site_admin":false},"repo":{"id":127318052,"name":"lerna","full_name":"raymondfeng/lerna","owner":{"login":"raymondfeng","id":540892,"avatar_url":"https://avatars0.githubusercontent.com/u/540892?v=4","gravatar_id":"","url":"https://api.github.com/users/raymondfeng","html_url":"https://github.com/raymondfeng","followers_url":"https://api.github.com/users/raymondfeng/followers","following_url":"https://api.github.com/users/raymondfeng/following{/other_user}","gists_url":"https://api.github.com/users/raymondfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondfeng/subscriptions","organizations_url":"https://api.github.com/users/raymondfeng/orgs","repos_url":"https://api.github.com/users/raymondfeng/repos","events_url":"https://api.github.com/users/raymondfeng/events{/privacy}","received_events_url":"https://api.github.com/users/raymondfeng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raymondfeng/lerna","description":":dragon: A tool for managing JavaScript projects with multiple packages.","fork":true,"url":"https://api.github.com/repos/raymondfeng/lerna","forks_url":"https://api.github.com/repos/raymondfeng/lerna/forks","keys_url":"https://api.github.com/repos/raymondfeng/lerna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raymondfeng/lerna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raymondfeng/lerna/teams","hooks_url":"https://api.github.com/repos/raymondfeng/lerna/hooks","issue_events_url":"https://api.github.com/repos/raymondfeng/lerna/issues/events{/number}","events_url":"https://api.github.com/repos/raymondfeng/lerna/events","assignees_url":"https://api.github.com/repos/raymondfeng/lerna/assignees{/user}","branches_url":"https://api.github.com/repos/raymondfeng/lerna/branches{/branch}","tags_url":"https://api.github.com/repos/raymondfeng/lerna/tags","blobs_url":"https://api.github.com/repos/raymondfeng/lerna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raymondfeng/lerna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raymondfeng/lerna/git/refs{/sha}","trees_url":"https://api.github.com/repos/raymondfeng/lerna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raymondfeng/lerna/statuses/{sha}","languages_url":"https://api.github.com/repos/raymondfeng/lerna/languages","stargazers_url":"https://api.github.com/repos/raymondfeng/lerna/stargazers","contributors_url":"https://api.github.com/repos/raymondfeng/lerna/contributors","subscribers_url":"https://api.github.com/repos/raymondfeng/lerna/subscribers","subscription_url":"https://api.github.com/repos/raymondfeng/lerna/subscription","commits_url":"https://api.github.com/repos/raymondfeng/lerna/commits{/sha}","git_commits_url":"https://api.github.com/repos/raymondfeng/lerna/git/commits{/sha}","comments_url":"https://api.github.com/repos/raymondfeng/lerna/comments{/number}","issue_comment_url":"https://api.github.com/repos/raymondfeng/lerna/issues/comments{/number}","contents_url":"https://api.github.com/repos/raymondfeng/lerna/contents/{+path}","compare_url":"https://api.github.com/repos/raymondfeng/lerna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raymondfeng/lerna/merges","archive_url":"https://api.github.com/repos/raymondfeng/lerna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raymondfeng/lerna/downloads","issues_url":"https://api.github.com/repos/raymondfeng/lerna/issues{/number}","pulls_url":"https://api.github.com/repos/raymondfeng/lerna/pulls{/number}","milestones_url":"https://api.github.com/repos/raymondfeng/lerna/milestones{/number}","notifications_url":"https://api.github.com/repos/raymondfeng/lerna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raymondfeng/lerna/labels{/name}","releases_url":"https://api.github.com/repos/raymondfeng/lerna/releases{/id}","deployments_url":"https://api.github.com/repos/raymondfeng/lerna/deployments","created_at":"2018-03-29T16:26:57Z","updated_at":"2018-03-29T16:26:59Z","pushed_at":"2018-03-29T23:24:57Z","git_url":"git://github.com/raymondfeng/lerna.git","ssh_url":"git@github.com:raymondfeng/lerna.git","clone_url":"https://github.com/raymondfeng/lerna.git","svn_url":"https://github.com/raymondfeng/lerna","homepage":"https://lernajs.io","size":3227,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lerna:2.x","ref":"2.x","sha":"f785f6dba6dbf6354588d1939d49262e98a42019","user":{"login":"lerna","id":19333396,"avatar_url":"https://avatars2.githubusercontent.com/u/19333396?v=4","gravatar_id":"","url":"https://api.github.com/users/lerna","html_url":"https://github.com/lerna","followers_url":"https://api.github.com/users/lerna/followers","following_url":"https://api.github.com/users/lerna/following{/other_user}","gists_url":"https://api.github.com/users/lerna/gists{/gist_id}","starred_url":"https://api.github.com/users/lerna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lerna/subscriptions","organizations_url":"https://api.github.com/users/lerna/orgs","repos_url":"https://api.github.com/users/lerna/repos","events_url":"https://api.github.com/users/lerna/events{/privacy}","received_events_url":"https://api.github.com/users/lerna/received_events","type":"Organization","site_admin":false},"repo":{"id":47394776,"name":"lerna","full_name":"lerna/lerna","owner":{"login":"lerna","id":19333396,"avatar_url":"https://avatars2.githubusercontent.com/u/19333396?v=4","gravatar_id":"","url":"https://api.github.com/users/lerna","html_url":"https://github.com/lerna","followers_url":"https://api.github.com/users/lerna/followers","following_url":"https://api.github.com/users/lerna/following{/other_user}","gists_url":"https://api.github.com/users/lerna/gists{/gist_id}","starred_url":"https://api.github.com/users/lerna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lerna/subscriptions","organizations_url":"https://api.github.com/users/lerna/orgs","repos_url":"https://api.github.com/users/lerna/repos","events_url":"https://api.github.com/users/lerna/events{/privacy}","received_events_url":"https://api.github.com/users/lerna/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lerna/lerna","description":":dragon: A tool for managing JavaScript projects with multiple packages.","fork":false,"url":"https://api.github.com/repos/lerna/lerna","forks_url":"https://api.github.com/repos/lerna/lerna/forks","keys_url":"https://api.github.com/repos/lerna/lerna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lerna/lerna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lerna/lerna/teams","hooks_url":"https://api.github.com/repos/lerna/lerna/hooks","issue_events_url":"https://api.github.com/repos/lerna/lerna/issues/events{/number}","events_url":"https://api.github.com/repos/lerna/lerna/events","assignees_url":"https://api.github.com/repos/lerna/lerna/assignees{/user}","branches_url":"https://api.github.com/repos/lerna/lerna/branches{/branch}","tags_url":"https://api.github.com/repos/lerna/lerna/tags","blobs_url":"https://api.github.com/repos/lerna/lerna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lerna/lerna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lerna/lerna/git/refs{/sha}","trees_url":"https://api.github.com/repos/lerna/lerna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lerna/lerna/statuses/{sha}","languages_url":"https://api.github.com/repos/lerna/lerna/languages","stargazers_url":"https://api.github.com/repos/lerna/lerna/stargazers","contributors_url":"https://api.github.com/repos/lerna/lerna/contributors","subscribers_url":"https://api.github.com/repos/lerna/lerna/subscribers","subscription_url":"https://api.github.com/repos/lerna/lerna/subscription","commits_url":"https://api.github.com/repos/lerna/lerna/commits{/sha}","git_commits_url":"https://api.github.com/repos/lerna/lerna/git/commits{/sha}","comments_url":"https://api.github.com/repos/lerna/lerna/comments{/number}","issue_comment_url":"https://api.github.com/repos/lerna/lerna/issues/comments{/number}","contents_url":"https://api.github.com/repos/lerna/lerna/contents/{+path}","compare_url":"https://api.github.com/repos/lerna/lerna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lerna/lerna/merges","archive_url":"https://api.github.com/repos/lerna/lerna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lerna/lerna/downloads","issues_url":"https://api.github.com/repos/lerna/lerna/issues{/number}","pulls_url":"https://api.github.com/repos/lerna/lerna/pulls{/number}","milestones_url":"https://api.github.com/repos/lerna/lerna/milestones{/number}","notifications_url":"https://api.github.com/repos/lerna/lerna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lerna/lerna/labels{/name}","releases_url":"https://api.github.com/repos/lerna/lerna/releases{/id}","deployments_url":"https://api.github.com/repos/lerna/lerna/deployments","created_at":"2015-12-04T09:36:55Z","updated_at":"2018-03-29T23:32:56Z","pushed_at":"2018-03-29T23:24:58Z","git_url":"git://github.com/lerna/lerna.git","ssh_url":"git@github.com:lerna/lerna.git","clone_url":"https://github.com/lerna/lerna.git","svn_url":"https://github.com/lerna/lerna","homepage":"https://lernajs.io","size":3220,"stargazers_count":8730,"watchers_count":8730,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":564,"mirror_url":null,"archived":false,"open_issues_count":248,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":564,"open_issues":248,"watchers":8730,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lerna/lerna/pulls/1352"},"html":{"href":"https://github.com/lerna/lerna/pull/1352"},"issue":{"href":"https://api.github.com/repos/lerna/lerna/issues/1352"},"comments":{"href":"https://api.github.com/repos/lerna/lerna/issues/1352/comments"},"review_comments":{"href":"https://api.github.com/repos/lerna/lerna/pulls/1352/comments"},"review_comment":{"href":"https://api.github.com/repos/lerna/lerna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lerna/lerna/pulls/1352/commits"},"statuses":{"href":"https://api.github.com/repos/lerna/lerna/statuses/a3721327853eb2311c56351fe24d403ee7235441"}},"author_association":"NONE"}}
{"actor":{"display_login":"evocateur"}}