-
Notifications
You must be signed in to change notification settings - Fork 63
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
Use local dev lib config #947
Conversation
@@ -18,7 +18,7 @@ const { projectNamePrompt } = require('../../lib/prompts/projectNamePrompt'); | |||
const { buildIdPrompt } = require('../../lib/prompts/buildIdPrompt'); | |||
const { i18n } = require('../../lib/lang'); | |||
const { uiBetaTag } = require('../../lib/ui'); | |||
const { getAccountConfig } = require('@hubspot/cli-lib'); | |||
const { getAccountConfig } = require('@hubspot/cli-lib/'); |
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.
Why does this need the trailing slash?
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'm not sure how that got there. This should actually be a local-dev-lib import anyway
The code in here lgtm (looks like tests are failing though). I'll hammer on this locally for a bit before approving though |
9bb4c4c
to
ace5f3c
Compare
ace5f3c
to
194af24
Compare
@@ -18,7 +18,7 @@ const { projectNamePrompt } = require('../../lib/prompts/projectNamePrompt'); | |||
const { buildIdPrompt } = require('../../lib/prompts/buildIdPrompt'); | |||
const { i18n } = require('../../lib/lang'); | |||
const { uiBetaTag } = require('../../lib/ui'); | |||
const { getAccountConfig } = require('@hubspot/cli-lib'); | |||
const { getAccountConfig } = require('@hubspot/local-dev-lib'); |
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.
Missing /config
here I think
I cross checked all of the exports from
|
Ah good catch. Missed one or two because the had a trailing And yeah might be worth renaming some of the stuff in commonOpts |
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.
Tested locally and this lgtm! We should make sure there isn't any other WIP PR's that need to be merged soon because this should probably sit on the beta release for a bit so we can be sure that there aren't any bugs
Description and Context
This switches the CLI from using
@hubspot/cli-lib
forconfig
to using@hubspot/local-dev-lib
. The config module is functionally identical between both, so everything should behave exactly the same. Once this PR is merged, we'll be able to start porting everything else over to `local-dev-libTODO
cli-lib
PR Move config module to local-dev-lib cli-lib#22As well as a PR for the VSCode extension
Who to Notify
@brandenrodgers