Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix version access and use caret
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 29, 2022
1 parent e5dc92e commit ad7b67b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/bump-edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ async function main () {

const nuxtPkg = workspace.find('nuxt')
const nitroInfo = await $fetch('https://registry.npmjs.org/nitropack-edge')
const latestNitro = nitroInfo.distTags.latest
nuxtPkg.data.dependencies.nitropack = `npm:nitropack-edge@${latestNitro}`
const latestNitro = nitroInfo['dist-tags'].latest
nuxtPkg.data.dependencies.nitropack = `npm:nitropack-edge@^${latestNitro}`

for (const pkg of workspace.packages.filter(p => !p.data.private)) {
workspace.setVersion(pkg.data.name, `${pkg.data.version}-${date}.${commit}`)
Expand Down

0 comments on commit ad7b67b

Please sign in to comment.