@pnpm/prune-lockfile
Advanced tools
Comparing version 4.0.22 to 4.0.23
@@ -53,7 +53,7 @@ "use strict"; | ||
const devDependencies = (0, difference_1.default)((0, difference_1.default)(Object.keys(pkg.devDependencies ?? {}), optionalDependencies), dependencies); | ||
const allDeps = [ | ||
const allDeps = new Set([ | ||
...optionalDependencies, | ||
...devDependencies, | ||
...dependencies, | ||
]; | ||
]); | ||
const specifiers = {}; | ||
@@ -64,3 +64,3 @@ const lockfileDependencies = {}; | ||
Object.entries(lockfileSpecs).forEach(([depName, spec]) => { | ||
if (!allDeps.includes(depName)) | ||
if (!allDeps.has(depName)) | ||
return; | ||
@@ -83,3 +83,3 @@ specifiers[depName] = spec; | ||
// then it is removed from pnpm-lock.yaml as well | ||
!(lockfileSpecs[alias] && !allDeps[alias])) { | ||
!(lockfileSpecs[alias] && !allDeps.has(alias))) { | ||
lockfileDependencies[alias] = dep; | ||
@@ -86,0 +86,0 @@ } |
{ | ||
"name": "@pnpm/prune-lockfile", | ||
"version": "4.0.22", | ||
"version": "4.0.23", | ||
"description": "Prune a pnpm-lock.yaml", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
"yaml-tag": "1.1.0", | ||
"@pnpm/prune-lockfile": "4.0.22" | ||
"@pnpm/prune-lockfile": "4.0.23" | ||
}, | ||
@@ -37,3 +37,3 @@ "dependencies": { | ||
"@pnpm/types": "8.10.0", | ||
"@pnpm/dependency-path": "1.1.1" | ||
"@pnpm/dependency-path": "1.1.2" | ||
}, | ||
@@ -40,0 +40,0 @@ "funding": "https://opencollective.com/pnpm", |
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
16536
+ Added@pnpm/dependency-path@1.1.2(transitive)
- Removed@pnpm/dependency-path@1.1.1(transitive)
Updated@pnpm/dependency-path@1.1.2