Skip to content

Commit

Permalink
Use _.extend instead of Object.assign
Browse files Browse the repository at this point in the history
  • Loading branch information
tamsingreen committed Sep 13, 2016
1 parent bcf5c28 commit 72f17e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/generate.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var _ = require('lodash');
var fs = require('fs');

var archiver = require('./archiver');
Expand All @@ -21,7 +22,7 @@ function generateSpecFile(root, pkg, release) {

function addCustomFieldsToPackage(pkg, customName) {
if (customName) {
return Object.assign({}, pkg, { name: customName });
return _.extend({}, pkg, { name: customName });
}

return pkg;
Expand Down

0 comments on commit 72f17e1

Please sign in to comment.