{"action":"opened","issue":{"url":"https://api.github.com/repos/yarnjs/yarn/issues/15","labels_url":"https://api.github.com/repos/yarnjs/yarn/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/yarnjs/yarn/issues/15/comments","events_url":"https://api.github.com/repos/yarnjs/yarn/issues/15/events","html_url":"https://github.com/yarnjs/yarn/issues/15","id":119322232,"number":15,"title":"CLI: improve detection of where a site's root is","user":{"login":"hswolff","id":322576,"avatar_url":"https://avatars.githubusercontent.com/u/322576?v=3","gravatar_id":"","url":"https://api.github.com/users/hswolff","html_url":"https://github.com/hswolff","followers_url":"https://api.github.com/users/hswolff/followers","following_url":"https://api.github.com/users/hswolff/following{/other_user}","gists_url":"https://api.github.com/users/hswolff/gists{/gist_id}","starred_url":"https://api.github.com/users/hswolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hswolff/subscriptions","organizations_url":"https://api.github.com/users/hswolff/orgs","repos_url":"https://api.github.com/users/hswolff/repos","events_url":"https://api.github.com/users/hswolff/events{/privacy}","received_events_url":"https://api.github.com/users/hswolff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-28T22:33:49Z","updated_at":"2015-11-28T22:33:49Z","closed_at":null,"body":"right now when you run any CLI `yarn` command it assumes you're running it from the root of the project.\r\n\r\nit'd be better for yarn to intelligently figure out where the root of the project is (by looking for the `_config.yml` file) and running all commands from that directory path.\r\n\r\nso...if you have a directory structure:\r\n\r\n```\r\n_posts/\r\nimages/\r\nabout.md\r\n_config.yml\r\n```\r\n\r\nAnd you run `yarn build` from within the `images/` folder right now it won't find the posts as it only runs the command relative to the `images/` folder.\r\n\r\nit'd also be good to have a limit of the number of folders we recurse up "}}