@hubspot/cms-cli
Advanced tools
Comparing version 0.0.21-beta.1 to 0.0.22-beta.0
@@ -57,3 +57,3 @@ #!/usr/bin/env node | ||
} else { | ||
dest = path.resolve(dest); | ||
dest = path.resolve(getCwd(), dest); | ||
} | ||
@@ -60,0 +60,0 @@ |
@@ -26,2 +26,3 @@ #!/usr/bin/env node | ||
.command('fetch <src> [dest]', 'fetch a file or folder') | ||
.command('server [src]', 'run the local server', { noHelp: true }) | ||
.command('sync <src> <dest>', 'upload a directory of assets', { | ||
@@ -28,0 +29,0 @@ noHelp: true, |
@@ -69,2 +69,3 @@ const Logger = require('@hubspot/cms-lib/logger'); | ||
const getMode = (options = {}) => { | ||
// 1. --mode | ||
const { mode } = options; | ||
@@ -74,7 +75,13 @@ if (mode && typeof mode === 'string') { | ||
} | ||
// 2. config[portal].defaultMode | ||
const portalId = getPortalId(options); | ||
if (!portalId) { | ||
return DEFAULT_MODE; | ||
if (portalId) { | ||
const portalConfig = getPortalConfig(portalId); | ||
if (portalConfig && portalConfig.defaultMode) { | ||
return portalConfig.defaultMode; | ||
} | ||
} | ||
const config = getPortalConfig(portalId); | ||
// 3. config.defaultMode | ||
// 4. DEFAULT_MODE | ||
const config = getConfig(); | ||
return (config && config.defaultMode) || DEFAULT_MODE; | ||
@@ -81,0 +88,0 @@ }; |
@@ -39,2 +39,3 @@ const { trackUsage } = require('@hubspot/cms-lib/api/fileMapper'); | ||
os: getPlatform(), | ||
nodeVersion: process.version, | ||
version, | ||
@@ -66,2 +67,3 @@ command, | ||
os: getPlatform(), | ||
nodeVersion: process.version, | ||
version, | ||
@@ -68,0 +70,0 @@ command, |
{ | ||
"name": "@hubspot/cms-cli", | ||
"version": "0.0.21-beta.1", | ||
"version": "0.0.22-beta.0", | ||
"description": "CLI for interacting with the HubSpot CMS", | ||
@@ -8,5 +8,6 @@ "license": "Apache-2.0", | ||
"@hubspot/api-auth-lib": "^0.0.18", | ||
"@hubspot/cms-lib": "^0.0.21-beta.1", | ||
"@hubspot/cms-lib": "^0.0.22-beta.0", | ||
"commander": "^2.16.0", | ||
"inquirer": "^6.3.1", | ||
"shelljs": "0.8.3", | ||
"update-notifier": "3.0.1" | ||
@@ -23,3 +24,3 @@ }, | ||
}, | ||
"gitHead": "d1be995482c0d9334d494718df89d36cd5bd986f" | ||
"gitHead": "8c4960b91d6badcafc71af98c18a2597ec4bf67a" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79322
39
1684
6
5
+ Addedshelljs@0.8.3
+ Added@hubspot/cms-lib@0.0.22(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinterpret@1.4.0(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedrechoir@0.6.2(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedshelljs@0.8.3(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removed@hubspot/cms-lib@0.0.21-beta.1(transitive)