-
Notifications
You must be signed in to change notification settings - Fork 60
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
chore!: Rename Mode to CmsPublishMode #1269
base: next
Are you sure you want to change the base?
Conversation
lib/validation.ts
Outdated
).join(', ')}.`; | ||
if (cmsPublishMode != null) { | ||
logger.error( | ||
[`The CMS publish mode "${mode}" is invalid.`, modesMessage].join(' ') |
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.
I think mode
needs to be changed to cmsPublishMode
here.
@@ -5,7 +5,7 @@ | |||
"license": "Apache-2.0", | |||
"repository": "https://github.com/HubSpot/hubspot-cli", | |||
"dependencies": { | |||
"@hubspot/local-dev-lib": "2.3.0", | |||
"@hubspot/local-dev-lib": "0.1.0-experimental.0", |
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.
Remember to change this back
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.
Just a heads up you have merge conflicts, can you resolve them and I'll review again
commands/config/set.ts
Outdated
@@ -73,7 +76,7 @@ exports.handler = async options => { | |||
exports.builder = yargs => { | |||
yargs | |||
.options({ | |||
defaultMode: { | |||
defaultCmsPublishMode: { |
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.
kebab-case?
Tested out the changes with both the new and deprecated config, updating both defaultMode and defaultCmsPublishMode. It all appears to be WAD to me, unless there are other test scenarios I'm missing. Will give a final ✅ when merge conflicts and feedback are addressed |
Description and Context
See issue: https://git.hubteam.com/HubSpot/hubspot-cli-issues/issues/718
and LDL PR: HubSpot/hubspot-local-dev-lib#216
This updates the CLI to handle LDL's renamed exports related to
CmsPublishMode
. It also changes all references tomode
in the CLI tocmsPublishMode
, including the--mode
flag that can be passed to commands.TODO
Who to Notify
@brandenrodgers @kemmerle @joe-yeager