From 3a2db36a14b896ea40638baea33ca5b513f3e7a4 Mon Sep 17 00:00:00 2001 From: Camden Phalen Date: Mon, 13 Nov 2023 16:08:51 -0500 Subject: [PATCH] Use local-dev-lib for sandboxes module --- packages/cli/commands/sandbox/delete.js | 2 +- packages/cli/lib/prompts/projectDevTargetAccountPrompt.js | 2 +- packages/cli/lib/sandbox-create.js | 2 +- packages/cli/lib/sandbox-sync.js | 2 +- packages/cli/lib/sandboxes.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/cli/commands/sandbox/delete.js b/packages/cli/commands/sandbox/delete.js index 3903f6059..f3e24f3ff 100644 --- a/packages/cli/commands/sandbox/delete.js +++ b/packages/cli/commands/sandbox/delete.js @@ -16,7 +16,7 @@ const { isSpecifiedError, isSpecifiedHubSpotAuthError, } = require('../../lib/errorHandlers/apiErrors'); -const { deleteSandbox } = require('@hubspot/cli-lib/sandboxes'); +const { deleteSandbox } = require('@hubspot/local-dev-lib/sandboxes'); const { i18n } = require('../../lib/lang'); const { deleteSandboxPrompt } = require('../../lib/prompts/sandboxesPrompt'); const { diff --git a/packages/cli/lib/prompts/projectDevTargetAccountPrompt.js b/packages/cli/lib/prompts/projectDevTargetAccountPrompt.js index 451695fbe..1c600612e 100644 --- a/packages/cli/lib/prompts/projectDevTargetAccountPrompt.js +++ b/packages/cli/lib/prompts/projectDevTargetAccountPrompt.js @@ -3,7 +3,7 @@ const { i18n } = require('../lang'); const { uiAccountDescription, uiCommandReference } = require('../ui'); const { isSandbox, getAccountName } = require('../sandboxes'); const { getAccountId } = require('@hubspot/local-dev-lib/config'); -const { getSandboxUsageLimits } = require('@hubspot/cli-lib/sandboxes'); +const { getSandboxUsageLimits } = require('@hubspot/local-dev-lib/sandboxes'); const { logger } = require('@hubspot/cli-lib/logger'); const i18nKey = 'cli.lib.prompts.projectDevTargetAccountPrompt'; diff --git a/packages/cli/lib/sandbox-create.js b/packages/cli/lib/sandbox-create.js index 29932d726..0a9df04e9 100644 --- a/packages/cli/lib/sandbox-create.js +++ b/packages/cli/lib/sandbox-create.js @@ -19,7 +19,7 @@ const { } = require('./errorHandlers/apiErrors'); const { getHubSpotWebsiteOrigin } = require('@hubspot/local-dev-lib/urls'); const { getEnv, getAccountId } = require('@hubspot/local-dev-lib/config'); -const { createSandbox } = require('@hubspot/cli-lib/sandboxes'); +const { createSandbox } = require('@hubspot/local-dev-lib/sandboxes'); const { getValidEnv } = require('@hubspot/local-dev-lib/environment'); const i18nKey = 'cli.lib.sandbox.create'; diff --git a/packages/cli/lib/sandbox-sync.js b/packages/cli/lib/sandbox-sync.js index bda90ed6d..a7d542fa4 100644 --- a/packages/cli/lib/sandbox-sync.js +++ b/packages/cli/lib/sandbox-sync.js @@ -10,7 +10,7 @@ const { sandboxTypeMap, syncTypes, } = require('./sandboxes'); -const { initiateSync } = require('@hubspot/cli-lib/sandboxes'); +const { initiateSync } = require('@hubspot/local-dev-lib/sandboxes'); const { debugErrorAndContext, logErrorInstance, diff --git a/packages/cli/lib/sandboxes.js b/packages/cli/lib/sandboxes.js index 9232818a3..23793a6fd 100644 --- a/packages/cli/lib/sandboxes.js +++ b/packages/cli/lib/sandboxes.js @@ -11,7 +11,7 @@ const { fetchTaskStatus, fetchTypes, getSandboxUsageLimits, -} = require('@hubspot/cli-lib/sandboxes'); +} = require('@hubspot/local-dev-lib/sandboxes'); const { accountNameExistsInConfig, getConfig,