@hubspot/cli 7.4.0 → 7.4.1-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/lang/en.js CHANGED
@@ -2751,7 +2751,7 @@ export const lib = {
2751
2751
  configNotFound: createCommand =>
2752
2752
  `Unable to locate a project configuration file. Try running again from a project directory, or run ${createCommand} to create a new project.`,
2753
2753
  configMissingFields:
2754
- 'The project configuruation file is missing required fields.',
2754
+ 'The project configuration file is missing required fields.',
2755
2755
  srcDirNotFound: (srcDir, projectDir) =>
2756
2756
  `Project source directory ${chalk.bold(srcDir)} could not be found in ${chalk.bold(projectDir)}.`,
2757
2757
  srcOutsideProjectDir: (projectConfig, srcDir) =>
package/lang/en.lyaml CHANGED
@@ -1220,7 +1220,7 @@ en:
1220
1220
  missingPropertiesInConfig: "Found misconfigured projects in the target repository's config.json file. Please ensure that each project in the target repository's config.json file contains the following properties: [\"name\", \"label\", \"path\", \"insertPath\"]."
1221
1221
  validateProjectConfig:
1222
1222
  configNotFound: "Unable to locate a project configuration file. Try running again from a project directory, or run {{ createCommand }} to create a new project."
1223
- configMissingFields: "The project configuruation file is missing required fields."
1223
+ configMissingFields: "The project configuration file is missing required fields."
1224
1224
  srcDirNotFound: "Project source directory {{#bold}}{{ srcDir }}{{/bold}} could not be found in {{#bold}}{{ projectDir }}{{/bold}}."
1225
1225
  srcOutsideProjectDir: "Invalid value for 'srcDir' in {{ projectConfig }}: {{#bold}}srcDir: \"{{ srcDir }}\"{{/bold}}\n\t'srcDir' must be a relative path to a folder under the project root, such as \".\" or \"./src\""
1226
1226
  ensureProjectExists:
@@ -52,6 +52,12 @@ async function loadConfigMiddleware(argv) {
52
52
  process.exit(exitCodes_1.EXIT_CODES.ERROR);
53
53
  }
54
54
  };
55
+ if (!(0, config_1.configFileExists)(true) &&
56
+ (0, utils_1.isTargetedCommand)(argv._, {
57
+ account: { target: false, subCommands: { auth: { target: true } } },
58
+ })) {
59
+ return;
60
+ }
55
61
  if ((0, config_1.configFileExists)(true) &&
56
62
  argv.config &&
57
63
  !(0, utils_1.isTargetedCommand)(argv._, {
@@ -75,6 +81,7 @@ async function loadConfigMiddleware(argv) {
75
81
  const accountsSubCommands = {
76
82
  target: false,
77
83
  subCommands: {
84
+ auth: { target: true },
78
85
  clean: { target: true },
79
86
  list: { target: true },
80
87
  ls: { target: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cli",
3
- "version": "7.4.0",
3
+ "version": "7.4.1-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",
@@ -42,7 +42,7 @@
42
42
  "@types/semver": "^7.5.8",
43
43
  "@types/tmp": "^0.2.6",
44
44
  "@types/yargs": "^17.0.33",
45
- "@typescript-eslint/eslint-plugin": "8.29.0",
45
+ "@typescript-eslint/eslint-plugin": "^8.30.1",
46
46
  "@typescript-eslint/parser": "^8.11.0",
47
47
  "axios": "^1.7.2",
48
48
  "eslint": "^8.56.0",