Skip to content

Commit

Permalink
fix(buildArgs) fix buildArgs is object
Browse files Browse the repository at this point in the history
broken in father@0.10.4

Relate popomore/father#26
  • Loading branch information
popomore committed Dec 19, 2014
1 parent 2487ed2 commit 908fb58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ util.isStandalone = function(file) {

var pkg = file.pkg;
var buildArgs = (pkg.origin.spm && pkg.origin.spm.buildArgs) || '';
if (buildArgs.indexOf('--include standalone') === -1
&& buildArgs.indexOf('--include umd') === -1) {
if (['standalone', 'umd'].indexOf(buildArgs.include) === -1) {
return false;
}

Expand Down

0 comments on commit 908fb58

Please sign in to comment.