@pnpm/manifest-utils
Advanced tools
Comparing version 6.0.8 to 6.0.9
@@ -8,3 +8,3 @@ "use strict"; | ||
async function updateProjectManifestObject(prefix, packageManifest, packageSpecs) { | ||
packageSpecs.forEach((packageSpec) => { | ||
for (const packageSpec of packageSpecs) { | ||
if (packageSpec.saveType) { | ||
@@ -15,7 +15,7 @@ const spec = packageSpec.pref ?? findSpec(packageSpec.alias, packageManifest); | ||
packageManifest[packageSpec.saveType][packageSpec.alias] = spec; | ||
types_1.DEPENDENCIES_FIELDS.filter((depField) => depField !== packageSpec.saveType).forEach((deptype) => { | ||
if (packageManifest[deptype] != null) { | ||
delete packageManifest[deptype][packageSpec.alias]; | ||
for (const deptype of types_1.DEPENDENCIES_FIELDS) { | ||
if (deptype !== packageSpec.saveType) { | ||
delete packageManifest[deptype]?.[packageSpec.alias]; | ||
} | ||
}); | ||
} | ||
if (packageSpec.peer === true) { | ||
@@ -40,3 +40,3 @@ packageManifest.peerDependencies = packageManifest.peerDependencies ?? {}; | ||
} | ||
}); | ||
} | ||
core_loggers_1.packageManifestLogger.debug({ | ||
@@ -43,0 +43,0 @@ prefix, |
{ | ||
"name": "@pnpm/manifest-utils", | ||
"description": "Utils for dealing with package manifest", | ||
"version": "6.0.8", | ||
"version": "6.0.9", | ||
"bugs": { | ||
@@ -23,5 +23,5 @@ "url": "https://github.com/pnpm/pnpm/issues" | ||
"dependencies": { | ||
"@pnpm/core-loggers": "10.0.7", | ||
"@pnpm/error": "6.0.1", | ||
"@pnpm/types": "12.2.0" | ||
"@pnpm/error": "6.0.2", | ||
"@pnpm/types": "12.2.0", | ||
"@pnpm/core-loggers": "10.0.7" | ||
}, | ||
@@ -31,3 +31,3 @@ "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manifest/manifest-utils#readme", | ||
"devDependencies": { | ||
"@pnpm/manifest-utils": "6.0.8" | ||
"@pnpm/manifest-utils": "6.0.9" | ||
}, | ||
@@ -34,0 +34,0 @@ "exports": { |
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
20151
+ Added@pnpm/constants@9.0.0(transitive)
+ Added@pnpm/error@6.0.2(transitive)
- Removed@pnpm/constants@8.0.0(transitive)
- Removed@pnpm/error@6.0.1(transitive)
Updated@pnpm/error@6.0.2