Skip to content

Commit

Permalink
feat: mark end after pending jobs are finalized
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Oct 24, 2018
1 parent 51afdbc commit f492985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ module.exports = ee(async (packageName, configuration) => {
await cleanNonDirectDependencies(packageName, packagePath, dependencies, configuration);

// Done
module.exports.emit("end", { packageName });
done.add(packageName);
ongoingMap.delete(packageName);

Expand All @@ -158,4 +157,5 @@ module.exports = ee(async (packageName, configuration) => {
log.info("run pending jobs of %s", packageName);
for (const pendingJob of pendingJobs) await pendingJob();
}
module.exports.emit("end", { packageName });
});

0 comments on commit f492985

Please sign in to comment.