Skip to content
This repository has been archived by the owner on Dec 7, 2017. It is now read-only.

Commit

Permalink
copyright: fallback to author when author.name not set
Browse files Browse the repository at this point in the history
sometime in lazy package.json only set: author: "their name" instead of author: { name: "their name" }
  • Loading branch information
hariadi committed Jan 10, 2014
1 parent a34b33d commit 761f004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/lib/mixins.js
Expand Up @@ -76,7 +76,7 @@ exports.pkg = function (key, opts) {
* {%= _.copyright('2012') %} => Copyright (c) 2012-2013 Jeffrey Herb, contributors.
*/
exports.copyright = function (startYear) {
var name = config.author.name ? config.author.name : name;
var name = config.author.name || config.author;
var today = grunt.template.today('yyyy');
var date = startYear ? startYear + '-' + today : today;
return 'Copyright (c) ' + date + ' ' + name + ', contributors.';
Expand Down

0 comments on commit 761f004

Please sign in to comment.