{"action":"created","issue":{"url":"https://api.github.com/repos/chalk/chalk/issues/81","labels_url":"https://api.github.com/repos/chalk/chalk/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/chalk/chalk/issues/81/comments","events_url":"https://api.github.com/repos/chalk/chalk/issues/81/events","html_url":"https://github.com/chalk/chalk/pull/81","id":101926431,"number":81,"title":"Remove un-necessary function name. Fixes #80","user":{"login":"lukeapage","id":309321,"avatar_url":"https://avatars.githubusercontent.com/u/309321?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeapage","html_url":"https://github.com/lukeapage","followers_url":"https://api.github.com/users/lukeapage/followers","following_url":"https://api.github.com/users/lukeapage/following{/other_user}","gists_url":"https://api.github.com/users/lukeapage/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeapage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeapage/subscriptions","organizations_url":"https://api.github.com/users/lukeapage/orgs","repos_url":"https://api.github.com/users/lukeapage/repos","events_url":"https://api.github.com/users/lukeapage/events{/privacy}","received_events_url":"https://api.github.com/users/lukeapage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-19T15:57:31Z","updated_at":"2015-08-19T16:38:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chalk/chalk/pulls/81","html_url":"https://github.com/chalk/chalk/pull/81","diff_url":"https://github.com/chalk/chalk/pull/81.diff","patch_url":"https://github.com/chalk/chalk/pull/81.patch"},"body":"See discussion on #80"},"comment":{"url":"https://api.github.com/repos/chalk/chalk/issues/comments/132688825","html_url":"https://github.com/chalk/chalk/pull/81#issuecomment-132688825","issue_url":"https://api.github.com/repos/chalk/chalk/issues/81","id":132688825,"user":{"login":"alexbeletsky","id":304929,"avatar_url":"https://avatars.githubusercontent.com/u/304929?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbeletsky","html_url":"https://github.com/alexbeletsky","followers_url":"https://api.github.com/users/alexbeletsky/followers","following_url":"https://api.github.com/users/alexbeletsky/following{/other_user}","gists_url":"https://api.github.com/users/alexbeletsky/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbeletsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbeletsky/subscriptions","organizations_url":"https://api.github.com/users/alexbeletsky/orgs","repos_url":"https://api.github.com/users/alexbeletsky/repos","events_url":"https://api.github.com/users/alexbeletsky/events{/privacy}","received_events_url":"https://api.github.com/users/alexbeletsky/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T16:38:36Z","updated_at":"2015-08-19T16:38:36Z","body":"I confirm the problem.. first I thought it's the `time-grunt` issue, but further diagnosis went to `chalk` library. Here is the output of `grunt` run, that shows the issue:\r\n\r\n```\r\n grunt build:prod --debug --stack\r\nRunning \"clean:build\" (clean) task\r\n[D] Task source: /Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-clean/tasks/clean.js\r\n>> 1 path cleaned.\r\n\r\nRunning \"browserify:prod\" (browserify) task\r\n[D] Task source: /Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-browserify/tasks/browserify.js\r\n>> Bundle source/build/app.js created.\r\n\r\nRunning \"compass:dev\" (compass) task\r\n[D] Task source: /Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-compass/tasks/compass.js\r\n\r\nRunning \"uglify:main\" (uglify) task\r\n[D] Task source: /Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-uglify/tasks/uglify.js\r\nWarning: builder is not defined Use --force to continue.\r\nReferenceError: builder is not defined\r\n    at Chalk.builder (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-uglify/node_modules/chalk/index.js:40:27)\r\n    at /Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-uglify/tasks/uglify.js:176:45\r\n    at Array.forEach (native)\r\n    at Object.<anonymous> (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-uglify/tasks/uglify.js:63:16)\r\n    at Object.<anonymous> (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt/lib/grunt/task.js:264:15)\r\n    at Object.thisTask.fn (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt/lib/grunt/task.js:82:16)\r\n    at Object.<anonymous> (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt/lib/util/task.js:301:30)\r\n    at Task.runTaskFn (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt/lib/util/task.js:251:24)\r\n    at Task.<anonymous> (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt/lib/util/task.js:300:12)\r\n    at /Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt/lib/util/task.js:227:11\r\n\r\nAborted due to warnings.\r\n```\r\n\r\nIf I go and manually change `node_modules/grunt-contib-uglify/node_modules/chalk` as @lukeapage PR, all is good! It fails after in `cssmin` task, cause it also depends on `chalk` and have it's own copy of the module.\r\n\r\n```\r\n grunt build:prod --debug --stack\r\nRunning \"clean:build\" (clean) task\r\n[D] Task source: /Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-clean/tasks/clean.js\r\n>> 1 path cleaned.\r\n\r\nRunning \"browserify:prod\" (browserify) task\r\n[D] Task source: /Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-browserify/tasks/browserify.js\r\n>> Bundle source/build/app.js created.\r\n\r\nRunning \"compass:dev\" (compass) task\r\n[D] Task source: /Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-compass/tasks/compass.js\r\n\r\nRunning \"uglify:main\" (uglify) task\r\n[D] Task source: /Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-uglify/tasks/uglify.js\r\n>> 1 file created.\r\n\r\nRunning \"cssmin:minify\" (cssmin) task\r\n[D] Task source: /Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-cssmin/tasks/cssmin.js\r\nWarning: builder is not defined Use --force to continue.\r\nReferenceError: builder is not defined\r\n    at Chalk.builder (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-cssmin/node_modules/chalk/index.js:40:27)\r\n    at Object.<anonymous> (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-cssmin/tasks/cssmin.js:81:45)\r\n    at Array.forEach (native)\r\n    at Object.<anonymous> (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt-contrib-cssmin/tasks/cssmin.js:30:16)\r\n    at Object.<anonymous> (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt/lib/grunt/task.js:264:15)\r\n    at Object.thisTask.fn (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt/lib/grunt/task.js:82:16)\r\n    at Object.<anonymous> (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt/lib/util/task.js:301:30)\r\n    at Task.runTaskFn (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt/lib/util/task.js:251:24)\r\n    at Task.<anonymous> (/Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt/lib/util/task.js:300:12)\r\n    at /Users/alexanderbeletsky/Development/Projects/mylorry/shift-planner-office/node_modules/grunt/lib/util/task.js:227:11\r\n```\r\n\r\nI clearly understand, it seems like a strange change.. and it's hard to create any meaningful tests, but it solves the issue."}}