{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/682","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/682/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/682/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/682/events","html_url":"https://github.com/yarnpkg/yarn/issues/682","id":182333723,"number":682,"title":"Allow generating a lock file from an existing node_modules","user":{"login":"jerel","id":322706,"avatar_url":"https://avatars.githubusercontent.com/u/322706?v=3","gravatar_id":"","url":"https://api.github.com/users/jerel","html_url":"https://github.com/jerel","followers_url":"https://api.github.com/users/jerel/followers","following_url":"https://api.github.com/users/jerel/following{/other_user}","gists_url":"https://api.github.com/users/jerel/gists{/gist_id}","starred_url":"https://api.github.com/users/jerel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerel/subscriptions","organizations_url":"https://api.github.com/users/jerel/orgs","repos_url":"https://api.github.com/users/jerel/repos","events_url":"https://api.github.com/users/jerel/events{/privacy}","received_events_url":"https://api.github.com/users/jerel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yarnpkg/yarn/labels/new%20feature","name":"new feature","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-11T18:07:49Z","updated_at":"2016-10-12T17:14:44Z","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\nFeature\r\n\r\n**What is the current behavior?**\r\nWhen converting an existing project, running `yarn` appears to read package.json and download dependencies again based on declared dependency versions. This may not result in a working build if dependencies used `~` or `^` versions to declare their dependencies.\r\n\r\n**What is the expected behavior?**\r\nIt would be nice if running a command like `yarn freeze` (from python's `pip freeze`) could determine the exact version of installed dependencies in `node_modules` in an existing project. This would allow an aged project with dependency drift but an intact `node_modules` to be locked by yarn.\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\nyarn v0.15.1"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/253277310","html_url":"https://github.com/yarnpkg/yarn/issues/682#issuecomment-253277310","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/682","id":253277310,"user":{"login":"mwmdev","id":551167,"avatar_url":"https://avatars.githubusercontent.com/u/551167?v=3","gravatar_id":"","url":"https://api.github.com/users/mwmdev","html_url":"https://github.com/mwmdev","followers_url":"https://api.github.com/users/mwmdev/followers","following_url":"https://api.github.com/users/mwmdev/following{/other_user}","gists_url":"https://api.github.com/users/mwmdev/gists{/gist_id}","starred_url":"https://api.github.com/users/mwmdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwmdev/subscriptions","organizations_url":"https://api.github.com/users/mwmdev/orgs","repos_url":"https://api.github.com/users/mwmdev/repos","events_url":"https://api.github.com/users/mwmdev/events{/privacy}","received_events_url":"https://api.github.com/users/mwmdev/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T17:14:44Z","updated_at":"2016-10-12T17:14:44Z","body":"This feature is very interesting and important for a dev that has lots of existing projects each with its node_modules/ filled from a npm install in a specific point in time.\r\n\r\nyarn would generate a lock file based on the node_modules to simulate a yarn install at the time of the npm install."}}
{"actor":{"display_login":"mwmdev"}}