{"action":"created","issue":{"url":"https://api.github.com/repos/benoror/better-npm-run/issues/19","labels_url":"https://api.github.com/repos/benoror/better-npm-run/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/benoror/better-npm-run/issues/19/comments","events_url":"https://api.github.com/repos/benoror/better-npm-run/issues/19/events","html_url":"https://github.com/benoror/better-npm-run/pull/19","id":115687614,"number":19,"title":"change to spawn and read .env","user":{"login":"gorangajic","id":249310,"avatar_url":"https://avatars.githubusercontent.com/u/249310?v=3","gravatar_id":"","url":"https://api.github.com/users/gorangajic","html_url":"https://github.com/gorangajic","followers_url":"https://api.github.com/users/gorangajic/followers","following_url":"https://api.github.com/users/gorangajic/following{/other_user}","gists_url":"https://api.github.com/users/gorangajic/gists{/gist_id}","starred_url":"https://api.github.com/users/gorangajic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gorangajic/subscriptions","organizations_url":"https://api.github.com/users/gorangajic/orgs","repos_url":"https://api.github.com/users/gorangajic/repos","events_url":"https://api.github.com/users/gorangajic/events{/privacy}","received_events_url":"https://api.github.com/users/gorangajic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-07T19:38:47Z","updated_at":"2015-11-10T18:03:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/benoror/better-npm-run/pulls/19","html_url":"https://github.com/benoror/better-npm-run/pull/19","diff_url":"https://github.com/benoror/better-npm-run/pull/19.diff","patch_url":"https://github.com/benoror/better-npm-run/pull/19.patch"},"body":"I have included spawn from pull request #14 \r\nand changed pull request #17 upon your request"},"comment":{"url":"https://api.github.com/repos/benoror/better-npm-run/issues/comments/155515515","html_url":"https://github.com/benoror/better-npm-run/pull/19#issuecomment-155515515","issue_url":"https://api.github.com/repos/benoror/better-npm-run/issues/19","id":155515515,"user":{"login":"benoror","id":119117,"avatar_url":"https://avatars.githubusercontent.com/u/119117?v=3","gravatar_id":"","url":"https://api.github.com/users/benoror","html_url":"https://github.com/benoror","followers_url":"https://api.github.com/users/benoror/followers","following_url":"https://api.github.com/users/benoror/following{/other_user}","gists_url":"https://api.github.com/users/benoror/gists{/gist_id}","starred_url":"https://api.github.com/users/benoror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoror/subscriptions","organizations_url":"https://api.github.com/users/benoror/orgs","repos_url":"https://api.github.com/users/benoror/repos","events_url":"https://api.github.com/users/benoror/events{/privacy}","received_events_url":"https://api.github.com/users/benoror/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T18:03:26Z","updated_at":"2015-11-10T18:03:26Z","body":"@gorangajic sorry I was busy with work :worried: \r\n\r\nAt first glance the code looks good, nevertheless I pulled your code and tested it. I have a simple repo for testing purposes: [benoror/better-npm-run-test-repo](https://github.com/benoror/better-npm-run-test-repo), which is failing with the following error:\r\n\r\n```\r\nbenoror:~/github/better-npm-run-test-repo | master\r\n$ npm test\r\n\r\n> better-npm-run-test-repo@1.0.0 test /home/benoror/github/better-npm-run-test-repo\r\n> node node_modules/.bin/better-npm-run test\r\n\r\nrunning better-npm-run in /home/benoror/github/better-npm-run-test-repo\r\nExecuting script: test\r\n\r\n/home/benoror/github/better-npm-run/lib/exec.js:17\r\n\tvar env = Object.assign(process.env, script.env, dotenv);\r\n\t                 ^\r\nTypeError: undefined is not a function\r\n    at exec (/home/benoror/github/better-npm-run/lib/exec.js:17:19)\r\n    at Object.<anonymous> (/home/benoror/github/better-npm-run/index.js:28:1)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Function.Module.runMain (module.js:501:10)\r\n    at startup (node.js:129:16)\r\n    at node.js:814:3\r\nnpm ERR! Test failed.  See above for more details.\r\n```"}}