Skip to content

Commit 6b80c59

Browse files
committed
fix(init): default nightly install to latest
1 parent 864c247 commit 6b80c59

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/nuxi/src/commands/init.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,7 @@ export default defineCommand({
249249
}
250250
}>('https://registry.npmjs.org/nuxt-nightly')
251251

252-
const nightlyChannelTag = ctx.args.nightly
253-
|| Object.keys(response['dist-tags'])
254-
.filter(key => /^\d+x$/.test(key))
255-
.sort()
256-
.reverse()[0]
252+
const nightlyChannelTag = ctx.args.nightly || 'latest'
257253

258254
if (!nightlyChannelTag) {
259255
logger.error(`Error getting nightly channel tag.`)

0 commit comments

Comments
 (0)