From ad7b67baacbf987acaec833edcbda690ea5b20b2 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 29 Aug 2022 22:21:55 +0200 Subject: [PATCH] fix version access and use caret --- scripts/bump-edge.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bump-edge.ts b/scripts/bump-edge.ts index abd759f238f..426d7c828dd 100644 --- a/scripts/bump-edge.ts +++ b/scripts/bump-edge.ts @@ -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}`)