{"action":"created","issue":{"url":"https://api.github.com/repos/brunch/brunch/issues/974","labels_url":"https://api.github.com/repos/brunch/brunch/issues/974/labels{/name}","comments_url":"https://api.github.com/repos/brunch/brunch/issues/974/comments","events_url":"https://api.github.com/repos/brunch/brunch/issues/974/events","html_url":"https://github.com/brunch/brunch/pull/974","id":78644964,"number":974,"title":"Handle optional `path` arg","user":{"login":"matthopson","id":1891789,"avatar_url":"https://avatars.githubusercontent.com/u/1891789?v=3","gravatar_id":"","url":"https://api.github.com/users/matthopson","html_url":"https://github.com/matthopson","followers_url":"https://api.github.com/users/matthopson/followers","following_url":"https://api.github.com/users/matthopson/following{/other_user}","gists_url":"https://api.github.com/users/matthopson/gists{/gist_id}","starred_url":"https://api.github.com/users/matthopson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthopson/subscriptions","organizations_url":"https://api.github.com/users/matthopson/orgs","repos_url":"https://api.github.com/users/matthopson/repos","events_url":"https://api.github.com/users/matthopson/events{/privacy}","received_events_url":"https://api.github.com/users/matthopson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-20T18:49:53Z","updated_at":"2015-05-20T19:18:49Z","closed_at":"2015-05-20T19:15:42Z","pull_request":{"url":"https://api.github.com/repos/brunch/brunch/pulls/974","html_url":"https://github.com/brunch/brunch/pull/974","diff_url":"https://github.com/brunch/brunch/pull/974.diff","patch_url":"https://github.com/brunch/brunch/pull/974.patch"},"body":"Hey!\r\n\r\nRecently I had an issue with brunch builds failing with versions >= 1.8 (https://github.com/brunch/brunch/issues/967)\r\n\r\nThe issue was due to the addition of the `path` argument in `watch()`\r\nhttps://github.com/brunch/brunch/commit/9b9e8c5015856eb8e770f050232e092ee88e822e#diff-5894f29c43782173bc5f20c4d13a4f8d\r\n\r\nIn my case, it was failing because I had a deployment script that would build on the fly and deploy based on the env (override). This script would call `brunch.build options`, but with the addition of the `path` argument,  path was now being set to my `options` argument. I can get around this by simply adding `brunch.build null, options`. This isn't a difficult fix on my end, but I suspect others might run into the same issue.\r\n\r\nThis could be cleaned up a bit outside of the watch function, but this PR offers a non-depricating solution to any code currently using the same method as I am for builds.\r\n\r\nFeel free to incorporate or improve.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/brunch/brunch/issues/comments/104002630","html_url":"https://github.com/brunch/brunch/pull/974#issuecomment-104002630","issue_url":"https://api.github.com/repos/brunch/brunch/issues/974","id":104002630,"user":{"login":"matthopson","id":1891789,"avatar_url":"https://avatars.githubusercontent.com/u/1891789?v=3","gravatar_id":"","url":"https://api.github.com/users/matthopson","html_url":"https://github.com/matthopson","followers_url":"https://api.github.com/users/matthopson/followers","following_url":"https://api.github.com/users/matthopson/following{/other_user}","gists_url":"https://api.github.com/users/matthopson/gists{/gist_id}","starred_url":"https://api.github.com/users/matthopson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthopson/subscriptions","organizations_url":"https://api.github.com/users/matthopson/orgs","repos_url":"https://api.github.com/users/matthopson/repos","events_url":"https://api.github.com/users/matthopson/events{/privacy}","received_events_url":"https://api.github.com/users/matthopson/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T19:18:49Z","updated_at":"2015-05-20T19:18:49Z","body":"No worries. I should have been more clear :stuck_out_tongue:  Thanks!!"}}