@pnpm/pkg-manager.direct-dep-linker
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -18,2 +18,2 @@ export interface LinkedDirectDep { | ||
dedupe: boolean; | ||
}): Promise<void>; | ||
}): Promise<number>; |
@@ -19,7 +19,8 @@ "use strict"; | ||
} | ||
await Promise.all(Object.values(projects).map(linkDirectDepsOfProject)); | ||
const numberOfLinkedDeps = await Promise.all(Object.values(projects).map(linkDirectDepsOfProject)); | ||
return numberOfLinkedDeps.reduce((sum, count) => sum + count, 0); | ||
} | ||
exports.linkDirectDeps = linkDirectDeps; | ||
async function linkDirectDepsAndDedupe(rootProject, projects) { | ||
await linkDirectDepsOfProject(rootProject); | ||
const linkedDeps = await linkDirectDepsOfProject(rootProject); | ||
const pkgsLinkedToRoot = await readLinkedDeps(rootProject.modulesDir); | ||
@@ -40,2 +41,3 @@ await Promise.all(Object.values(projects).map(async (project) => { | ||
})); | ||
return linkedDeps; | ||
} | ||
@@ -80,2 +82,3 @@ function omitDepsFromRoot(deps, pkgsLinkedToRoot) { | ||
async function linkDirectDepsOfProject(project) { | ||
let linkedDeps = 0; | ||
await Promise.all(project.dependencies.map(async (dep) => { | ||
@@ -109,4 +112,6 @@ if (dep.isExternalLink) { | ||
}); | ||
linkedDeps++; | ||
})); | ||
return linkedDeps; | ||
} | ||
//# sourceMappingURL=linkDirectDeps.js.map |
{ | ||
"name": "@pnpm/pkg-manager.direct-dep-linker", | ||
"description": "Fast installation using only pnpm-lock.yaml", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"bugs": { | ||
@@ -19,3 +19,3 @@ "url": "https://github.com/pnpm/pnpm/issues" | ||
"@types/ramda": "0.28.20", | ||
"@pnpm/pkg-manager.direct-dep-linker": "2.0.0" | ||
"@pnpm/pkg-manager.direct-dep-linker": "2.1.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/direct-dep-linker#readme", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13046
148