Skip to content

Commit 67b2a30

Browse files
committed
feat: add update warning to create-cli and make it single command like before
1 parent 170ff25 commit 67b2a30

File tree

2 files changed

+72
-2
lines changed

2 files changed

+72
-2
lines changed

package-lock.json

Lines changed: 59 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/create-cli/package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,25 @@
3737
],
3838
"oclif": {
3939
"bin": "create-cli",
40-
"commands": "./dist/commands",
41-
"default": "bootstrap"
40+
"commands": {
41+
"strategy": "single",
42+
"target": "./dist/commands/bootstrap"
43+
},
44+
"plugins": [
45+
"@oclif/plugin-help",
46+
"@oclif/plugin-warn-if-update-available"
47+
],
48+
"warn-if-update-available": {
49+
"timeoutInDays": 30,
50+
"message": "<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>. To update, run `npm install -D checkly@latest`"
51+
}
4252
},
4353
"homepage": "https://github.com/checkly/checkly-cli#readme",
4454
"dependencies": {
4555
"@oclif/core": "4.2.7",
4656
"@oclif/plugin-help": "6.2.25",
4757
"@oclif/plugin-plugins": "5.4.33",
58+
"@oclif/plugin-warn-if-update-available": "3.1.33",
4859
"axios": "1.7.4",
4960
"chalk": "4.1.2",
5061
"debug": "4.3.4",

0 commit comments

Comments
 (0)