Skip to content

Commit

Permalink
fix: dependency setup
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Nov 9, 2018
1 parent 50d9e6c commit 6b7ed1d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/install-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ const done = new Set();

const setupDependency = async (packagePath, dependencyName, configuration) => {
const { packagesMeta } = configuration;
if (done.has(dependencyName)) return;
if (ongoingMap.has(dependencyName)) {
ongoingMap.get(dependencyName).push(() => setupNpmLink(packagePath, dependencyName));
return;
if (packagesMeta[dependencyName]) {
if (ongoingMap.has(dependencyName)) {
ongoingMap.get(dependencyName).push(() => setupNpmLink(packagePath, dependencyName));
return;
}
if (!done.has(dependencyName)) await module.exports(dependencyName, configuration);
}
if (packagesMeta[dependencyName]) await module.exports(dependencyName, configuration);
await setupNpmLink(packagePath, dependencyName);
};

Expand Down

0 comments on commit 6b7ed1d

Please sign in to comment.