Skip to content

Commit

Permalink
fix(cli): Skip Studio when running rw upgrade (#9860)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Jan 21, 2024
1 parent 6b4fbfc commit 9bf5fbc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/cli/src/commands/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ function updatePackageJsonVersion(pkgPath, version, { dryRun, verbose }) {
)

if (pkg.dependencies) {
for (const depName of Object.keys(pkg.dependencies).filter((x) =>
x.startsWith('@redwoodjs/')
for (const depName of Object.keys(pkg.dependencies).filter(
(x) => x.startsWith('@redwoodjs/') && x !== '@redwoodjs/studio'
)) {
if (verbose || dryRun) {
console.log(` - ${depName}: ${pkg.dependencies[depName]} => ${version}`)
Expand All @@ -234,8 +234,8 @@ function updatePackageJsonVersion(pkgPath, version, { dryRun, verbose }) {
}
}
if (pkg.devDependencies) {
for (const depName of Object.keys(pkg.devDependencies).filter((x) =>
x.startsWith('@redwoodjs/')
for (const depName of Object.keys(pkg.devDependencies).filter(
(x) => x.startsWith('@redwoodjs/') && x !== '@redwoodjs/studio'
)) {
if (verbose || dryRun) {
console.log(
Expand Down

0 comments on commit 9bf5fbc

Please sign in to comment.