{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/metalsmith/issues/151","labels_url":"https://api.github.com/repos/segmentio/metalsmith/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/metalsmith/issues/151/comments","events_url":"https://api.github.com/repos/segmentio/metalsmith/issues/151/events","html_url":"https://github.com/segmentio/metalsmith/issues/151","id":95494254,"number":151,"title":"Version 2.0.1 broken?","user":{"login":"woodyrew","id":1902064,"avatar_url":"https://avatars.githubusercontent.com/u/1902064?v=3","gravatar_id":"","url":"https://api.github.com/users/woodyrew","html_url":"https://github.com/woodyrew","followers_url":"https://api.github.com/users/woodyrew/followers","following_url":"https://api.github.com/users/woodyrew/following{/other_user}","gists_url":"https://api.github.com/users/woodyrew/gists{/gist_id}","starred_url":"https://api.github.com/users/woodyrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodyrew/subscriptions","organizations_url":"https://api.github.com/users/woodyrew/orgs","repos_url":"https://api.github.com/users/woodyrew/repos","events_url":"https://api.github.com/users/woodyrew/events{/privacy}","received_events_url":"https://api.github.com/users/woodyrew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-16T18:20:00Z","updated_at":"2015-07-17T13:49:17Z","closed_at":null,"body":"The following code copies files from `src` to `build` on 1.7.0\r\n```javascript\r\nvar Metalsmith = require('metalsmith');\r\n\r\nMetalsmith(__dirname)\r\n    .destination('./build')\r\n    .build(function (err) {\r\n        // For error handling\r\n        if (err) {\r\n            throw err;\r\n        }\r\n    });\r\n```\r\n\r\nHowever, 2.0.1 errors with:\r\n```bash\r\n/home/my_path/node_modules/metalsmith/lib/index.js:190\r\nMetalsmith.prototype.build = unyield(function*(){\r\n                                             ^\r\nSyntaxError: Unexpected token *\r\n    at Module._compile (module.js:439:25)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Module.require (module.js:364:17)\r\n    at require (module.js:380:17)\r\n    at Object.<anonymous> (/home/woody/Documents/test/node_modules/metalsmith/index.js:6:18)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n```\r\n\r\nIs this a problem or do I need to change how I'm using Metalsmith.\r\n\r\nNode: v0.10.29\r\n"},"comment":{"url":"https://api.github.com/repos/segmentio/metalsmith/issues/comments/122279055","html_url":"https://github.com/segmentio/metalsmith/issues/151#issuecomment-122279055","issue_url":"https://api.github.com/repos/segmentio/metalsmith/issues/151","id":122279055,"user":{"login":"woodyrew","id":1902064,"avatar_url":"https://avatars.githubusercontent.com/u/1902064?v=3","gravatar_id":"","url":"https://api.github.com/users/woodyrew","html_url":"https://github.com/woodyrew","followers_url":"https://api.github.com/users/woodyrew/followers","following_url":"https://api.github.com/users/woodyrew/following{/other_user}","gists_url":"https://api.github.com/users/woodyrew/gists{/gist_id}","starred_url":"https://api.github.com/users/woodyrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodyrew/subscriptions","organizations_url":"https://api.github.com/users/woodyrew/orgs","repos_url":"https://api.github.com/users/woodyrew/repos","events_url":"https://api.github.com/users/woodyrew/events{/privacy}","received_events_url":"https://api.github.com/users/woodyrew/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T13:49:17Z","updated_at":"2015-07-17T13:49:17Z","body":"I missed the v0.10 support stopping.  Doesn't explain why @kvzivn was getting the same issue in v0.12."}}