@cloudbase/cli 2.8.19 → 2.8.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/tcb.js +5 -3
  2. package/package.json +2 -2
package/bin/tcb.js CHANGED
@@ -306,9 +306,11 @@ async function main() {
306
306
  updateCheckInterval: CheckInterval
307
307
  })
308
308
 
309
- notifier.notify({
310
- isGlobal: true
311
- })
309
+ if (notifier.update) {
310
+ console.log('\n发现新版本:' + notifier.update.latest)
311
+ console.log('当前版本:' + notifier.update.current)
312
+ console.log('请参考升级文档:https://docs.cloudbase.net/cli-v1/install\n')
313
+ }
312
314
  }
313
315
 
314
316
  if (require.main === module) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cli",
3
- "version": "2.8.19",
3
+ "version": "2.8.20",
4
4
  "description": "cli tool for cloudbase",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -80,6 +80,7 @@
80
80
  "nodemon": "^3.1.4",
81
81
  "open": "^7.0.0",
82
82
  "ora": "^4.0.2",
83
+ "patch-package": "^8.0.0",
83
84
  "portfinder": "^1.0.28",
84
85
  "progress": "^2.0.3",
85
86
  "query-string": "^6.8.1",
@@ -113,7 +114,6 @@
113
114
  "eslint-config-alloy": "^3.8.2",
114
115
  "husky": "^3.0.9",
115
116
  "jest": "^27",
116
- "patch-package": "^8.0.0",
117
117
  "rimraf": "^3.0.2",
118
118
  "ts-jest": "^27",
119
119
  "typescript": "^4.7.2",