File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 7
7
"nuxi" : " node ../bin/nuxi.mjs"
8
8
},
9
9
"dependencies" : {
10
- "nuxt" : " latest "
10
+ "nuxt" : " npm:nuxt-nightly@4.0.0-28826691.eaeda4ee "
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -172,6 +172,10 @@ export default defineCommand({
172
172
const upgradedVersion = ( await getNuxtVersion ( cwd ) ) || '[unknown]'
173
173
consola . info ( 'Upgraded Nuxt version:' , upgradedVersion )
174
174
175
+ if ( upgradedVersion === '[unknown]' ) {
176
+ return
177
+ }
178
+
175
179
if ( upgradedVersion === currentVersion ) {
176
180
consola . success ( 'You\'re already using the latest version of Nuxt.' )
177
181
}
@@ -182,6 +186,9 @@ export default defineCommand({
182
186
'to' ,
183
187
upgradedVersion ,
184
188
)
189
+ if ( currentVersion === '[unknown]' ) {
190
+ return
191
+ }
185
192
const commitA = nuxtVersionToGitIdentifier ( currentVersion )
186
193
const commitB = nuxtVersionToGitIdentifier ( upgradedVersion )
187
194
if ( commitA && commitB ) {
You can’t perform that action at this time.
0 commit comments