Skip to content

Commit

Permalink
fix: prevent overwrite on existing packages (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvanhens committed Oct 14, 2022
1 parent 3395cab commit b554167
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/doctor-aggregate-packages.mjs
Expand Up @@ -69,7 +69,9 @@ async function patch(pkgJsonPath, pkgJson, packages, dependenciesKey) {
...Object.fromEntries(
packages
.sort((pkgA, pkgB) => pkgA.name < pkgB.name)
.map((pkg) => [pkg.name, pkgJson[pkg.name] ?? "*"])
.map((pkg) => {
return [pkg.name, pkgJson[dependenciesKey][pkg.name] ?? "*"];
})
),
};

Expand Down

0 comments on commit b554167

Please sign in to comment.