Skip to content

Commit

Permalink
Promise warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Aug 1, 2016
1 parent 5739594 commit 65df6a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,9 +670,12 @@ exports.download = function(pkg, options, depsCallback) {
Object.keys(depRanges.peerDeps).forEach(function(dep) {
rangeMap.peerDependencies[dep] = depRanges.peerDeps[dep].exactName;
});
postloadResolve(depRanges);
fs.writeFileSync(cacheDir + '.deps.json', JSON.stringify(rangeMap, null, 2));
fs.writeFileSync(path.resolve(cacheDir, '.jspm-hash'), fullHash + newLine + cfgHash);

// postloadResolve creates a promise so we need to return null for Bluebird warnings
postloadResolve(depRanges);
return null;
});
})

Expand Down

0 comments on commit 65df6a0

Please sign in to comment.