{"action":"created","comment":{"url":"https://api.github.com/repos/NYTimes/kyt/pulls/comments/92405625","pull_request_review_id":12917567,"id":92405625,"diff_hunk":"@@ -1,17 +1,57 @@\n-const mergeAll = require('ramda').mergeAll;\n-const babel = require('../../config/babel')();\n const babelJest = require('babel-jest');\n-const buildConfigs = require('../buildConfigs');\n-const config = require('../kytConfig')();\n+const fs = require('fs');\n+const shell = require('shelljs');\n+const { userBabelrcPath, userRootPath } = require('kyt-utils/paths')();\n+const logger = require('kyt-utils/logger');\n+const resolve = require('resolve');\n \n-const { clientConfig } = buildConfigs(config);\n+/**\n+ * Support preset and plugin definitions in .babelrc\n+ * without the babel-* prefixes.\n+ *\n+ * E.g. {presets: ['babel-preset-react']} --> {presets: ['react']}\n+ *\n+ * @param  {String} prefix One of either 'babel-plugin' or 'babel-preset'\n+ * @param  {String} dep    The dependency\n+ * @return {String}        The normalized dependency\n+ */\n+const normalizeDep = (prefix, dep) => {\n+  let resolved;\n+  if (dep.indexOf('babel') !== 0) {\n+    try {\n+      resolved = resolve.sync(`${prefix}-${dep}`, { basedir: userRootPath });\n+    } catch (e) { /* eslint-disable no-empty */ }","path":"packages/kyt-core/utils/jest/preprocessor.js","position":28,"original_position":28,"commit_id":"8ef59f8a85582faaa3fa6feb2b04676e43ab7a74","original_commit_id":"8ef59f8a85582faaa3fa6feb2b04676e43ab7a74","user":{"login":"tizmagik","id":244704,"avatar_url":"https://avatars.githubusercontent.com/u/244704?v=3","gravatar_id":"","url":"https://api.github.com/users/tizmagik","html_url":"https://github.com/tizmagik","followers_url":"https://api.github.com/users/tizmagik/followers","following_url":"https://api.github.com/users/tizmagik/following{/other_user}","gists_url":"https://api.github.com/users/tizmagik/gists{/gist_id}","starred_url":"https://api.github.com/users/tizmagik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tizmagik/subscriptions","organizations_url":"https://api.github.com/users/tizmagik/orgs","repos_url":"https://api.github.com/users/tizmagik/repos","events_url":"https://api.github.com/users/tizmagik/events{/privacy}","received_events_url":"https://api.github.com/users/tizmagik/received_events","type":"User","site_admin":false},"body":"What does this error case mean?","created_at":"2016-12-14T14:40:34Z","updated_at":"2016-12-14T14:42:16Z","html_url":"https://github.com/NYTimes/kyt/pull/347#discussion_r92405625","pull_request_url":"https://api.github.com/repos/NYTimes/kyt/pulls/347","_links":{"self":{"href":"https://api.github.com/repos/NYTimes/kyt/pulls/comments/92405625"},"html":{"href":"https://github.com/NYTimes/kyt/pull/347#discussion_r92405625"},"pull_request":{"href":"https://api.github.com/repos/NYTimes/kyt/pulls/347"}}},"pull_request":{"url":"https://api.github.com/repos/NYTimes/kyt/pulls/347","id":97836022,"html_url":"https://github.com/NYTimes/kyt/pull/347","diff_url":"https://github.com/NYTimes/kyt/pull/347.diff","patch_url":"https://github.com/NYTimes/kyt/pull/347.patch","issue_url":"https://api.github.com/repos/NYTimes/kyt/issues/347","number":347,"state":"open","locked":false,"title":"support user .babelrc","user":{"login":"jaredmcdonald","id":3476784,"avatar_url":"https://avatars.githubusercontent.com/u/3476784?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredmcdonald","html_url":"https://github.com/jaredmcdonald","followers_url":"https://api.github.com/users/jaredmcdonald/followers","following_url":"https://api.github.com/users/jaredmcdonald/following{/other_user}","gists_url":"https://api.github.com/users/jaredmcdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredmcdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredmcdonald/subscriptions","organizations_url":"https://api.github.com/users/jaredmcdonald/orgs","repos_url":"https://api.github.com/users/jaredmcdonald/repos","events_url":"https://api.github.com/users/jaredmcdonald/events{/privacy}","received_events_url":"https://api.github.com/users/jaredmcdonald/received_events","type":"User","site_admin":false},"body":"fixes #322 ","created_at":"2016-12-13T21:10:15Z","updated_at":"2016-12-14T14:42:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0126f60bef9c3da9d1d8b40710a8e38e90debd4d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NYTimes/kyt/pulls/347/commits","review_comments_url":"https://api.github.com/repos/NYTimes/kyt/pulls/347/comments","review_comment_url":"https://api.github.com/repos/NYTimes/kyt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NYTimes/kyt/issues/347/comments","statuses_url":"https://api.github.com/repos/NYTimes/kyt/statuses/8ef59f8a85582faaa3fa6feb2b04676e43ab7a74","head":{"label":"NYTimes:babelrc","ref":"babelrc","sha":"8ef59f8a85582faaa3fa6feb2b04676e43ab7a74","user":{"login":"NYTimes","id":221409,"avatar_url":"https://avatars.githubusercontent.com/u/221409?v=3","gravatar_id":"","url":"https://api.github.com/users/NYTimes","html_url":"https://github.com/NYTimes","followers_url":"https://api.github.com/users/NYTimes/followers","following_url":"https://api.github.com/users/NYTimes/following{/other_user}","gists_url":"https://api.github.com/users/NYTimes/gists{/gist_id}","starred_url":"https://api.github.com/users/NYTimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NYTimes/subscriptions","organizations_url":"https://api.github.com/users/NYTimes/orgs","repos_url":"https://api.github.com/users/NYTimes/repos","events_url":"https://api.github.com/users/NYTimes/events{/privacy}","received_events_url":"https://api.github.com/users/NYTimes/received_events","type":"Organization","site_admin":false},"repo":{"id":60372006,"name":"kyt","full_name":"NYTimes/kyt","owner":{"login":"NYTimes","id":221409,"avatar_url":"https://avatars.githubusercontent.com/u/221409?v=3","gravatar_id":"","url":"https://api.github.com/users/NYTimes","html_url":"https://github.com/NYTimes","followers_url":"https://api.github.com/users/NYTimes/followers","following_url":"https://api.github.com/users/NYTimes/following{/other_user}","gists_url":"https://api.github.com/users/NYTimes/gists{/gist_id}","starred_url":"https://api.github.com/users/NYTimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NYTimes/subscriptions","organizations_url":"https://api.github.com/users/NYTimes/orgs","repos_url":"https://api.github.com/users/NYTimes/repos","events_url":"https://api.github.com/users/NYTimes/events{/privacy}","received_events_url":"https://api.github.com/users/NYTimes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NYTimes/kyt","description":"A toolkit that encapsulates and manages the configuration for web apps. Read more about it:","fork":false,"url":"https://api.github.com/repos/NYTimes/kyt","forks_url":"https://api.github.com/repos/NYTimes/kyt/forks","keys_url":"https://api.github.com/repos/NYTimes/kyt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NYTimes/kyt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NYTimes/kyt/teams","hooks_url":"https://api.github.com/repos/NYTimes/kyt/hooks","issue_events_url":"https://api.github.com/repos/NYTimes/kyt/issues/events{/number}","events_url":"https://api.github.com/repos/NYTimes/kyt/events","assignees_url":"https://api.github.com/repos/NYTimes/kyt/assignees{/user}","branches_url":"https://api.github.com/repos/NYTimes/kyt/branches{/branch}","tags_url":"https://api.github.com/repos/NYTimes/kyt/tags","blobs_url":"https://api.github.com/repos/NYTimes/kyt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NYTimes/kyt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NYTimes/kyt/git/refs{/sha}","trees_url":"https://api.github.com/repos/NYTimes/kyt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NYTimes/kyt/statuses/{sha}","languages_url":"https://api.github.com/repos/NYTimes/kyt/languages","stargazers_url":"https://api.github.com/repos/NYTimes/kyt/stargazers","contributors_url":"https://api.github.com/repos/NYTimes/kyt/contributors","subscribers_url":"https://api.github.com/repos/NYTimes/kyt/subscribers","subscription_url":"https://api.github.com/repos/NYTimes/kyt/subscription","commits_url":"https://api.github.com/repos/NYTimes/kyt/commits{/sha}","git_commits_url":"https://api.github.com/repos/NYTimes/kyt/git/commits{/sha}","comments_url":"https://api.github.com/repos/NYTimes/kyt/comments{/number}","issue_comment_url":"https://api.github.com/repos/NYTimes/kyt/issues/comments{/number}","contents_url":"https://api.github.com/repos/NYTimes/kyt/contents/{+path}","compare_url":"https://api.github.com/repos/NYTimes/kyt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NYTimes/kyt/merges","archive_url":"https://api.github.com/repos/NYTimes/kyt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NYTimes/kyt/downloads","issues_url":"https://api.github.com/repos/NYTimes/kyt/issues{/number}","pulls_url":"https://api.github.com/repos/NYTimes/kyt/pulls{/number}","milestones_url":"https://api.github.com/repos/NYTimes/kyt/milestones{/number}","notifications_url":"https://api.github.com/repos/NYTimes/kyt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NYTimes/kyt/labels{/name}","releases_url":"https://api.github.com/repos/NYTimes/kyt/releases{/id}","deployments_url":"https://api.github.com/repos/NYTimes/kyt/deployments","created_at":"2016-06-03T19:16:26Z","updated_at":"2016-12-14T09:48:28Z","pushed_at":"2016-12-13T22:37:50Z","git_url":"git://github.com/NYTimes/kyt.git","ssh_url":"git@github.com:NYTimes/kyt.git","clone_url":"https://github.com/NYTimes/kyt.git","svn_url":"https://github.com/NYTimes/kyt","homepage":"http://open.blogs.nytimes.com/2016/09/13/introducing-kyt-our-web-app-configuration-toolkit/","size":964,"stargazers_count":526,"watchers_count":526,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":43,"mirror_url":null,"open_issues_count":31,"forks":43,"open_issues":31,"watchers":526,"default_branch":"master"}},"base":{"label":"NYTimes:master","ref":"master","sha":"b0e9e4a3877672b00bcd7a02806edc34b0d1a509","user":{"login":"NYTimes","id":221409,"avatar_url":"https://avatars.githubusercontent.com/u/221409?v=3","gravatar_id":"","url":"https://api.github.com/users/NYTimes","html_url":"https://github.com/NYTimes","followers_url":"https://api.github.com/users/NYTimes/followers","following_url":"https://api.github.com/users/NYTimes/following{/other_user}","gists_url":"https://api.github.com/users/NYTimes/gists{/gist_id}","starred_url":"https://api.github.com/users/NYTimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NYTimes/subscriptions","organizations_url":"https://api.github.com/users/NYTimes/orgs","repos_url":"https://api.github.com/users/NYTimes/repos","events_url":"https://api.github.com/users/NYTimes/events{/privacy}","received_events_url":"https://api.github.com/users/NYTimes/received_events","type":"Organization","site_admin":false},"repo":{"id":60372006,"name":"kyt","full_name":"NYTimes/kyt","owner":{"login":"NYTimes","id":221409,"avatar_url":"https://avatars.githubusercontent.com/u/221409?v=3","gravatar_id":"","url":"https://api.github.com/users/NYTimes","html_url":"https://github.com/NYTimes","followers_url":"https://api.github.com/users/NYTimes/followers","following_url":"https://api.github.com/users/NYTimes/following{/other_user}","gists_url":"https://api.github.com/users/NYTimes/gists{/gist_id}","starred_url":"https://api.github.com/users/NYTimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NYTimes/subscriptions","organizations_url":"https://api.github.com/users/NYTimes/orgs","repos_url":"https://api.github.com/users/NYTimes/repos","events_url":"https://api.github.com/users/NYTimes/events{/privacy}","received_events_url":"https://api.github.com/users/NYTimes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NYTimes/kyt","description":"A toolkit that encapsulates and manages the configuration for web apps. Read more about it:","fork":false,"url":"https://api.github.com/repos/NYTimes/kyt","forks_url":"https://api.github.com/repos/NYTimes/kyt/forks","keys_url":"https://api.github.com/repos/NYTimes/kyt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NYTimes/kyt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NYTimes/kyt/teams","hooks_url":"https://api.github.com/repos/NYTimes/kyt/hooks","issue_events_url":"https://api.github.com/repos/NYTimes/kyt/issues/events{/number}","events_url":"https://api.github.com/repos/NYTimes/kyt/events","assignees_url":"https://api.github.com/repos/NYTimes/kyt/assignees{/user}","branches_url":"https://api.github.com/repos/NYTimes/kyt/branches{/branch}","tags_url":"https://api.github.com/repos/NYTimes/kyt/tags","blobs_url":"https://api.github.com/repos/NYTimes/kyt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NYTimes/kyt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NYTimes/kyt/git/refs{/sha}","trees_url":"https://api.github.com/repos/NYTimes/kyt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NYTimes/kyt/statuses/{sha}","languages_url":"https://api.github.com/repos/NYTimes/kyt/languages","stargazers_url":"https://api.github.com/repos/NYTimes/kyt/stargazers","contributors_url":"https://api.github.com/repos/NYTimes/kyt/contributors","subscribers_url":"https://api.github.com/repos/NYTimes/kyt/subscribers","subscription_url":"https://api.github.com/repos/NYTimes/kyt/subscription","commits_url":"https://api.github.com/repos/NYTimes/kyt/commits{/sha}","git_commits_url":"https://api.github.com/repos/NYTimes/kyt/git/commits{/sha}","comments_url":"https://api.github.com/repos/NYTimes/kyt/comments{/number}","issue_comment_url":"https://api.github.com/repos/NYTimes/kyt/issues/comments{/number}","contents_url":"https://api.github.com/repos/NYTimes/kyt/contents/{+path}","compare_url":"https://api.github.com/repos/NYTimes/kyt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NYTimes/kyt/merges","archive_url":"https://api.github.com/repos/NYTimes/kyt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NYTimes/kyt/downloads","issues_url":"https://api.github.com/repos/NYTimes/kyt/issues{/number}","pulls_url":"https://api.github.com/repos/NYTimes/kyt/pulls{/number}","milestones_url":"https://api.github.com/repos/NYTimes/kyt/milestones{/number}","notifications_url":"https://api.github.com/repos/NYTimes/kyt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NYTimes/kyt/labels{/name}","releases_url":"https://api.github.com/repos/NYTimes/kyt/releases{/id}","deployments_url":"https://api.github.com/repos/NYTimes/kyt/deployments","created_at":"2016-06-03T19:16:26Z","updated_at":"2016-12-14T09:48:28Z","pushed_at":"2016-12-13T22:37:50Z","git_url":"git://github.com/NYTimes/kyt.git","ssh_url":"git@github.com:NYTimes/kyt.git","clone_url":"https://github.com/NYTimes/kyt.git","svn_url":"https://github.com/NYTimes/kyt","homepage":"http://open.blogs.nytimes.com/2016/09/13/introducing-kyt-our-web-app-configuration-toolkit/","size":964,"stargazers_count":526,"watchers_count":526,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":43,"mirror_url":null,"open_issues_count":31,"forks":43,"open_issues":31,"watchers":526,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NYTimes/kyt/pulls/347"},"html":{"href":"https://github.com/NYTimes/kyt/pull/347"},"issue":{"href":"https://api.github.com/repos/NYTimes/kyt/issues/347"},"comments":{"href":"https://api.github.com/repos/NYTimes/kyt/issues/347/comments"},"review_comments":{"href":"https://api.github.com/repos/NYTimes/kyt/pulls/347/comments"},"review_comment":{"href":"https://api.github.com/repos/NYTimes/kyt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NYTimes/kyt/pulls/347/commits"},"statuses":{"href":"https://api.github.com/repos/NYTimes/kyt/statuses/8ef59f8a85582faaa3fa6feb2b04676e43ab7a74"}}}}
{"actor":{"display_login":"tizmagik"}}