File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ import { PackageName } from '#common/constants/question.const.js'
12
12
const { timestamp, hasShow } = ( await getStore ( 'checkResult' ) ) ?? { }
13
13
if ( Date . now ( ) - timestamp <= Day || hasShow ) process . exit ( 0 )
14
14
15
- const { localVersion, remoteVersion , isCliUpdate } = await checkUpdate ( )
15
+ const { localVersion, npmVersion , isCliUpdate } = await checkUpdate ( )
16
16
const needShow = false
17
17
if ( isCliUpdate ) {
18
18
const installInfo = [ NpmInstall , YarnInstall , PnpmInstall ]
19
19
. map ( ( fun ) => fun ( PackageName , true , true ) ) // 暂时先默认为全局
20
20
. join ( '\n' )
21
21
logger . warn (
22
- `[leetcode-practice] 检测到新版本[ ${ remoteVersion } ]已经发布! 您当前的版本为[ ${ localVersion } ]! 您可以执行对应的指令进行手动更新~`
22
+ `[leetcode-practice] 检测到新版本[ ${ npmVersion } ]已经发布! 您当前的版本为[ ${ localVersion } ]! 您可以执行对应的指令进行手动更新~`
23
23
)
24
24
logger . info ( `${ installInfo } ` )
25
25
}
You can’t perform that action at this time.
0 commit comments