Skip to content

Commit

Permalink
build: fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Aug 6, 2024
1 parent e8e93e4 commit ffba3ec
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,21 @@ function updateDeps(pkg, depType, updatedPackages) {
const updatedDep = updatedPackages.find((pkg) => pkg.name === dep)
// avoid updated peer deps that are external like @vue/devtools-api
if (dep && updatedDep) {
console.log(
chalk.yellow(
`${pkg.name} -> ${depType} -> ${dep}@~${updatedDep.version}`
// skip any workspace reference, pnpm will handle it
if (deps[dep].startsWith('workspace:')) {
console.log(
chalk.yellow.dim(
`${pkg.name} -> ${depType} -> ${dep}@${deps[dep]} (skipped)`
)
)
)
deps[dep] = '>=' + updatedDep.version
} else {
console.log(
chalk.yellow(
`${pkg.name} -> ${depType} -> ${dep}@>=${updatedDep.version}`
)
)
deps[dep] = '>=' + updatedDep.version
}
}
})
}
Expand Down

0 comments on commit ffba3ec

Please sign in to comment.