{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/754","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/754/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/754/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/754/events","html_url":"https://github.com/yarnpkg/yarn/issues/754","id":182387937,"number":754,"title":"'yarn pack' ignores .gitignore entries","user":{"login":"donpark","id":127594,"avatar_url":"https://avatars.githubusercontent.com/u/127594?v=3","gravatar_id":"","url":"https://api.github.com/users/donpark","html_url":"https://github.com/donpark","followers_url":"https://api.github.com/users/donpark/followers","following_url":"https://api.github.com/users/donpark/following{/other_user}","gists_url":"https://api.github.com/users/donpark/gists{/gist_id}","starred_url":"https://api.github.com/users/donpark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donpark/subscriptions","organizations_url":"https://api.github.com/users/donpark/orgs","repos_url":"https://api.github.com/users/donpark/repos","events_url":"https://api.github.com/users/donpark/events{/privacy}","received_events_url":"https://api.github.com/users/donpark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-11T22:13:23Z","updated_at":"2016-10-12T02:16:59Z","closed_at":null,"body":"<!-- *Before creating an issue please make sure you are using the latest version of yarn.* -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\n\r\nReport a *bug*.\r\n\r\n**What is the current behavior?**\r\n\r\n`yarn pack` ignores files specified in `.gitignore` while `npm pack` does not.\r\n\r\nWhen `.js` files are generated from another language or flavor of javascript, generated files are often not checked-in and thus `*.js` or `**/*.js` entry is added to `.gitignore`. These generated files should be included in the package at runtime.\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n\r\n1. create `index.js` file at project root.\r\n2. create `.gitignore` file at project root with entry `*.js`.\r\n3. run `yarn pack`.\r\n4. decompress package `.tgz` file.\r\n5. `index.js` file will not be in the decompressed package, only `package.json` and `node_modules`.\r\n\r\n**What is the expected behavior?**\r\n\r\n`index.js` should be there.\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\n\r\nNode.js v6.7\r\nYarn v0.15.1\r\nmacOS Sierra\r\n"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/253100513","html_url":"https://github.com/yarnpkg/yarn/issues/754#issuecomment-253100513","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/754","id":253100513,"user":{"login":"tony19","id":26580,"avatar_url":"https://avatars.githubusercontent.com/u/26580?v=3","gravatar_id":"","url":"https://api.github.com/users/tony19","html_url":"https://github.com/tony19","followers_url":"https://api.github.com/users/tony19/followers","following_url":"https://api.github.com/users/tony19/following{/other_user}","gists_url":"https://api.github.com/users/tony19/gists{/gist_id}","starred_url":"https://api.github.com/users/tony19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tony19/subscriptions","organizations_url":"https://api.github.com/users/tony19/orgs","repos_url":"https://api.github.com/users/tony19/repos","events_url":"https://api.github.com/users/tony19/events{/privacy}","received_events_url":"https://api.github.com/users/tony19/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T02:16:59Z","updated_at":"2016-10-12T02:16:59Z","body":"Seems related to #685 "}}
{"actor":{"display_login":"tony19"}}