{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic-coders/serverless-webpack/issues/25","repository_url":"https://api.github.com/repos/elastic-coders/serverless-webpack","labels_url":"https://api.github.com/repos/elastic-coders/serverless-webpack/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/elastic-coders/serverless-webpack/issues/25/comments","events_url":"https://api.github.com/repos/elastic-coders/serverless-webpack/issues/25/events","html_url":"https://github.com/elastic-coders/serverless-webpack/issues/25","id":174946414,"number":25,"title":"Update cwd when invoking function locally","user":{"login":"andymac4182","id":1297073,"avatar_url":"https://avatars.githubusercontent.com/u/1297073?v=3","gravatar_id":"","url":"https://api.github.com/users/andymac4182","html_url":"https://github.com/andymac4182","followers_url":"https://api.github.com/users/andymac4182/followers","following_url":"https://api.github.com/users/andymac4182/following{/other_user}","gists_url":"https://api.github.com/users/andymac4182/gists{/gist_id}","starred_url":"https://api.github.com/users/andymac4182/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymac4182/subscriptions","organizations_url":"https://api.github.com/users/andymac4182/orgs","repos_url":"https://api.github.com/users/andymac4182/repos","events_url":"https://api.github.com/users/andymac4182/events{/privacy}","received_events_url":"https://api.github.com/users/andymac4182/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-04T12:24:32Z","updated_at":"2016-11-17T11:42:28Z","closed_at":"2016-11-17T11:42:28Z","body":"From what I can see the current working dir isn't updated before calling a function which stops some relative path locations locally\n\nI believe `process.chdir(path.dirname(handlerFilePath))` should be inserted before https://github.com/elastic-coders/serverless-webpack/blob/master/lib/run.js#L16 \n\nThis will help with https://github.com/serverless/serverless/issues/2009 \n"}}
{"actor":{"display_login":"thenikso"}}