@treeseed/sdk 0.12.47 → 0.12.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -731,6 +731,8 @@ function syncDirectGitDependencyLockfileEntries(node, options, references) {
|
|
|
731
731
|
let changed = false;
|
|
732
732
|
for (const reference of references) {
|
|
733
733
|
const manifestSpec = reference.manifestSpec ?? reference.spec;
|
|
734
|
+
const declaredSpec = ["dependencies", "devDependencies", "optionalDependencies", "peerDependencies"].map((field) => node.packageJson?.[field]).filter((value) => Boolean(value && typeof value === "object" && !Array.isArray(value))).map((dependencies) => dependencies[reference.packageName]).find((value) => typeof value === "string");
|
|
735
|
+
if (declaredSpec !== manifestSpec) continue;
|
|
734
736
|
const visitDependencyMaps = (value) => {
|
|
735
737
|
if (!value || typeof value !== "object") return;
|
|
736
738
|
if (Array.isArray(value)) {
|