Skip to content

Commit

Permalink
build: fix version update [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Apr 17, 2024
1 parent c0ada53 commit 565b611
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,15 @@ async function updateVersions(packageList) {
if (!noDepsUpdate) {
updateDeps(pkg, 'dependencies', packageList)
updateDeps(pkg, 'peerDependencies', packageList)
const content = JSON.stringify(pkg, null, 2) + '\n'
return isDryRun
? dryRun('write', [name], {
dependencies: pkg.dependencies,
peerDependencies: pkg.peerDependencies,
})
: fs.writeFile(join(path, 'package.json'), content)
}
const content = JSON.stringify(pkg, null, 2) + '\n'
return isDryRun
? dryRun('write', [name], {
version: pkg.version,
dependencies: pkg.dependencies,
peerDependencies: pkg.peerDependencies,
})
: fs.writeFile(join(path, 'package.json'), content)
})
)
}
Expand Down

0 comments on commit 565b611

Please sign in to comment.