Skip to content

Commit

Permalink
Merge pull request #963 from HubSpot/swap-cli-lib-deps-6
Browse files Browse the repository at this point in the history
Use local-dev-lib for path
  • Loading branch information
camden11 authored Dec 7, 2023
2 parents 093fc42 + 1c27aa1 commit 00c8e4b
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/cli/commands/cms/convertFields.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');
const fs = require('fs');
const { createIgnoreFilter } = require('@hubspot/local-dev-lib/ignoreRules');
const { isAllowedExtension, getCwd } = require('@hubspot/cli-lib/path');
const { isAllowedExtension, getCwd } = require('@hubspot/local-dev-lib/path');
const { logger } = require('@hubspot/cli-lib/logger');
const { walk } = require('@hubspot/local-dev-lib/fs');
const { getThemeJSONPath } = require('@hubspot/local-dev-lib/cms/themes');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/customObject/create.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { logger } = require('@hubspot/cli-lib/logger');
const { logErrorInstance } = require('../../lib/errorHandlers/standardErrors');
const { getAbsoluteFilePath } = require('@hubspot/cli-lib/path');
const { getAbsoluteFilePath } = require('@hubspot/local-dev-lib/path');
const {
isFileValidJSON,
loadAndValidateOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/customObject/schema/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { logger } = require('@hubspot/cli-lib/logger');
const {
logErrorInstance,
} = require('../../../lib/errorHandlers/standardErrors');
const { getAbsoluteFilePath } = require('@hubspot/cli-lib/path');
const { getAbsoluteFilePath } = require('@hubspot/local-dev-lib/path');
const {
isFileValidJSON,
loadAndValidateOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/customObject/schema/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const {
getResolvedPath,
} = require('@hubspot/local-dev-lib/customObjects');
const { fetchSchema } = require('@hubspot/cli-lib/api/fileTransport');
const { getCwd } = require('@hubspot/cli-lib/path');
const { getCwd } = require('@hubspot/local-dev-lib/path');

const { loadAndValidateOptions } = require('../../../lib/validation');
const { trackCommandUsage } = require('../../../lib/usageTracking');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/customObject/schema/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { logger } = require('@hubspot/cli-lib/logger');
const {
logErrorInstance,
} = require('../../../lib/errorHandlers/standardErrors');
const { getAbsoluteFilePath } = require('@hubspot/cli-lib/path');
const { getAbsoluteFilePath } = require('@hubspot/local-dev-lib/path');
const {
isFileValidJSON,
loadAndValidateOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/filemanager/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');

const { uploadFolder } = require('@hubspot/cli-lib/fileManager');
const { uploadFile } = require('@hubspot/cli-lib/api/fileManager');
const { getCwd, convertToUnixPath } = require('@hubspot/cli-lib/path');
const { getCwd, convertToUnixPath } = require('@hubspot/local-dev-lib/path');
const { logger } = require('@hubspot/cli-lib/logger');
const {
ApiErrorContext,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/hubdb/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');

const { logger } = require('@hubspot/cli-lib/logger');
const { logErrorInstance } = require('../../lib/errorHandlers/standardErrors');
const { getCwd } = require('@hubspot/cli-lib/path');
const { getCwd } = require('@hubspot/local-dev-lib/path');
const { createHubDbTable } = require('@hubspot/cli-lib/hubdb');

const {
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 @@ -26,7 +26,7 @@ const { logger } = require('@hubspot/cli-lib/logger');
const {
updateConfigWithPersonalAccessKey,
} = require('@hubspot/cli-lib/personalAccessKey');
const { getCwd } = require('@hubspot/cli-lib/path');
const { getCwd } = require('@hubspot/local-dev-lib/path');
const { trackCommandUsage, trackAuthAction } = require('../lib/usageTracking');
const { setLogLevel, addTestingOptions } = require('../lib/commonOpts');
const { promptUser } = require('../lib/prompts/promptUtils');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/project/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {
} = require('../../lib/commonOpts');
const { trackCommandUsage } = require('../../lib/usageTracking');
const { loadAndValidateOptions } = require('../../lib/validation');
const { getCwd } = require('@hubspot/cli-lib/path');
const { getCwd } = require('@hubspot/local-dev-lib/path');
const path = require('path');
const chalk = require('chalk');
const {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/project/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {
addUseEnvironmentOptions,
} = require('../../lib/commonOpts');
const { trackCommandUsage } = require('../../lib/usageTracking');
const { getCwd } = require('@hubspot/cli-lib/path');
const { getCwd } = require('@hubspot/local-dev-lib/path');
const {
logApiErrorInstance,
ApiErrorContext,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/project/listBuilds.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const {
getTableContents,
getTableHeader,
} = require('@hubspot/local-dev-lib/logging/table');
const { getCwd } = require('@hubspot/cli-lib/path');
const { getCwd } = require('@hubspot/local-dev-lib/path');
const { uiBetaTag, uiLink } = require('../../lib/ui');
const { loadAndValidateOptions } = require('../../lib/validation');
const {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {
getCwd,
convertToUnixPath,
isAllowedExtension,
} = require('@hubspot/cli-lib/path');
} = require('@hubspot/local-dev-lib/path');
const { logger } = require('@hubspot/cli-lib/logger');
const {
ApiErrorContext,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require('fs');
const path = require('path');

const { watch } = require('@hubspot/cli-lib');
const { getCwd } = require('@hubspot/cli-lib/path');
const { getCwd } = require('@hubspot/local-dev-lib/path');
const { logger } = require('@hubspot/cli-lib/logger');

const {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/filesystem.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const { getCwd } = require('@hubspot/cli-lib/path');
const { getCwd } = require('@hubspot/local-dev-lib/path');
const { FOLDER_DOT_EXTENSIONS } = require('@hubspot/cli-lib/lib/constants');

function resolveLocalPath(filepath) {
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 @@ -30,7 +30,7 @@ const {
uploadProject,
} = require('@hubspot/cli-lib/api/dfs');
const { shouldIgnoreFile } = require('@hubspot/local-dev-lib/ignoreRules');
const { getCwd, getAbsoluteFilePath } = require('@hubspot/cli-lib/path');
const { getCwd, getAbsoluteFilePath } = require('@hubspot/local-dev-lib/path');
const { downloadGitHubRepoContents } = require('@hubspot/cli-lib/github');
const { promptUser } = require('./prompts/promptUtils');
const { EXIT_CODES } = require('./enums/exitCodes');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/projectsWatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const {
} = require('./errorHandlers/apiErrors');
const { i18n } = require('@hubspot/cli-lib/lib/lang');
const { logger } = require('@hubspot/cli-lib/logger');
const { isAllowedExtension } = require('@hubspot/cli-lib/path');
const { isAllowedExtension } = require('@hubspot/local-dev-lib/path');
const { shouldIgnoreFile } = require('@hubspot/local-dev-lib/ignoreRules');
const {
cancelStagedBuild,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/prompts/createProjectPrompt.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const { getCwd } = require('@hubspot/cli-lib/path');
const { getCwd } = require('@hubspot/local-dev-lib/path');
const {
PROJECT_COMPONENT_TYPES,
PROJECT_PROPERTIES,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/prompts/uploadPrompt.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const { getCwd } = require('@hubspot/cli-lib/path');
const { getCwd } = require('@hubspot/local-dev-lib/path');
const { promptUser } = require('./promptUtils');
const { i18n } = require('../lang');

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');
const { walk } = require('@hubspot/local-dev-lib/fs');
const { createIgnoreFilter } = require('@hubspot/local-dev-lib/ignoreRules');
const { fieldsJsPrompt } = require('../lib/prompts/cmsFieldPrompt');
const { isAllowedExtension } = require('@hubspot/cli-lib/path');
const { isAllowedExtension } = require('@hubspot/local-dev-lib/path');
const { isConvertableFieldJs } = require('@hubspot/cli-lib/lib/handleFieldsJs');
const { logErrorInstance } = require('./errorHandlers/standardErrors');

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/lib/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ const {
getAccountConfig,
loadConfigFromEnvironment,
} = require('@hubspot/local-dev-lib/config');
const { getAbsoluteFilePath } = require('@hubspot/cli-lib/path');
const { getAbsoluteFilePath } = require('@hubspot/local-dev-lib/path');
const { getOauthManager } = require('@hubspot/cli-lib/oauth');
const {
accessTokenForPersonalAccessKey,
} = require('@hubspot/cli-lib/personalAccessKey');
const { getCwd, getExt } = require('@hubspot/cli-lib/path');
const { getCwd, getExt } = require('@hubspot/local-dev-lib/path');
const { getAccountId, getMode, setLogLevel } = require('./commonOpts');
const { logDebugInfo } = require('./debugInfo');
const fs = require('fs');
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-cms-plugins/HubSpotAutoUploadPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {
getAccountId,
} = require('@hubspot/local-dev-lib/config');
const { logger } = require('@hubspot/cli-lib/logger');
const { isAllowedExtension } = require('@hubspot/cli-lib/path');
const { isAllowedExtension } = require('@hubspot/local-dev-lib/path');
const {
LOG_LEVEL,
setLogLevel,
Expand Down

0 comments on commit 00c8e4b

Please sign in to comment.