Skip to content

Commit

Permalink
cleanup(core): remove commented code for pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Nov 7, 2022
1 parent 3d4eb76 commit 6f8add5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/nx/src/utils/lock-file/pnpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,7 @@ export function transitiveDependencyPnpmLookup(
return version;
}

// const nestedVersion = Object.values(versions).find((v) =>
// v.packageMeta.some(p => p.path.indexOf(`${parentPackage}/node_modules/${packageName}`) !== -1));

// if (nestedVersion) {
// return nestedVersion.version;
// }

// otherwise search for the matching version
// pnpm's dependencies always point to the exact version so this block is only for insurrance
return Object.values(versions).find((v) => satisfies(v.version, version))
?.version;
}
Expand Down

0 comments on commit 6f8add5

Please sign in to comment.