mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-31 05:22:00 -04:00
feat: use shrinkwrap version 3.1
This commit is contained in:
@@ -26,6 +26,7 @@ export default function (
|
||||
)
|
||||
shrinkwrap.packages[dependencyPath] = toShrDependency({
|
||||
dependencyAbsolutePath,
|
||||
name: pkgsToLink[dependencyAbsolutePath].name,
|
||||
id: pkgsToLink[dependencyAbsolutePath].id,
|
||||
dependencyPath,
|
||||
resolution: pkgsToLink[dependencyAbsolutePath].resolution,
|
||||
@@ -45,6 +46,7 @@ export default function (
|
||||
function toShrDependency (
|
||||
opts: {
|
||||
dependencyAbsolutePath: string,
|
||||
name: string,
|
||||
id: string,
|
||||
dependencyPath: string,
|
||||
resolution: Resolution,
|
||||
@@ -64,6 +66,9 @@ function toShrDependency (
|
||||
const result = {
|
||||
resolution: shrResolution
|
||||
}
|
||||
if (dp.isAbsolute(opts.dependencyPath)) {
|
||||
result['name'] = opts.name
|
||||
}
|
||||
if (!R.isEmpty(newResolvedDeps)) {
|
||||
result['dependencies'] = newResolvedDeps
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user