diff --git a/app/index.js b/app/index.js index 89162f4..d846e89 100644 --- a/app/index.js +++ b/app/index.js @@ -178,11 +178,7 @@ BespokepluginGenerator.prototype.setupPackageJson = function setupPackageJson() 'engines': { 'node': '>=0.10.0' }, - 'licenses': [ - { - 'type': 'MIT' - } - ], + 'licenses': 'MIT', 'keywords': [ 'bespoke-plugin' ] diff --git a/app/templates/gulpfile.js b/app/templates/gulpfile.js index 808c5e7..04ff464 100644 --- a/app/templates/gulpfile.js +++ b/app/templates/gulpfile.js @@ -64,8 +64,7 @@ gulp.task('compile', ['clean'], function() { ' * <%%= name %> v<%%= version %>', ' *', ' * Copyright <%%= new Date().getFullYear() %>, <%%= author.name %>', - ' * This content is released under the <%%= licenses[0].type %> license', - ' * <%%= licenses[0].url %>', + ' * This content is released under the <%%= license %> license', ' */\n\n' ].join('\n'), pkg))) .pipe(gulp.dest('dist')) @@ -74,7 +73,7 @@ gulp.task('compile', ['clean'], function() { .pipe(header(template([ '/*! <%%= name %> v<%%= version %> ', '© <%%= new Date().getFullYear() %> <%%= author.name %>, ', - '<%%= licenses[0].type %> License */\n' + '<%%= license %> License */\n' ].join(''), pkg))) .pipe(gulp.dest('dist')); });