Skip to content

Commit

Permalink
feat: add update check
Browse files Browse the repository at this point in the history
  • Loading branch information
snowyu committed Aug 14, 2024
1 parent c2465fa commit dd95ac7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@oclif/plugin-not-found": "^3.2.8",
"@oclif/plugin-plugins": "^5",
"@oclif/plugin-version": "^2.2.5",
"@oclif/plugin-warn-if-update-available": "^3.1.11",
"ansi-colors": "^4.1.3",
"ansis": "^3.2.0",
"better-sqlite3": "^11.1.2",
Expand Down Expand Up @@ -95,6 +96,10 @@
"pluginPrefix": "ai-plugin",
"theme": "theme.json",
"topicSeparator": " ",
"warn-if-update-available": {
"timeoutInDays": 7,
"message": "<%= config.name %> update available from <%= chalk.yellowBright(config.version) %> to <%= chalk.yellowBright(latest) %>.\nRun <%= chalk.greenBright('npm install -g ' + config.name) %> to update."
},
"repositoryPrefix": ""
},
"scripts": {
Expand Down

0 comments on commit dd95ac7

Please sign in to comment.