Skip to content

Commit

Permalink
import api modules from local-dev-lib: 1
Browse files Browse the repository at this point in the history
  • Loading branch information
brandenrodgers committed Jan 29, 2024
1 parent 16ae446 commit 37103b2
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/cli/commands/filemanager/upload.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 { uploadFolder } = require('@hubspot/local-dev-lib/fileManager');
const { uploadFile } = require('@hubspot/cli-lib/api/fileManager');
const { uploadFile } = require('@hubspot/local-dev-lib/api/fileManager');
const { getCwd, convertToUnixPath } = require('@hubspot/local-dev-lib/path');
const { logger } = require('@hubspot/cli-lib/logger');
const {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const {
} = require('../lib/errorHandlers/apiErrors');
const {
getDirectoryContentsByPath,
} = require('@hubspot/cli-lib/api/fileMapper');
} = require('@hubspot/local-dev-lib/api/fileMapper');
const {
HUBSPOT_FOLDER,
MARKETPLACE_FOLDER,
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/commands/mv.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
const { moveFile } = require('@hubspot/cli-lib/api/fileMapper');
const { moveFile } = require('@hubspot/local-dev-lib/api/fileMapper');
const { logger } = require('@hubspot/cli-lib/logger');
const {
logApiErrorInstance,
ApiErrorContext,
} = require('../lib/errorHandlers/apiErrors');

const {
addConfigOptions,
addAccountOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/commands/remove.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { deleteFile } = require('@hubspot/cli-lib/api/fileMapper');
const { deleteFile } = require('@hubspot/local-dev-lib/api/fileMapper');
const { logger } = require('@hubspot/cli-lib/logger');
const {
logApiErrorInstance,
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 @@ -4,7 +4,7 @@ const { uploadFolder, hasUploadErrors } = require('@hubspot/cli-lib');
const {
getFileMapperQueryValues,
} = require('@hubspot/local-dev-lib/fileMapper');
const { upload, deleteFile } = require('@hubspot/cli-lib/api/fileMapper');
const { upload, deleteFile } = require('@hubspot/local-dev-lib/api/fileMapper');
const {
getCwd,
convertToUnixPath,
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-cms-plugins/HubSpotAutoUploadPlugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { upload } = require('@hubspot/cli-lib/api/fileMapper');
const { upload } = require('@hubspot/local-dev-lib/api/fileMapper');
const { checkAndWarnGitInclusion } = require('@hubspot/cli-lib');
const {
loadConfig,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@
table "^6.6.0"
unixify "1.0.0"

"@hubspot/cli-lib@^8.0.1":
version "8.0.1"
resolved "https://registry.yarnpkg.com/@hubspot/cli-lib/-/cli-lib-8.0.1.tgz#3b076912afbd25e453c4495f5eca231e08ff3355"
integrity sha512-VaWvpJhx0SN9OhEMjX2QPTJW+/0i/Dgb4NKoEZm1zc3Cg7gMfx5t1DBecFk2W0GcinNMtOcuMlLReNfJY99uGQ==
"@hubspot/cli-lib@^8.0.2":
version "8.0.2"
resolved "https://registry.yarnpkg.com/@hubspot/cli-lib/-/cli-lib-8.0.2.tgz#68ebe595049c3f2cb7bf77b31e933c19a3013ed2"
integrity sha512-dnUqzWvOcS+x7sy49Rkbfsq5dDDabsBlMwLf/NlrEQW6CwIFHWKcQNW6mVUMhbJNzpUl2O6+R+oV//sKzApI1A==
dependencies:
chalk "^2.4.2"
chokidar "^3.0.1"
Expand Down

0 comments on commit 37103b2

Please sign in to comment.