{"action":"created","issue":{"url":"https://api.github.com/repos/c9/core/issues/24","labels_url":"https://api.github.com/repos/c9/core/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/c9/core/issues/24/comments","events_url":"https://api.github.com/repos/c9/core/issues/24/events","html_url":"https://github.com/c9/core/issues/24","id":60097679,"number":24,"title":"c9 publish breaks on 'something-js' directory in plugin","user":{"login":"Pike","id":43494,"avatar_url":"https://avatars.githubusercontent.com/u/43494?v=3","gravatar_id":"","url":"https://api.github.com/users/Pike","html_url":"https://github.com/Pike","followers_url":"https://api.github.com/users/Pike/followers","following_url":"https://api.github.com/users/Pike/following{/other_user}","gists_url":"https://api.github.com/users/Pike/gists{/gist_id}","starred_url":"https://api.github.com/users/Pike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pike/subscriptions","organizations_url":"https://api.github.com/users/Pike/orgs","repos_url":"https://api.github.com/users/Pike/repos","events_url":"https://api.github.com/users/Pike/events{/privacy}","received_events_url":"https://api.github.com/users/Pike/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-06T12:46:38Z","updated_at":"2015-03-06T21:59:14Z","closed_at":"2015-03-06T21:59:14Z","body":"https://github.com/c9/core/blob/master/plugins/c9.cli.publish/publish.js#L346 tests for .js, and not \\.js$, which makes it pick up all kinds of things that aren't js files.\r\n\r\nIn my case, sax-js directory, which breaks once it tries to readFileSync that entry.\r\n\r\nGiven how many things call itself .js these days, it's probably a good idea to actually statSync to check if it's a file, too."},"comment":{"url":"https://api.github.com/repos/c9/core/issues/comments/77643894","html_url":"https://github.com/c9/core/issues/24#issuecomment-77643894","issue_url":"https://api.github.com/repos/c9/core/issues/24","id":77643894,"user":{"login":"nightwing","id":341801,"avatar_url":"https://avatars.githubusercontent.com/u/341801?v=3","gravatar_id":"","url":"https://api.github.com/users/nightwing","html_url":"https://github.com/nightwing","followers_url":"https://api.github.com/users/nightwing/followers","following_url":"https://api.github.com/users/nightwing/following{/other_user}","gists_url":"https://api.github.com/users/nightwing/gists{/gist_id}","starred_url":"https://api.github.com/users/nightwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightwing/subscriptions","organizations_url":"https://api.github.com/users/nightwing/orgs","repos_url":"https://api.github.com/users/nightwing/repos","events_url":"https://api.github.com/users/nightwing/events{/privacy}","received_events_url":"https://api.github.com/users/nightwing/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T21:59:14Z","updated_at":"2015-03-06T21:59:14Z","body":"Good find! This should be fixed by https://github.com/c9/core/commit/657fe113d254f5351962578166f8b12b70714a76\r\n"}}