Skip to content

Commit

Permalink
switch out @hubspot/cli-lib/lib/config deps
Browse files Browse the repository at this point in the history
  • Loading branch information
camden11 committed Oct 26, 2023
1 parent abaebf1 commit e6e16ee
Show file tree
Hide file tree
Showing 28 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion packages/cli/commands/accounts/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/accounts/info.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/accounts/list.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/accounts/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/accounts/rename.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/config/set/allowUsageTracking.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/config/set/defaultMode.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/config/set/httpTimeout.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/project/add.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/project/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/project/logs.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/sandbox/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/LocalDevManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/errorHandlers/apiErrors.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/links.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/oauth.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/prompts/accountsPrompt.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/prompts/downloadProjectPrompt.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/prompts/enterAccountNamePrompt.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/prompts/personalAccessKeyPrompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/prompts/sandboxesPrompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/prompts/setAsDefaultAccountPrompt.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/sandboxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/ui.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/usageTracking.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down

0 comments on commit e6e16ee

Please sign in to comment.