{"action":"created","issue":{"url":"https://api.github.com/repos/Travix-International/frint/issues/294","repository_url":"https://api.github.com/repos/Travix-International/frint","labels_url":"https://api.github.com/repos/Travix-International/frint/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/Travix-International/frint/issues/294/comments","events_url":"https://api.github.com/repos/Travix-International/frint/issues/294/events","html_url":"https://github.com/Travix-International/frint/issues/294","id":256977855,"number":294,"title":"Running tests on individual packages not working","user":{"login":"fahad19","id":20046,"avatar_url":"https://avatars2.githubusercontent.com/u/20046?v=4","gravatar_id":"","url":"https://api.github.com/users/fahad19","html_url":"https://github.com/fahad19","followers_url":"https://api.github.com/users/fahad19/followers","following_url":"https://api.github.com/users/fahad19/following{/other_user}","gists_url":"https://api.github.com/users/fahad19/gists{/gist_id}","starred_url":"https://api.github.com/users/fahad19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fahad19/subscriptions","organizations_url":"https://api.github.com/users/fahad19/orgs","repos_url":"https://api.github.com/users/fahad19/repos","events_url":"https://api.github.com/users/fahad19/events{/privacy}","received_events_url":"https://api.github.com/users/fahad19/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"discosultan","id":2970736,"avatar_url":"https://avatars1.githubusercontent.com/u/2970736?v=4","gravatar_id":"","url":"https://api.github.com/users/discosultan","html_url":"https://github.com/discosultan","followers_url":"https://api.github.com/users/discosultan/followers","following_url":"https://api.github.com/users/discosultan/following{/other_user}","gists_url":"https://api.github.com/users/discosultan/gists{/gist_id}","starred_url":"https://api.github.com/users/discosultan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discosultan/subscriptions","organizations_url":"https://api.github.com/users/discosultan/orgs","repos_url":"https://api.github.com/users/discosultan/repos","events_url":"https://api.github.com/users/discosultan/events{/privacy}","received_events_url":"https://api.github.com/users/discosultan/received_events","type":"User","site_admin":false},"assignees":[{"login":"discosultan","id":2970736,"avatar_url":"https://avatars1.githubusercontent.com/u/2970736?v=4","gravatar_id":"","url":"https://api.github.com/users/discosultan","html_url":"https://github.com/discosultan","followers_url":"https://api.github.com/users/discosultan/followers","following_url":"https://api.github.com/users/discosultan/following{/other_user}","gists_url":"https://api.github.com/users/discosultan/gists{/gist_id}","starred_url":"https://api.github.com/users/discosultan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discosultan/subscriptions","organizations_url":"https://api.github.com/users/discosultan/orgs","repos_url":"https://api.github.com/users/discosultan/repos","events_url":"https://api.github.com/users/discosultan/events{/privacy}","received_events_url":"https://api.github.com/users/discosultan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-09-12T09:31:25Z","updated_at":"2017-09-16T11:48:21Z","closed_at":null,"author_association":"OWNER","body":"Tried both:\r\n\r\n```\r\n$ (cd ./packages/frint-react/ && npm test)\r\n```\r\n\r\nand:\r\n\r\n```\r\n$ lerna run --scope frint-react test\r\n```\r\n\r\nIt comes down to `cross-env` not being available during execution."},"comment":{"url":"https://api.github.com/repos/Travix-International/frint/issues/comments/329963809","html_url":"https://github.com/Travix-International/frint/issues/294#issuecomment-329963809","issue_url":"https://api.github.com/repos/Travix-International/frint/issues/294","id":329963809,"user":{"login":"discosultan","id":2970736,"avatar_url":"https://avatars1.githubusercontent.com/u/2970736?v=4","gravatar_id":"","url":"https://api.github.com/users/discosultan","html_url":"https://github.com/discosultan","followers_url":"https://api.github.com/users/discosultan/followers","following_url":"https://api.github.com/users/discosultan/following{/other_user}","gists_url":"https://api.github.com/users/discosultan/gists{/gist_id}","starred_url":"https://api.github.com/users/discosultan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discosultan/subscriptions","organizations_url":"https://api.github.com/users/discosultan/orgs","repos_url":"https://api.github.com/users/discosultan/repos","events_url":"https://api.github.com/users/discosultan/events{/privacy}","received_events_url":"https://api.github.com/users/discosultan/received_events","type":"User","site_admin":false},"created_at":"2017-09-16T11:48:21Z","updated_at":"2017-09-16T11:48:21Z","author_association":"MEMBER","body":"After removing relative paths from packages ([as seen here](https://github.com/Travix-International/frint/commit/6be4f173a02b50a6ea9319175ea3983809701434)), all the npm scripts work fine for me when using `lerna run --scope <package> <script>`. I tried with both working dir being root as well as the package folder. Obviously `npm run <script>` does no longer work, since the required deps are missing from the local package's `node_modules` folder.\r\n\r\nI'm confused of the behavior of `lerna` and why scoped execution sometimes manages to find modules from root and sometimes doesn't ... Tested with `lerna` v2.2.0."}}
{"actor":{"display_login":"discosultan"}}