@hubspot/cli 7.11.1 → 7.11.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/hs.d.ts
ADDED
package/bin/hscms.d.ts
ADDED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import { getConfigAccountIfExists, validateConfig, getConfigDefaultAccountIfExists, configFileExists, } from '@hubspot/local-dev-lib/config';
|
|
3
|
+
import { ENVIRONMENT_VARIABLES } from '@hubspot/local-dev-lib/constants/config';
|
|
3
4
|
import { getCwd } from '@hubspot/local-dev-lib/path';
|
|
4
5
|
import { validateAccount } from '../validation.js';
|
|
5
6
|
import { EXIT_CODES } from '../enums/exitCodes.js';
|
|
@@ -22,7 +23,7 @@ export function handleDeprecatedEnvVariables(argv) {
|
|
|
22
23
|
export function handleCustomConfigLocationMiddleware(argv) {
|
|
23
24
|
const { useEnv, config } = argv;
|
|
24
25
|
if (useEnv) {
|
|
25
|
-
process.env.USE_ENVIRONMENT_HUBSPOT_CONFIG = 'true';
|
|
26
|
+
process.env[ENVIRONMENT_VARIABLES.USE_ENVIRONMENT_HUBSPOT_CONFIG] = 'true';
|
|
26
27
|
}
|
|
27
28
|
else if (config && typeof config === 'string') {
|
|
28
29
|
const absoluteConfigPath = path.isAbsolute(config)
|
|
@@ -74,7 +75,8 @@ export async function validateConfigMiddleware(argv) {
|
|
|
74
75
|
}
|
|
75
76
|
// We don't run validation for auth because users should be able to run it when
|
|
76
77
|
// no accounts are configured, but we still want to exit if the config file is not found
|
|
77
|
-
if (!process.env.USE_ENVIRONMENT_HUBSPOT_CONFIG &&
|
|
78
|
+
if (!process.env[ENVIRONMENT_VARIABLES.USE_ENVIRONMENT_HUBSPOT_CONFIG] &&
|
|
79
|
+
!configFileExists()) {
|
|
78
80
|
console.error('Config file not found, run hs account auth to configure your account');
|
|
79
81
|
process.exit(EXIT_CODES.ERROR);
|
|
80
82
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { getConfigFilePath, globalConfigFileExists, } from '@hubspot/local-dev-lib/config';
|
|
2
|
+
import { ENVIRONMENT_VARIABLES } from '@hubspot/local-dev-lib/constants/config';
|
|
2
3
|
import { checkAndWarnGitInclusion } from '../ui/git.js';
|
|
3
4
|
import { debugError } from '../errorHandlers/index.js';
|
|
4
5
|
export function checkAndWarnGitInclusionMiddleware(argv) {
|
|
5
|
-
// Skip this when no command is provided
|
|
6
|
-
if (argv._.length
|
|
6
|
+
// Skip this when no command is provided or if using environment config
|
|
7
|
+
if (argv._.length &&
|
|
8
|
+
!process.env[ENVIRONMENT_VARIABLES.USE_ENVIRONMENT_HUBSPOT_CONFIG]) {
|
|
7
9
|
// Skip if using global config
|
|
8
10
|
if (globalConfigFileExists()) {
|
|
9
11
|
return;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cli",
|
|
3
|
-
"version": "7.11.
|
|
3
|
+
"version": "7.11.2-beta.0",
|
|
4
4
|
"description": "The official CLI for developing on HubSpot",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": "https://github.com/HubSpot/hubspot-cli",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@hubspot/local-dev-lib": "4.0.
|
|
9
|
+
"@hubspot/local-dev-lib": "4.0.4",
|
|
10
10
|
"@hubspot/project-parsing-lib": "0.10.2",
|
|
11
11
|
"@hubspot/serverless-dev-runtime": "7.0.7",
|
|
12
12
|
"@hubspot/theme-preview-dev-server": "0.0.12",
|
|
@@ -111,8 +111,8 @@
|
|
|
111
111
|
"node": ">=18"
|
|
112
112
|
},
|
|
113
113
|
"bin": {
|
|
114
|
-
"hs": "./bin/hs",
|
|
115
|
-
"hscms": "./bin/hscms"
|
|
114
|
+
"hs": "./bin/hs.js",
|
|
115
|
+
"hscms": "./bin/hscms.js"
|
|
116
116
|
},
|
|
117
117
|
"publishConfig": {
|
|
118
118
|
"access": "public",
|
/package/bin/{hs → hs.js}
RENAMED
|
File without changes
|
/package/bin/{hscms → hscms.js}
RENAMED
|
File without changes
|