Skip to content

Commit

Permalink
Merge pull request #349 from theefer/sc-fix-install
Browse files Browse the repository at this point in the history
Fixes #348
  • Loading branch information
guybedford committed Jan 2, 2015
2 parents 515fa77 + ebbbe8c commit 3c26dfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ exports.processPackage = function(pkg, dir, pjson, postload) {
var endpoint = ep.load(pjson.registry != 'jspm' && pjson.registry || pkg.endpoint);
var deps;
var buildErrors = [];
var curDeps;
var curDeps = [];

return Promise.resolve()

Expand All @@ -599,7 +599,7 @@ exports.processPackage = function(pkg, dir, pjson, postload) {
buildErrors = buildErrors.concat(_buildErrors);

// if we gained a new dependency, download it
if (pjson.dependencies && Object.keys(pjson.dependencies).length > (curDeps.length || 0)) {
if (pjson.dependencies && Object.keys(pjson.dependencies).length > curDeps.length) {
var newDepMap = processDeps(pjson.dependencies, pjson.registry);
// remove dependencies already downloaded
Object.keys(newDepMap).forEach(function(dep) {
Expand Down

0 comments on commit 3c26dfa

Please sign in to comment.