Skip to content

Commit

Permalink
fix: do not exit on unlicensed (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Jun 26, 2018
1 parent d2b2bd8 commit 432c5da
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,16 +305,14 @@ module.exports = class extends Generator {

const file = constants.LICENSE_FILES[this.config.get('license')];

if (!file) {
return;
if (file) {
this.fs.copyTpl(
this.templatePath(file),
this.destinationPath('LICENSE'),
this.context
);
}

this.fs.copyTpl(
this.templatePath(file),
this.destinationPath('LICENSE'),
this.context
);

const json = packageJSON(this._currentPkgJSON, this.context);

// We want to use normal JSON.stringify here because we want to
Expand Down

0 comments on commit 432c5da

Please sign in to comment.