{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/1238","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1238/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1238/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1238/events","html_url":"https://github.com/yarnpkg/yarn/issues/1238","id":183921297,"number":1238,"title":"Install scripts not triggered by 'yarn add'","user":{"login":"thebuilder","id":3764345,"avatar_url":"https://avatars.githubusercontent.com/u/3764345?v=3","gravatar_id":"","url":"https://api.github.com/users/thebuilder","html_url":"https://github.com/thebuilder","followers_url":"https://api.github.com/users/thebuilder/followers","following_url":"https://api.github.com/users/thebuilder/following{/other_user}","gists_url":"https://api.github.com/users/thebuilder/gists{/gist_id}","starred_url":"https://api.github.com/users/thebuilder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebuilder/subscriptions","organizations_url":"https://api.github.com/users/thebuilder/orgs","repos_url":"https://api.github.com/users/thebuilder/repos","events_url":"https://api.github.com/users/thebuilder/events{/privacy}","received_events_url":"https://api.github.com/users/thebuilder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-19T10:16:11Z","updated_at":"2016-10-24T14:23:07Z","closed_at":"2016-10-24T14:23:07Z","body":"**Do you want to request a *feature* or report a *bug*?**\r\nfeature\r\n\r\n**What is the current behavior?**\r\n`preinstall` and `postinstall` scripts are not run after using `yarn add`\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n\r\n**What is the expected behavior?**\r\nWhen using *npm* the scripts are triggered when you add a new package with `npm install`.\r\nYarn triggers it when doing `yarn` or `yarn install`, but not when you add new package.\r\nThis would also be an issue if you are using other commands like `yarn upgrade`, that can install new versions.\r\n\r\nI think it should follow the same logic - I'm using a postinstall script in a simple project, to build a Webpack DLL file, which should be triggered whenever packages change.\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\nYarn: 16.0.0\r\nNode: 6.8.0\r\nMac Sierra"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/255754681","html_url":"https://github.com/yarnpkg/yarn/issues/1238#issuecomment-255754681","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1238","id":255754681,"user":{"login":"samccone","id":883126,"avatar_url":"https://avatars.githubusercontent.com/u/883126?v=3","gravatar_id":"","url":"https://api.github.com/users/samccone","html_url":"https://github.com/samccone","followers_url":"https://api.github.com/users/samccone/followers","following_url":"https://api.github.com/users/samccone/following{/other_user}","gists_url":"https://api.github.com/users/samccone/gists{/gist_id}","starred_url":"https://api.github.com/users/samccone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samccone/subscriptions","organizations_url":"https://api.github.com/users/samccone/orgs","repos_url":"https://api.github.com/users/samccone/repos","events_url":"https://api.github.com/users/samccone/events{/privacy}","received_events_url":"https://api.github.com/users/samccone/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T14:23:07Z","updated_at":"2016-10-24T14:23:07Z","body":"Fixed in #800 please reopen if not.\r\n\r\nThanks for the bug!"}}
{"actor":{"display_login":"samccone"}}