Skip to content

Commit

Permalink
chore(release): fix updating peerDependencies in release script (#1…
Browse files Browse the repository at this point in the history
…0045)

`@redwoodjs/api-server`'s peerDependency on `@redwoodjs/graphql-server`
didn't get bumped to v7; a user caught it here:
https://community.redwoodjs.com/t/redwood-v7-0-0-upgrade-guide/5713/22.
Turns out there's a small bug in our release script. Fixing here then
I'll release a patch.
  • Loading branch information
jtoar authored Feb 20, 2024
1 parent 4875482 commit b3f7373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/release/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,8 @@ function updateRWJSPkgsVersion(pkgPath, version) {
}

for (const dep of Object.keys(pkg.peerDependencies ?? {}).filter(isRWJSPkg)) {
console.log(` - ${dep}: ${pkg.devDependencies[dep]} => ${version}`)
pkg.devDependencies[dep] = `${version}`
console.log(` - ${dep}: ${pkg.peerDependencies[dep]} => ${version}`)
pkg.peerDependencies[dep] = `${version}`
}

fs.writeJSONSync(path.join(pkgPath, 'package.json'), pkg, { spaces: 2 })
Expand Down

0 comments on commit b3f7373

Please sign in to comment.