{"action":"closed","issue":{"url":"https://api.github.com/repos/kentcdodds/cross-env/issues/172","repository_url":"https://api.github.com/repos/kentcdodds/cross-env","labels_url":"https://api.github.com/repos/kentcdodds/cross-env/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/kentcdodds/cross-env/issues/172/comments","events_url":"https://api.github.com/repos/kentcdodds/cross-env/issues/172/events","html_url":"https://github.com/kentcdodds/cross-env/issues/172","id":301708397,"number":172,"title":"cross-env don't seems to work","user":{"login":"bl00m","id":12273726,"avatar_url":"https://avatars0.githubusercontent.com/u/12273726?v=4","gravatar_id":"","url":"https://api.github.com/users/bl00m","html_url":"https://github.com/bl00m","followers_url":"https://api.github.com/users/bl00m/followers","following_url":"https://api.github.com/users/bl00m/following{/other_user}","gists_url":"https://api.github.com/users/bl00m/gists{/gist_id}","starred_url":"https://api.github.com/users/bl00m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bl00m/subscriptions","organizations_url":"https://api.github.com/users/bl00m/orgs","repos_url":"https://api.github.com/users/bl00m/repos","events_url":"https://api.github.com/users/bl00m/events{/privacy}","received_events_url":"https://api.github.com/users/bl00m/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-02T09:44:58Z","updated_at":"2018-03-03T14:53:34Z","closed_at":"2018-03-03T14:53:34Z","author_association":"NONE","body":"- `cross-env` version: 5.1.3\r\n- `node` version: 9.6.1\r\n- `npm` version: 5.6.0\r\n- `OS` Manjaro Linux 17.1.6\r\n\r\n## package.json\r\n```javascript\r\n{\r\n  \"name\": \"cross-env-test\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"test\": \"cross-env NODE_ENV=production echo $NODE_ENV\",\r\n    \"test2\": \"NODE_ENV=production; echo $NODE_ENV\",\r\n    \"test3\": \"cross-env-shell GREETING=Hi NAME=Joe \\\"echo $GREETING && echo $NAME\\\"\"\r\n  },\r\n  \"author\": \"\",\r\n  \"license\": \"ISC\",\r\n  \"devDependencies\": {\r\n    \"cross-env\": \"^5.1.3\"\r\n  }\r\n}\r\n```\r\n## tests\r\n```bash\r\n$ npm run test\r\n\r\n> cross-env-test@1.0.0 test /tmp/banzai\r\n> cross-env NODE_ENV=production echo $NODE_ENV\r\n\r\n\r\n$ npm run test2\r\n\r\n> cross-env-test@1.0.0 test2 /tmp/banzai\r\n> NODE_ENV=production; echo $NODE_ENV\r\n\r\nproduction\r\n$ npm run test3\r\n\r\n> cross-env-test@1.0.0 test3 /tmp/banzai\r\n> cross-env-shell GREETING=Hi NAME=Joe \"echo $GREETING && echo $NAME\"\r\n\r\n\r\n\r\n```\r\n\r\nAs you can see for `test` and `test3`, cross-env simply don't work here. The NODE_ENV variable is not set and echo just print an empty line.\r\n`test2` use the classic way to set the variable and it works.\r\n\r\nAm i missing something ?"}}
{"actor":{"display_login":"kentcdodds"}}