Nuxt/scripts/bump-rc.ts
Daniel Roe 74a90c566c
chore: use pnpm for framework monorepo (#7895)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-10-17 12:10:05 +02:00

20 lines
501 B
TypeScript

import { inc } from 'semver'
import { loadWorkspace } from './_utils'
async function main () {
const workspace = await loadWorkspace(process.cwd())
for (const pkg of workspace.packages.filter(p => !p.data.private)) {
// TODO: Set release type based on changelog after 3.0.0
const newVersion = inc(pkg.data.version, 'prerelease', 'rc')
workspace.setVersion(pkg.data.name, newVersion!)
}
await workspace.save()
}
main().catch((err) => {
console.error(err)
process.exit(1)
})