-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add messaging to use new package #420
Conversation
packages/cms-cli/bin/cli.js
Outdated
@@ -27,10 +28,16 @@ const listCommand = require('../commands/list'); | |||
const openCommand = require('../commands/open'); | |||
const mvCommand = require('../commands/mv'); | |||
|
|||
// Point update-notifier towards @hubspot/cli | |||
const pkg = { name: '@hubspot/cli', version }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I'm not clear on is if cms-cli
version will continue to increment with cli
? If so, we'll probably want to hard code this to a lower version number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plan is to continue using the same version scheme so that the tags / versions in the repo continue to be meaningful. We'll start with 3.0 for the @hubspot/cli
release so that there is adequate space in the versioning scheme for @hubspot/cms-cli
should a patch be needed.
packages/cms-cli/bin/cli.js
Outdated
const notifier = updateNotifier({ pkg }); | ||
|
||
notifier.notify({ | ||
shouldNotifyInNpmScript: true, | ||
message: | ||
chalk.bold('The CMS CLI is now the HubSpot CLI') + | ||
'\n\nTo upgrade, run:\n\nnpm uninstall -g @hubspot/cms-cli\nand npm install -g @hubspot/cli', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we adjust the logic such that we're detecting that this code is part of @hubspot/cms-cli
so that we can merge the changes back into master
so that the process of merging changes from cms-cli
branch back into master
is straightforward?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point, updated
Description and Context
Steers
update-notifier
towards the new package@hubspot/cli
and adds a custom message with upgrade instructions. Open to feedback on this.Screenshots