diff --git a/packages/cli/commands/accounts/clean.js b/packages/cli/commands/accounts/clean.js index 2a330370c..28f48077d 100644 --- a/packages/cli/commands/accounts/clean.js +++ b/packages/cli/commands/accounts/clean.js @@ -18,7 +18,7 @@ const { getAccountName } = require('../../lib/sandboxes'); const { promptUser } = require('../../lib/prompts/promptUtils'); const { getTableContents } = require('@hubspot/cli-lib/lib/table'); const SpinniesManager = require('../../lib/SpinniesManager'); -const { deleteAccount } = require('@hubspot/cli-lib/lib/config'); +const { deleteAccount } = require('@hubspot/local-dev-lib/config'); const { isSpecifiedHubSpotAuthError, } = require('../../lib/errorHandlers/apiErrors'); diff --git a/packages/cli/commands/accounts/info.js b/packages/cli/commands/accounts/info.js index 97d0fd862..cf57bcc38 100644 --- a/packages/cli/commands/accounts/info.js +++ b/packages/cli/commands/accounts/info.js @@ -1,5 +1,5 @@ const { logger } = require('@hubspot/cli-lib/logger'); -const { getAccountConfig } = require('@hubspot/cli-lib/lib/config'); +const { getAccountConfig } = require('@hubspot/local-dev-lib/config'); const { getAccessToken } = require('@hubspot/cli-lib/personalAccessKey.js'); const { getAccountId, diff --git a/packages/cli/commands/accounts/list.js b/packages/cli/commands/accounts/list.js index 5e5a06ce5..53b756029 100644 --- a/packages/cli/commands/accounts/list.js +++ b/packages/cli/commands/accounts/list.js @@ -1,5 +1,5 @@ const { logger } = require('@hubspot/cli-lib/logger'); -const { getConfig, getConfigPath } = require('@hubspot/cli-lib/lib/config'); +const { getConfig, getConfigPath } = require('@hubspot/local-dev-lib/config'); const { getTableContents, getTableHeader, diff --git a/packages/cli/commands/accounts/remove.js b/packages/cli/commands/accounts/remove.js index 2ca1fec18..63e046ce8 100644 --- a/packages/cli/commands/accounts/remove.js +++ b/packages/cli/commands/accounts/remove.js @@ -6,7 +6,7 @@ const { getConfigDefaultAccount, getAccountId: getAccountIdFromConfig, updateDefaultAccount, -} = require('@hubspot/cli-lib/lib/config'); +} = require('@hubspot/local-dev-lib/config'); const { trackCommandUsage } = require('../../lib/usageTracking'); const { i18n } = require('../../lib/lang'); diff --git a/packages/cli/commands/accounts/rename.js b/packages/cli/commands/accounts/rename.js index 053885b7f..796034190 100644 --- a/packages/cli/commands/accounts/rename.js +++ b/packages/cli/commands/accounts/rename.js @@ -1,5 +1,5 @@ const { logger } = require('@hubspot/cli-lib/logger'); -const { renameAccount } = require('@hubspot/cli-lib/lib/config'); +const { renameAccount } = require('@hubspot/local-dev-lib/config'); const { addConfigOptions, diff --git a/packages/cli/commands/auth.js b/packages/cli/commands/auth.js index c26b0cb0b..7462bc60f 100644 --- a/packages/cli/commands/auth.js +++ b/packages/cli/commands/auth.js @@ -15,7 +15,7 @@ const { writeConfig, getConfig, getConfigPath, -} = require('@hubspot/cli-lib/lib/config'); +} = require('@hubspot/local-dev-lib/config'); const { commaSeparatedValues } = require('@hubspot/local-dev-lib/text'); const { promptUser } = require('../lib/prompts/promptUtils'); const { diff --git a/packages/cli/commands/config/set/allowUsageTracking.js b/packages/cli/commands/config/set/allowUsageTracking.js index 1d561e2fa..fab5a6a0d 100644 --- a/packages/cli/commands/config/set/allowUsageTracking.js +++ b/packages/cli/commands/config/set/allowUsageTracking.js @@ -1,5 +1,5 @@ const { logger } = require('@hubspot/cli-lib/logger'); -const { updateAllowUsageTracking } = require('@hubspot/cli-lib/lib/config'); +const { updateAllowUsageTracking } = require('@hubspot/local-dev-lib/config'); const { trackCommandUsage } = require('../../../lib/usageTracking'); const { promptUser } = require('../../../lib/prompts/promptUtils'); const { i18n } = require('../../../lib/lang'); diff --git a/packages/cli/commands/config/set/defaultMode.js b/packages/cli/commands/config/set/defaultMode.js index ebb1f6993..d23deca68 100644 --- a/packages/cli/commands/config/set/defaultMode.js +++ b/packages/cli/commands/config/set/defaultMode.js @@ -1,5 +1,5 @@ const { logger } = require('@hubspot/cli-lib/logger'); -const { updateDefaultMode } = require('@hubspot/cli-lib/lib/config'); +const { updateDefaultMode } = require('@hubspot/local-dev-lib/config'); const { Mode } = require('@hubspot/cli-lib'); const { commaSeparatedValues } = require('@hubspot/local-dev-lib/text'); const { trackCommandUsage } = require('../../../lib/usageTracking'); diff --git a/packages/cli/commands/config/set/httpTimeout.js b/packages/cli/commands/config/set/httpTimeout.js index a992c8a8d..a482796f3 100644 --- a/packages/cli/commands/config/set/httpTimeout.js +++ b/packages/cli/commands/config/set/httpTimeout.js @@ -1,5 +1,5 @@ const { logger } = require('@hubspot/cli-lib/logger'); -const { updateHttpTimeout } = require('@hubspot/cli-lib/lib/config'); +const { updateHttpTimeout } = require('@hubspot/local-dev-lib/config'); const { promptUser } = require('../../../lib/prompts/promptUtils'); const { trackCommandUsage } = require('../../../lib/usageTracking'); const { i18n } = require('../../../lib/lang'); diff --git a/packages/cli/commands/init.js b/packages/cli/commands/init.js index 5fac1061e..247673dba 100644 --- a/packages/cli/commands/init.js +++ b/packages/cli/commands/init.js @@ -5,7 +5,7 @@ const { createEmptyConfigFile, deleteEmptyConfigFile, updateDefaultAccount, -} = require('@hubspot/cli-lib/lib/config'); +} = require('@hubspot/local-dev-lib/config'); const { addConfigOptions } = require('../lib/commonOpts'); const { handleExit } = require('../lib/process'); const { checkAndUpdateGitignore } = require('@hubspot/cli-lib/lib/git'); diff --git a/packages/cli/commands/project/add.js b/packages/cli/commands/project/add.js index 43c6bc4fe..601873d43 100644 --- a/packages/cli/commands/project/add.js +++ b/packages/cli/commands/project/add.js @@ -1,5 +1,5 @@ const { logger } = require('@hubspot/cli-lib/logger'); -const { getAccountId } = require('@hubspot/cli-lib/lib/config'); +const { getAccountId } = require('@hubspot/local-dev-lib/config'); const { logErrorInstance } = require('../../lib/errorHandlers/standardErrors'); const { fetchReleaseData } = require('@hubspot/cli-lib/github'); diff --git a/packages/cli/commands/project/dev.js b/packages/cli/commands/project/dev.js index 3bbe57e02..032c0b22e 100644 --- a/packages/cli/commands/project/dev.js +++ b/packages/cli/commands/project/dev.js @@ -13,7 +13,7 @@ const { loadAndValidateOptions } = require('../../lib/validation'); const { handleExit } = require('../../lib/process'); const { i18n } = require('../../lib/lang'); const { logger } = require('@hubspot/cli-lib/logger'); -const { getConfigAccounts } = require('@hubspot/cli-lib/lib/config'); +const { getConfigAccounts } = require('@hubspot/local-dev-lib/config'); const { createProject, fetchProject } = require('@hubspot/cli-lib/api/dfs'); const { getProjectConfig, diff --git a/packages/cli/commands/project/logs.js b/packages/cli/commands/project/logs.js index 59099b0e4..6b8688fe7 100644 --- a/packages/cli/commands/project/logs.js +++ b/packages/cli/commands/project/logs.js @@ -1,4 +1,4 @@ -const { getEnv } = require('@hubspot/cli-lib/lib/config'); +const { getEnv } = require('@hubspot/local-dev-lib/config'); const { getHubSpotWebsiteOrigin } = require('@hubspot/cli-lib/lib/urls'); const { ENVIRONMENTS } = require('@hubspot/cli-lib/lib/constants'); const { diff --git a/packages/cli/commands/sandbox/delete.js b/packages/cli/commands/sandbox/delete.js index a447ef234..db638ab97 100644 --- a/packages/cli/commands/sandbox/delete.js +++ b/packages/cli/commands/sandbox/delete.js @@ -23,7 +23,7 @@ const { deleteSandboxPrompt } = require('../../lib/prompts/sandboxesPrompt'); const { removeSandboxAccountFromConfig, updateDefaultAccount, -} = require('@hubspot/cli-lib/lib/config'); +} = require('@hubspot/local-dev-lib/config'); const { selectAndSetAsDefaultAccountPrompt, } = require('../../lib/prompts/accountsPrompt'); diff --git a/packages/cli/lib/LocalDevManager.js b/packages/cli/lib/LocalDevManager.js index dfba0c045..010bf0056 100644 --- a/packages/cli/lib/LocalDevManager.js +++ b/packages/cli/lib/LocalDevManager.js @@ -7,7 +7,7 @@ const { logger } = require('@hubspot/cli-lib/logger'); const { getAccountId, getConfigDefaultAccount, -} = require('@hubspot/cli-lib/lib/config'); +} = require('@hubspot/local-dev-lib/config'); const { PROJECT_CONFIG_FILE } = require('@hubspot/cli-lib/lib/constants'); const SpinniesManager = require('./SpinniesManager'); const DevServerManager = require('./DevServerManager'); diff --git a/packages/cli/lib/errorHandlers/apiErrors.js b/packages/cli/lib/errorHandlers/apiErrors.js index 509221064..3b87e95d6 100644 --- a/packages/cli/lib/errorHandlers/apiErrors.js +++ b/packages/cli/lib/errorHandlers/apiErrors.js @@ -1,5 +1,5 @@ const { logger } = require('@hubspot/cli-lib/logger'); -const { getAccountConfig } = require('@hubspot/cli-lib/lib/config'); +const { getAccountConfig } = require('@hubspot/local-dev-lib/config'); const { SCOPE_GROUPS, PERSONAL_ACCESS_KEY_AUTH_METHOD, diff --git a/packages/cli/lib/links.js b/packages/cli/lib/links.js index 1d9a67cca..1ccff9317 100644 --- a/packages/cli/lib/links.js +++ b/packages/cli/lib/links.js @@ -1,4 +1,4 @@ -const { getEnv } = require('@hubspot/cli-lib/lib/config'); +const { getEnv } = require('@hubspot/local-dev-lib/config'); const { ENVIRONMENTS } = require('@hubspot/cli-lib/lib/constants'); const { getHubSpotWebsiteOrigin } = require('@hubspot/cli-lib/lib/urls'); const { logger } = require('@hubspot/cli-lib/logger'); diff --git a/packages/cli/lib/oauth.js b/packages/cli/lib/oauth.js index ead2199cd..52023314b 100644 --- a/packages/cli/lib/oauth.js +++ b/packages/cli/lib/oauth.js @@ -1,7 +1,7 @@ const express = require('express'); const open = require('open'); const OAuth2Manager = require('@hubspot/cli-lib/lib/models/OAuth2Manager'); -const { getAccountConfig } = require('@hubspot/cli-lib/lib/config'); +const { getAccountConfig } = require('@hubspot/local-dev-lib/config'); const { addOauthToAccountConfig } = require('@hubspot/cli-lib/oauth'); const { handleExit } = require('./process'); const { getHubSpotWebsiteOrigin } = require('@hubspot/cli-lib/lib/urls'); diff --git a/packages/cli/lib/projects.js b/packages/cli/lib/projects.js index 1f29746bb..fd9c816e0 100644 --- a/packages/cli/lib/projects.js +++ b/packages/cli/lib/projects.js @@ -5,7 +5,7 @@ const tmp = require('tmp'); const chalk = require('chalk'); const findup = require('findup-sync'); const { logger } = require('@hubspot/cli-lib/logger'); -const { getEnv } = require('@hubspot/cli-lib/lib/config'); +const { getEnv } = require('@hubspot/local-dev-lib/config'); const { getHubSpotWebsiteOrigin } = require('@hubspot/cli-lib/lib/urls'); const { ENVIRONMENTS, diff --git a/packages/cli/lib/prompts/accountsPrompt.js b/packages/cli/lib/prompts/accountsPrompt.js index a78809b9d..55d99d863 100644 --- a/packages/cli/lib/prompts/accountsPrompt.js +++ b/packages/cli/lib/prompts/accountsPrompt.js @@ -1,4 +1,4 @@ -const { updateDefaultAccount } = require('@hubspot/cli-lib/lib/config'); +const { updateDefaultAccount } = require('@hubspot/local-dev-lib/config'); const { promptUser } = require('./promptUtils'); const { i18n } = require('../lang'); const { getAccountName } = require('../sandboxes'); diff --git a/packages/cli/lib/prompts/downloadProjectPrompt.js b/packages/cli/lib/prompts/downloadProjectPrompt.js index 9f3a19990..78fdfa677 100644 --- a/packages/cli/lib/prompts/downloadProjectPrompt.js +++ b/packages/cli/lib/prompts/downloadProjectPrompt.js @@ -1,5 +1,5 @@ const { promptUser } = require('./promptUtils'); -const { getAccountId } = require('@hubspot/cli-lib/lib/config'); +const { getAccountId } = require('@hubspot/local-dev-lib/config'); const { fetchProjects } = require('@hubspot/cli-lib/api/dfs'); const { logApiErrorInstance, diff --git a/packages/cli/lib/prompts/enterAccountNamePrompt.js b/packages/cli/lib/prompts/enterAccountNamePrompt.js index 0c90b53d2..cc76d9786 100644 --- a/packages/cli/lib/prompts/enterAccountNamePrompt.js +++ b/packages/cli/lib/prompts/enterAccountNamePrompt.js @@ -1,4 +1,4 @@ -const { accountNameExistsInConfig } = require('@hubspot/cli-lib/lib/config'); +const { accountNameExistsInConfig } = require('@hubspot/local-dev-lib/config'); const { STRING_WITH_NO_SPACES_REGEX } = require('../regex'); const { promptUser } = require('./promptUtils'); const { i18n } = require('../lang'); diff --git a/packages/cli/lib/prompts/personalAccessKeyPrompt.js b/packages/cli/lib/prompts/personalAccessKeyPrompt.js index e01807a37..8a81af1b5 100644 --- a/packages/cli/lib/prompts/personalAccessKeyPrompt.js +++ b/packages/cli/lib/prompts/personalAccessKeyPrompt.js @@ -3,7 +3,7 @@ const { OAUTH_SCOPES, DEFAULT_OAUTH_SCOPES, } = require('@hubspot/cli-lib/lib/constants'); -const { deleteEmptyConfigFile } = require('@hubspot/cli-lib/lib/config'); +const { deleteEmptyConfigFile } = require('@hubspot/local-dev-lib/config'); const { getHubSpotWebsiteOrigin } = require('@hubspot/cli-lib/lib/urls'); const { logger } = require('@hubspot/cli-lib/logger'); const { promptUser } = require('./promptUtils'); diff --git a/packages/cli/lib/prompts/sandboxesPrompt.js b/packages/cli/lib/prompts/sandboxesPrompt.js index fd817186a..1c54d1c7c 100644 --- a/packages/cli/lib/prompts/sandboxesPrompt.js +++ b/packages/cli/lib/prompts/sandboxesPrompt.js @@ -5,7 +5,7 @@ const { STANDARD_SANDBOX, DEVELOPER_SANDBOX, } = require('../sandboxes'); -const { accountNameExistsInConfig } = require('@hubspot/cli-lib/lib/config'); +const { accountNameExistsInConfig } = require('@hubspot/local-dev-lib/config'); const i18nKey = 'cli.lib.prompts.sandboxesPrompt'; diff --git a/packages/cli/lib/prompts/setAsDefaultAccountPrompt.js b/packages/cli/lib/prompts/setAsDefaultAccountPrompt.js index d124ed592..a72484ff5 100644 --- a/packages/cli/lib/prompts/setAsDefaultAccountPrompt.js +++ b/packages/cli/lib/prompts/setAsDefaultAccountPrompt.js @@ -1,7 +1,7 @@ const { getConfig, updateDefaultAccount, -} = require('@hubspot/cli-lib/lib/config'); +} = require('@hubspot/local-dev-lib/config'); const { promptUser } = require('./promptUtils'); const { i18n } = require('../lang'); diff --git a/packages/cli/lib/sandboxes.js b/packages/cli/lib/sandboxes.js index d44df08eb..e9ffd613e 100644 --- a/packages/cli/lib/sandboxes.js +++ b/packages/cli/lib/sandboxes.js @@ -18,7 +18,7 @@ const { fetchTypes, getSandboxUsageLimits, } = require('@hubspot/cli-lib/sandboxes'); -const { accountNameExistsInConfig } = require('@hubspot/cli-lib/lib/config'); +const { accountNameExistsInConfig } = require('@hubspot/local-dev-lib/config'); const CliProgressMultibarManager = require('./CliProgressMultibarManager'); const { promptUser } = require('./prompts/promptUtils'); const { getHubSpotWebsiteOrigin } = require('@hubspot/cli-lib/lib/urls'); diff --git a/packages/cli/lib/ui.js b/packages/cli/lib/ui.js index 5b371ba24..420a44ce3 100644 --- a/packages/cli/lib/ui.js +++ b/packages/cli/lib/ui.js @@ -1,7 +1,7 @@ const chalk = require('chalk'); const supportsHyperlinks = require('../lib/supportHyperlinks'); const supportsColor = require('../lib/supportsColor'); -const { getAccountConfig } = require('@hubspot/cli-lib/lib/config'); +const { getAccountConfig } = require('@hubspot/local-dev-lib/config'); const { i18n } = require('./lang'); const { logger } = require('@hubspot/cli-lib/logger'); diff --git a/packages/cli/lib/usageTracking.js b/packages/cli/lib/usageTracking.js index e5ce0217f..607978e29 100644 --- a/packages/cli/lib/usageTracking.js +++ b/packages/cli/lib/usageTracking.js @@ -1,6 +1,6 @@ const { trackUsage } = require('@hubspot/cli-lib/api/fileMapper'); const { getAccountConfig } = require('@hubspot/cli-lib'); -const { isTrackingAllowed } = require('@hubspot/cli-lib/lib/config'); +const { isTrackingAllowed } = require('@hubspot/local-dev-lib/config'); const { API_KEY_AUTH_METHOD } = require('@hubspot/cli-lib/lib/constants'); const { logger } = require('@hubspot/cli-lib/logger'); const { version } = require('../package.json');