{"action":"created","comment":{"url":"https://api.github.com/repos/Esri/hub.js/pulls/comments/223165146","pull_request_review_id":162237118,"id":223165146,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzE2NTE0Ng==","diff_hunk":"@@ -75,6 +75,7 @@\n   },\n   \"scripts\": {\n     \"build\": \"lerna run build\",\n+    \"watch\": \"support/dev.sh\",","path":"package.json","position":4,"original_position":4,"commit_id":"2dddb80f15e386ba625c50c3c357f5df994e01e2","original_commit_id":"2dddb80f15e386ba625c50c3c357f5df994e01e2","user":{"login":"tomwayson","id":662944,"node_id":"MDQ6VXNlcjY2Mjk0NA==","avatar_url":"https://avatars2.githubusercontent.com/u/662944?v=4","gravatar_id":"","url":"https://api.github.com/users/tomwayson","html_url":"https://github.com/tomwayson","followers_url":"https://api.github.com/users/tomwayson/followers","following_url":"https://api.github.com/users/tomwayson/following{/other_user}","gists_url":"https://api.github.com/users/tomwayson/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwayson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwayson/subscriptions","organizations_url":"https://api.github.com/users/tomwayson/orgs","repos_url":"https://api.github.com/users/tomwayson/repos","events_url":"https://api.github.com/users/tomwayson/events{/privacy}","received_events_url":"https://api.github.com/users/tomwayson/received_events","type":"User","site_admin":false},"body":"how can we pass arguments to `lerna run` though?\r\n","created_at":"2018-10-06T00:32:37Z","updated_at":"2018-10-06T00:32:38Z","html_url":"https://github.com/Esri/hub.js/pull/79#discussion_r223165146","pull_request_url":"https://api.github.com/repos/Esri/hub.js/pulls/79","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Esri/hub.js/pulls/comments/223165146"},"html":{"href":"https://github.com/Esri/hub.js/pull/79#discussion_r223165146"},"pull_request":{"href":"https://api.github.com/repos/Esri/hub.js/pulls/79"}},"in_reply_to_id":223159580},"pull_request":{"url":"https://api.github.com/repos/Esri/hub.js/pulls/79","id":220534852,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNTM0ODUy","html_url":"https://github.com/Esri/hub.js/pull/79","diff_url":"https://github.com/Esri/hub.js/pull/79.diff","patch_url":"https://github.com/Esri/hub.js/pull/79.patch","issue_url":"https://api.github.com/repos/Esri/hub.js/issues/79","number":79,"state":"open","locked":false,"title":"add dev scripts to watch a specific package and run a specific build","user":{"login":"tomwayson","id":662944,"node_id":"MDQ6VXNlcjY2Mjk0NA==","avatar_url":"https://avatars2.githubusercontent.com/u/662944?v=4","gravatar_id":"","url":"https://api.github.com/users/tomwayson","html_url":"https://github.com/tomwayson","followers_url":"https://api.github.com/users/tomwayson/followers","following_url":"https://api.github.com/users/tomwayson/following{/other_user}","gists_url":"https://api.github.com/users/tomwayson/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwayson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwayson/subscriptions","organizations_url":"https://api.github.com/users/tomwayson/orgs","repos_url":"https://api.github.com/users/tomwayson/repos","events_url":"https://api.github.com/users/tomwayson/events{/privacy}","received_events_url":"https://api.github.com/users/tomwayson/received_events","type":"User","site_admin":false},"body":"added `dev:esm`, `dev:umd`, and `dev:node` scripts for initiative package (only, so far).\r\n\r\nYou can run `lerna run dev:esm --parallel` and `tsc` will launch in watch mode and recompile the ESM output instantly whenver you change the TS source for the initiatives package. 🎉 \r\n\r\nBut of course, the one we care about, `lerna run dev:umd --parallel`, does not work. I get this output:\r\n\r\n```bash\r\n➜  hub.js git:(chore/dist-scripts) lerna run dev:umd --parallel\r\nlerna info version 2.8.0\r\nlerna info run in 1 package(s): npm run dev:umd\r\n@esri/hub-initiatives: > @esri/hub-initiatives@1.3.0 dev:umd /Users/tom/code/hub.js/packages/initiatives\r\n@esri/hub-initiatives: > rollup -w -c ../../umd-base-profile.js\r\n@esri/hub-initiatives: rollup v0.53.4\r\n@esri/hub-initiatives: bundles ./src/index.ts → dist/umd/initiatives.umd.js...\r\nlerna success run Ran npm script 'dev:umd' in packages:\r\nlerna success - @esri/hub-initiatives\r\n\r\n```\r\n\r\nThe command that I used in the `dev:umd` script _does_ launch rollup in watch mode by `cd`ing into the `packages/initiatives` folder and running `../../node_modules/.bin/rollup -w -c ../../umd-base-profile.js`, which outputs:\r\n\r\n```bash\r\nrollup v0.53.4\r\nbundles ./src/index.ts → dist/umd/initiatives.umd.js...\r\ncreated dist/umd/initiatives.umd.js in 246ms\r\n\r\n[2018-10-04 15:18:32] waiting for changes...\r\n```\r\n\r\nIt's almost like lerna interprets the rollup output as being done.\r\n","created_at":"2018-10-04T22:21:30Z","updated_at":"2018-10-06T00:32:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c25ebefcfd56d9358b75a47640e6fd1dd59f95c9","assignee":null,"assignees":[],"requested_reviewers":[{"login":"dbouwman","id":119129,"node_id":"MDQ6VXNlcjExOTEyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/119129?v=4","gravatar_id":"","url":"https://api.github.com/users/dbouwman","html_url":"https://github.com/dbouwman","followers_url":"https://api.github.com/users/dbouwman/followers","following_url":"https://api.github.com/users/dbouwman/following{/other_user}","gists_url":"https://api.github.com/users/dbouwman/gists{/gist_id}","starred_url":"https://api.github.com/users/dbouwman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbouwman/subscriptions","organizations_url":"https://api.github.com/users/dbouwman/orgs","repos_url":"https://api.github.com/users/dbouwman/repos","events_url":"https://api.github.com/users/dbouwman/events{/privacy}","received_events_url":"https://api.github.com/users/dbouwman/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Esri/hub.js/pulls/79/commits","review_comments_url":"https://api.github.com/repos/Esri/hub.js/pulls/79/comments","review_comment_url":"https://api.github.com/repos/Esri/hub.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Esri/hub.js/issues/79/comments","statuses_url":"https://api.github.com/repos/Esri/hub.js/statuses/2dddb80f15e386ba625c50c3c357f5df994e01e2","head":{"label":"Esri:chore/dist-scripts","ref":"chore/dist-scripts","sha":"2dddb80f15e386ba625c50c3c357f5df994e01e2","user":{"login":"Esri","id":628795,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyODc5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/628795?v=4","gravatar_id":"","url":"https://api.github.com/users/Esri","html_url":"https://github.com/Esri","followers_url":"https://api.github.com/users/Esri/followers","following_url":"https://api.github.com/users/Esri/following{/other_user}","gists_url":"https://api.github.com/users/Esri/gists{/gist_id}","starred_url":"https://api.github.com/users/Esri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Esri/subscriptions","organizations_url":"https://api.github.com/users/Esri/orgs","repos_url":"https://api.github.com/users/Esri/repos","events_url":"https://api.github.com/users/Esri/events{/privacy}","received_events_url":"https://api.github.com/users/Esri/received_events","type":"Organization","site_admin":false},"repo":{"id":126880567,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY4ODA1Njc=","name":"hub.js","full_name":"Esri/hub.js","private":false,"owner":{"login":"Esri","id":628795,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyODc5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/628795?v=4","gravatar_id":"","url":"https://api.github.com/users/Esri","html_url":"https://github.com/Esri","followers_url":"https://api.github.com/users/Esri/followers","following_url":"https://api.github.com/users/Esri/following{/other_user}","gists_url":"https://api.github.com/users/Esri/gists{/gist_id}","starred_url":"https://api.github.com/users/Esri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Esri/subscriptions","organizations_url":"https://api.github.com/users/Esri/orgs","repos_url":"https://api.github.com/users/Esri/repos","events_url":"https://api.github.com/users/Esri/events{/privacy}","received_events_url":"https://api.github.com/users/Esri/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Esri/hub.js","description":"JavaScript wrappers for talking to ArcGIS Hub","fork":false,"url":"https://api.github.com/repos/Esri/hub.js","forks_url":"https://api.github.com/repos/Esri/hub.js/forks","keys_url":"https://api.github.com/repos/Esri/hub.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Esri/hub.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Esri/hub.js/teams","hooks_url":"https://api.github.com/repos/Esri/hub.js/hooks","issue_events_url":"https://api.github.com/repos/Esri/hub.js/issues/events{/number}","events_url":"https://api.github.com/repos/Esri/hub.js/events","assignees_url":"https://api.github.com/repos/Esri/hub.js/assignees{/user}","branches_url":"https://api.github.com/repos/Esri/hub.js/branches{/branch}","tags_url":"https://api.github.com/repos/Esri/hub.js/tags","blobs_url":"https://api.github.com/repos/Esri/hub.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Esri/hub.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Esri/hub.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Esri/hub.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Esri/hub.js/statuses/{sha}","languages_url":"https://api.github.com/repos/Esri/hub.js/languages","stargazers_url":"https://api.github.com/repos/Esri/hub.js/stargazers","contributors_url":"https://api.github.com/repos/Esri/hub.js/contributors","subscribers_url":"https://api.github.com/repos/Esri/hub.js/subscribers","subscription_url":"https://api.github.com/repos/Esri/hub.js/subscription","commits_url":"https://api.github.com/repos/Esri/hub.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Esri/hub.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Esri/hub.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Esri/hub.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Esri/hub.js/contents/{+path}","compare_url":"https://api.github.com/repos/Esri/hub.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Esri/hub.js/merges","archive_url":"https://api.github.com/repos/Esri/hub.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Esri/hub.js/downloads","issues_url":"https://api.github.com/repos/Esri/hub.js/issues{/number}","pulls_url":"https://api.github.com/repos/Esri/hub.js/pulls{/number}","milestones_url":"https://api.github.com/repos/Esri/hub.js/milestones{/number}","notifications_url":"https://api.github.com/repos/Esri/hub.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Esri/hub.js/labels{/name}","releases_url":"https://api.github.com/repos/Esri/hub.js/releases{/id}","deployments_url":"https://api.github.com/repos/Esri/hub.js/deployments","created_at":"2018-03-26T19:38:34Z","updated_at":"2018-09-24T19:51:36Z","pushed_at":"2018-10-05T23:03:21Z","git_url":"git://github.com/Esri/hub.js.git","ssh_url":"git@github.com:Esri/hub.js.git","clone_url":"https://github.com/Esri/hub.js.git","svn_url":"https://github.com/Esri/hub.js","homepage":"https://esri.github.io/hub.js/","size":844,"stargazers_count":6,"watchers_count":6,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":17,"watchers":6,"default_branch":"master"}},"base":{"label":"Esri:master","ref":"master","sha":"1502f992415610fca0fb762b1221a72463b15d2d","user":{"login":"Esri","id":628795,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyODc5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/628795?v=4","gravatar_id":"","url":"https://api.github.com/users/Esri","html_url":"https://github.com/Esri","followers_url":"https://api.github.com/users/Esri/followers","following_url":"https://api.github.com/users/Esri/following{/other_user}","gists_url":"https://api.github.com/users/Esri/gists{/gist_id}","starred_url":"https://api.github.com/users/Esri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Esri/subscriptions","organizations_url":"https://api.github.com/users/Esri/orgs","repos_url":"https://api.github.com/users/Esri/repos","events_url":"https://api.github.com/users/Esri/events{/privacy}","received_events_url":"https://api.github.com/users/Esri/received_events","type":"Organization","site_admin":false},"repo":{"id":126880567,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY4ODA1Njc=","name":"hub.js","full_name":"Esri/hub.js","private":false,"owner":{"login":"Esri","id":628795,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyODc5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/628795?v=4","gravatar_id":"","url":"https://api.github.com/users/Esri","html_url":"https://github.com/Esri","followers_url":"https://api.github.com/users/Esri/followers","following_url":"https://api.github.com/users/Esri/following{/other_user}","gists_url":"https://api.github.com/users/Esri/gists{/gist_id}","starred_url":"https://api.github.com/users/Esri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Esri/subscriptions","organizations_url":"https://api.github.com/users/Esri/orgs","repos_url":"https://api.github.com/users/Esri/repos","events_url":"https://api.github.com/users/Esri/events{/privacy}","received_events_url":"https://api.github.com/users/Esri/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Esri/hub.js","description":"JavaScript wrappers for talking to ArcGIS Hub","fork":false,"url":"https://api.github.com/repos/Esri/hub.js","forks_url":"https://api.github.com/repos/Esri/hub.js/forks","keys_url":"https://api.github.com/repos/Esri/hub.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Esri/hub.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Esri/hub.js/teams","hooks_url":"https://api.github.com/repos/Esri/hub.js/hooks","issue_events_url":"https://api.github.com/repos/Esri/hub.js/issues/events{/number}","events_url":"https://api.github.com/repos/Esri/hub.js/events","assignees_url":"https://api.github.com/repos/Esri/hub.js/assignees{/user}","branches_url":"https://api.github.com/repos/Esri/hub.js/branches{/branch}","tags_url":"https://api.github.com/repos/Esri/hub.js/tags","blobs_url":"https://api.github.com/repos/Esri/hub.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Esri/hub.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Esri/hub.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Esri/hub.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Esri/hub.js/statuses/{sha}","languages_url":"https://api.github.com/repos/Esri/hub.js/languages","stargazers_url":"https://api.github.com/repos/Esri/hub.js/stargazers","contributors_url":"https://api.github.com/repos/Esri/hub.js/contributors","subscribers_url":"https://api.github.com/repos/Esri/hub.js/subscribers","subscription_url":"https://api.github.com/repos/Esri/hub.js/subscription","commits_url":"https://api.github.com/repos/Esri/hub.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Esri/hub.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Esri/hub.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Esri/hub.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Esri/hub.js/contents/{+path}","compare_url":"https://api.github.com/repos/Esri/hub.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Esri/hub.js/merges","archive_url":"https://api.github.com/repos/Esri/hub.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Esri/hub.js/downloads","issues_url":"https://api.github.com/repos/Esri/hub.js/issues{/number}","pulls_url":"https://api.github.com/repos/Esri/hub.js/pulls{/number}","milestones_url":"https://api.github.com/repos/Esri/hub.js/milestones{/number}","notifications_url":"https://api.github.com/repos/Esri/hub.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Esri/hub.js/labels{/name}","releases_url":"https://api.github.com/repos/Esri/hub.js/releases{/id}","deployments_url":"https://api.github.com/repos/Esri/hub.js/deployments","created_at":"2018-03-26T19:38:34Z","updated_at":"2018-09-24T19:51:36Z","pushed_at":"2018-10-05T23:03:21Z","git_url":"git://github.com/Esri/hub.js.git","ssh_url":"git@github.com:Esri/hub.js.git","clone_url":"https://github.com/Esri/hub.js.git","svn_url":"https://github.com/Esri/hub.js","homepage":"https://esri.github.io/hub.js/","size":844,"stargazers_count":6,"watchers_count":6,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":17,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Esri/hub.js/pulls/79"},"html":{"href":"https://github.com/Esri/hub.js/pull/79"},"issue":{"href":"https://api.github.com/repos/Esri/hub.js/issues/79"},"comments":{"href":"https://api.github.com/repos/Esri/hub.js/issues/79/comments"},"review_comments":{"href":"https://api.github.com/repos/Esri/hub.js/pulls/79/comments"},"review_comment":{"href":"https://api.github.com/repos/Esri/hub.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Esri/hub.js/pulls/79/commits"},"statuses":{"href":"https://api.github.com/repos/Esri/hub.js/statuses/2dddb80f15e386ba625c50c3c357f5df994e01e2"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"tomwayson"}}