Skip to content

Commit

Permalink
feat: add update warning to create-cli and make it single command lik…
Browse files Browse the repository at this point in the history
…e before
  • Loading branch information
sorccu committed Feb 25, 2025
1 parent ca596cd commit 955bf6a
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 2 deletions.
59 changes: 59 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions packages/create-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,25 @@
],
"oclif": {
"bin": "create-cli",
"commands": "./dist/commands",
"default": "bootstrap"
"commands": {
"strategy": "single",
"target": "./dist/commands/bootstrap"
},
"plugins": [
"@oclif/plugin-help",
"@oclif/plugin-warn-if-update-available"
],
"warn-if-update-available": {
"timeoutInDays": 30,
"message": "<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>. To update, run `npm install -D checkly@latest`"
}
},
"homepage": "https://github.com/checkly/checkly-cli#readme",
"dependencies": {
"@oclif/core": "4.2.7",
"@oclif/plugin-help": "6.2.25",
"@oclif/plugin-plugins": "5.4.33",
"@oclif/plugin-warn-if-update-available": "3.1.33",
"axios": "1.7.4",
"chalk": "4.1.2",
"debug": "4.3.4",
Expand Down

0 comments on commit 955bf6a

Please sign in to comment.