@hubspot/cli 5.2.1-beta.2 → 5.2.1-beta.4

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.
Files changed (126) hide show
  1. package/bin/cli.js +1 -1
  2. package/commands/accounts/clean.js +3 -3
  3. package/commands/accounts/info.js +1 -1
  4. package/commands/accounts/list.js +1 -1
  5. package/commands/accounts/remove.js +1 -1
  6. package/commands/accounts/rename.js +1 -1
  7. package/commands/accounts/use.js +1 -1
  8. package/commands/accounts.js +1 -1
  9. package/commands/auth.js +3 -3
  10. package/commands/cms/convertFields.js +1 -1
  11. package/commands/cms/lighthouseScore.js +1 -1
  12. package/commands/cms/reactModules.js +1 -1
  13. package/commands/cms.js +1 -1
  14. package/commands/config/set/allowUsageTracking.js +1 -2
  15. package/commands/config/set/defaultMode.js +1 -1
  16. package/commands/config/set/httpTimeout.js +1 -1
  17. package/commands/config/set.js +1 -1
  18. package/commands/config.js +1 -1
  19. package/commands/create/api-sample.js +1 -1
  20. package/commands/create/module.js +1 -1
  21. package/commands/create/template.js +1 -1
  22. package/commands/create.js +1 -1
  23. package/commands/customObject/create.js +1 -1
  24. package/commands/customObject/schema/create.js +1 -2
  25. package/commands/customObject/schema/delete.js +1 -2
  26. package/commands/customObject/schema/fetch-all.js +1 -2
  27. package/commands/customObject/schema/fetch.js +1 -2
  28. package/commands/customObject/schema/list.js +1 -1
  29. package/commands/customObject/schema/update.js +1 -2
  30. package/commands/customObject/schema.js +1 -1
  31. package/commands/customObject.js +1 -1
  32. package/commands/feedback.js +1 -1
  33. package/commands/fetch.js +1 -1
  34. package/commands/filemanager/fetch.js +1 -1
  35. package/commands/filemanager/upload.js +1 -1
  36. package/commands/filemanager.js +1 -1
  37. package/commands/functions/deploy.js +1 -1
  38. package/commands/functions/list.js +1 -1
  39. package/commands/functions/server.js +1 -1
  40. package/commands/functions.js +1 -1
  41. package/commands/hubdb/clear.js +1 -1
  42. package/commands/hubdb/create.js +1 -1
  43. package/commands/hubdb/delete.js +1 -1
  44. package/commands/hubdb/fetch.js +1 -1
  45. package/commands/hubdb.js +1 -1
  46. package/commands/init.js +1 -1
  47. package/commands/lint.js +1 -1
  48. package/commands/list.js +1 -1
  49. package/commands/logs.js +1 -1
  50. package/commands/module/marketplace-validate.js +1 -1
  51. package/commands/module.js +1 -1
  52. package/commands/mv.js +1 -1
  53. package/commands/open.js +1 -1
  54. package/commands/project/add.js +1 -1
  55. package/commands/project/create.js +1 -1
  56. package/commands/project/deploy.js +1 -1
  57. package/commands/project/dev.js +37 -19
  58. package/commands/project/download.js +9 -5
  59. package/commands/project/listBuilds.js +1 -1
  60. package/commands/project/logs.js +1 -1
  61. package/commands/project/open.js +8 -4
  62. package/commands/project/upload.js +1 -1
  63. package/commands/project/watch.js +1 -1
  64. package/commands/project.js +1 -1
  65. package/commands/remove.js +1 -1
  66. package/commands/sandbox/create.js +4 -4
  67. package/commands/sandbox/delete.js +1 -1
  68. package/commands/sandbox/sync.js +2 -2
  69. package/commands/sandbox.js +1 -1
  70. package/commands/secrets/addSecret.js +1 -1
  71. package/commands/secrets/deleteSecret.js +1 -1
  72. package/commands/secrets/listSecrets.js +1 -1
  73. package/commands/secrets/updateSecret.js +1 -1
  74. package/commands/secrets.js +1 -1
  75. package/commands/theme/generate-selectors.js +1 -1
  76. package/commands/theme/marketplace-validate.js +1 -1
  77. package/commands/theme/preview.js +2 -2
  78. package/commands/theme.js +1 -1
  79. package/commands/upload.js +1 -1
  80. package/commands/watch.js +1 -1
  81. package/lang/en.lyaml +1378 -1374
  82. package/lib/DevServerManager.js +3 -2
  83. package/lib/LocalDevManager.js +89 -5
  84. package/lib/commonOpts.js +1 -1
  85. package/lib/developerTestAccountCreate.js +4 -5
  86. package/lib/developerTestAccounts.js +1 -1
  87. package/lib/errorHandlers/apiErrors.js +1 -1
  88. package/lib/errorHandlers/overrideErrors.js +1 -1
  89. package/lib/errorHandlers/standardErrors.js +1 -1
  90. package/lib/generate-selectors.js +1 -1
  91. package/lib/localDev.js +8 -12
  92. package/lib/process.js +1 -1
  93. package/lib/projects.js +6 -6
  94. package/lib/projectsWatch.js +1 -1
  95. package/lib/prompts/accountsPrompt.js +1 -1
  96. package/lib/prompts/buildIdPrompt.js +1 -1
  97. package/lib/prompts/cleanUploadPrompt.js +1 -1
  98. package/lib/prompts/cmsFieldPrompt.js +1 -1
  99. package/lib/prompts/createApiSamplePrompt.js +1 -1
  100. package/lib/prompts/createFunctionPrompt.js +1 -1
  101. package/lib/prompts/createModulePrompt.js +1 -1
  102. package/lib/prompts/createProjectPrompt.js +1 -1
  103. package/lib/prompts/createTemplatePrompt.js +1 -1
  104. package/lib/prompts/developerTestAccountNamePrompt.js +1 -1
  105. package/lib/prompts/downloadProjectPrompt.js +1 -1
  106. package/lib/prompts/enterAccountNamePrompt.js +1 -1
  107. package/lib/prompts/feedbackPrompt.js +1 -1
  108. package/lib/prompts/folderOverwritePrompt.js +1 -1
  109. package/lib/prompts/installPublicAppPrompt.js +42 -0
  110. package/lib/prompts/personalAccessKeyPrompt.js +1 -1
  111. package/lib/prompts/previewPrompt.js +1 -1
  112. package/lib/prompts/projectAddPrompt.js +1 -1
  113. package/lib/prompts/projectDevTargetAccountPrompt.js +1 -1
  114. package/lib/prompts/projectNamePrompt.js +2 -2
  115. package/lib/prompts/projectsLogsPrompt.js +1 -1
  116. package/lib/prompts/sandboxesPrompt.js +1 -1
  117. package/lib/prompts/secretPrompt.js +1 -1
  118. package/lib/prompts/setAsDefaultAccountPrompt.js +1 -1
  119. package/lib/prompts/uploadPrompt.js +1 -1
  120. package/lib/sandboxCreate.js +4 -5
  121. package/lib/sandboxSync.js +1 -1
  122. package/lib/sandboxes.js +7 -9
  123. package/lib/ui/git.js +1 -1
  124. package/lib/ui/index.js +2 -2
  125. package/lib/ui/serverlessFunctionLogs.js +1 -1
  126. package/package.json +6 -6
@@ -10,7 +10,7 @@ const {
10
10
  const { logger } = require('@hubspot/local-dev-lib/logger');
11
11
  const { EXIT_CODES } = require('../enums/exitCodes');
12
12
 
13
- const i18nKey = 'cli.lib.prompts.projectLogsPrompt';
13
+ const i18nKey = 'lib.prompts.projectLogsPrompt';
14
14
 
15
15
  const SERVERLESS_FUNCTION_TYPES = {
16
16
  APP_FUNCTION: 'app-function',
@@ -7,7 +7,7 @@ const {
7
7
  } = require('@hubspot/local-dev-lib/constants/config');
8
8
  const { isSandbox } = require('../accountTypes');
9
9
 
10
- const i18nKey = 'cli.lib.prompts.sandboxesPrompt';
10
+ const i18nKey = 'lib.prompts.sandboxesPrompt';
11
11
 
12
12
  const mapSandboxAccountChoices = portals =>
13
13
  portals
@@ -1,7 +1,7 @@
1
1
  const { promptUser } = require('./promptUtils');
2
2
  const { i18n } = require('../lang');
3
3
 
4
- const i18nKey = 'cli.lib.prompts.secretPrompt';
4
+ const i18nKey = 'lib.prompts.secretPrompt';
5
5
 
6
6
  const SECRET_VALUE_PROMPT = {
7
7
  name: 'secretValue',
@@ -5,7 +5,7 @@ const {
5
5
  const { promptUser } = require('./promptUtils');
6
6
  const { i18n } = require('../lang');
7
7
 
8
- const i18nKey = 'cli.lib.prompts.setAsDefaultAccountPrompt';
8
+ const i18nKey = 'lib.prompts.setAsDefaultAccountPrompt';
9
9
 
10
10
  const setAsDefaultAccountPrompt = async accountName => {
11
11
  const config = getConfig();
@@ -3,7 +3,7 @@ const { getCwd } = require('@hubspot/local-dev-lib/path');
3
3
  const { promptUser } = require('./promptUtils');
4
4
  const { i18n } = require('../lang');
5
5
 
6
- const i18nKey = 'cli.lib.prompts.uploadPrompt';
6
+ const i18nKey = 'lib.prompts.uploadPrompt';
7
7
 
8
8
  const uploadPrompt = (promptOptions = {}) => {
9
9
  return promptUser([
@@ -36,7 +36,7 @@ const {
36
36
  HUBSPOT_ACCOUNT_TYPES,
37
37
  } = require('@hubspot/local-dev-lib/constants/config');
38
38
 
39
- const i18nKey = 'cli.lib.sandbox.create';
39
+ const i18nKey = 'lib.sandbox.create';
40
40
 
41
41
  /**
42
42
  * @param {String} env - Environment (QA/Prod)
@@ -83,10 +83,9 @@ const saveSandboxToConfig = async (env, result, force = false) => {
83
83
  if (!force) {
84
84
  logger.log('');
85
85
  logger.warn(
86
- i18n(
87
- `cli.lib.prompts.enterAccountNamePrompt.errors.accountNameExists`,
88
- { name: nameForConfig }
89
- )
86
+ i18n(`lib.prompts.enterAccountNamePrompt.errors.accountNameExists`, {
87
+ name: nameForConfig,
88
+ })
90
89
  );
91
90
  const { name: promptName } = await enterAccountNamePrompt(
92
91
  nameForConfig + `_${result.sandbox.sandboxHubId}`
@@ -21,7 +21,7 @@ const { getSandboxTypeAsString } = require('./sandboxes');
21
21
  const { getAccountId } = require('@hubspot/local-dev-lib/config');
22
22
  const { uiAccountDescription } = require('./ui');
23
23
 
24
- const i18nKey = 'cli.lib.sandbox.sync';
24
+ const i18nKey = 'lib.sandbox.sync';
25
25
 
26
26
  /**
27
27
  * @param {Object} accountConfig - Account config of sandbox portal
package/lib/sandboxes.js CHANGED
@@ -103,9 +103,7 @@ const getSyncTypesWithContactRecordsPrompt = async (
103
103
  {
104
104
  name: 'contactRecordsSyncPrompt',
105
105
  type: 'confirm',
106
- message: i18n(
107
- `cli.lib.sandbox.sync.confirm.syncContactRecords.${langKey}`
108
- ),
106
+ message: i18n(`lib.sandbox.sync.confirm.syncContactRecords.${langKey}`),
109
107
  },
110
108
  ]);
111
109
  if (!contactRecordsSyncPrompt) {
@@ -138,7 +136,7 @@ const validateSandboxUsageLimits = async (accountConfig, sandboxType, env) => {
138
136
  if (hasDevelopmentSandboxes) {
139
137
  throw new Error(
140
138
  i18n(
141
- `cli.lib.sandbox.create.failure.alreadyInConfig.developer.${
139
+ `lib.sandbox.create.failure.alreadyInConfig.developer.${
142
140
  plural ? 'other' : 'one'
143
141
  }`,
144
142
  {
@@ -151,7 +149,7 @@ const validateSandboxUsageLimits = async (accountConfig, sandboxType, env) => {
151
149
  const baseUrl = getHubSpotWebsiteOrigin(env);
152
150
  throw new Error(
153
151
  i18n(
154
- `cli.lib.sandbox.create.failure.limit.developer.${
152
+ `lib.sandbox.create.failure.limit.developer.${
155
153
  plural ? 'other' : 'one'
156
154
  }`,
157
155
  {
@@ -175,7 +173,7 @@ const validateSandboxUsageLimits = async (accountConfig, sandboxType, env) => {
175
173
  if (hasStandardSandboxes) {
176
174
  throw new Error(
177
175
  i18n(
178
- `cli.lib.sandbox.create.failure.alreadyInConfig.standard.${
176
+ `lib.sandbox.create.failure.alreadyInConfig.standard.${
179
177
  plural ? 'other' : 'one'
180
178
  }`,
181
179
  {
@@ -188,7 +186,7 @@ const validateSandboxUsageLimits = async (accountConfig, sandboxType, env) => {
188
186
  const baseUrl = getHubSpotWebsiteOrigin(env);
189
187
  throw new Error(
190
188
  i18n(
191
- `cli.lib.sandbox.create.failure.limit.standard.${
189
+ `lib.sandbox.create.failure.limit.standard.${
192
190
  plural ? 'other' : 'one'
193
191
  }`,
194
192
  {
@@ -229,7 +227,7 @@ function pollSyncTaskStatus(
229
227
  syncStatusUrl,
230
228
  allowEarlyTermination = true
231
229
  ) {
232
- const i18nKey = 'cli.lib.sandbox.sync.types';
230
+ const i18nKey = 'lib.sandbox.sync.types';
233
231
  const progressBar = CliProgressMultibarManager.init();
234
232
  const mergeTasks = {
235
233
  'lead-flows': 'forms', // lead-flows are a subset of forms. We combine these in the UI as a single item, so we want to merge here for consistency.
@@ -244,7 +242,7 @@ function pollSyncTaskStatus(
244
242
  logger.log('Exiting, sync will continue in the background.');
245
243
  logger.log('');
246
244
  logger.log(
247
- i18n('cli.lib.sandbox.sync.info.syncStatus', {
245
+ i18n('lib.sandbox.sync.info.syncStatus', {
248
246
  url: syncStatusUrl,
249
247
  })
250
248
  );
package/lib/ui/git.js CHANGED
@@ -3,7 +3,7 @@ const { checkGitInclusion } = require('@hubspot/local-dev-lib/gitignore');
3
3
  const { logger } = require('@hubspot/local-dev-lib/logger');
4
4
  const { i18n } = require('../lang');
5
5
 
6
- const i18nKey = 'cli.lib.ui.git';
6
+ const i18nKey = 'lib.ui.git';
7
7
 
8
8
  function checkAndWarnGitInclusion(configPath) {
9
9
  try {
package/lib/ui/index.js CHANGED
@@ -122,7 +122,7 @@ const uiCommandReference = command => {
122
122
  };
123
123
 
124
124
  const uiFeatureHighlight = (commands, title) => {
125
- const i18nKey = 'cli.lib.ui.featureHighlight';
125
+ const i18nKey = 'lib.ui.featureHighlight';
126
126
 
127
127
  uiInfoSection(title ? title : i18n(`${i18nKey}.defaultTitle`), () => {
128
128
  commands.forEach((c, i) => {
@@ -140,7 +140,7 @@ const uiFeatureHighlight = (commands, title) => {
140
140
  };
141
141
 
142
142
  const uiBetaTag = (message, log = true) => {
143
- const i18nKey = 'cli.lib.ui';
143
+ const i18nKey = 'lib.ui';
144
144
 
145
145
  const terminalUISupport = getTerminalUISupport();
146
146
  const tag = i18n(`${i18nKey}.betaTag`);
@@ -3,7 +3,7 @@ const chalk = require('chalk');
3
3
  const { logger, Styles } = require('@hubspot/local-dev-lib/logger');
4
4
  const { i18n } = require('../lang');
5
5
 
6
- const i18nKey = 'cli.lib.ui.serverlessFunctionLogs';
6
+ const i18nKey = 'lib.ui.serverlessFunctionLogs';
7
7
 
8
8
  const SEPARATOR = ' - ';
9
9
  const LOG_STATUS_COLORS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cli",
3
- "version": "5.2.1-beta.2",
3
+ "version": "5.2.1-beta.4",
4
4
  "description": "CLI for working with HubSpot",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,10 +8,10 @@
8
8
  "url": "https://github.com/HubSpot/hubspot-cms-tools"
9
9
  },
10
10
  "dependencies": {
11
- "@hubspot/local-dev-lib": "1.0.1",
12
- "@hubspot/serverless-dev-runtime": "5.2.1-beta.2",
13
- "@hubspot/theme-preview-dev-server": "0.0.4",
14
- "@hubspot/ui-extensions-dev-server": "0.8.12",
11
+ "@hubspot/local-dev-lib": "1.1.0",
12
+ "@hubspot/serverless-dev-runtime": "5.2.1-beta.4",
13
+ "@hubspot/theme-preview-dev-server": "0.0.5",
14
+ "@hubspot/ui-extensions-dev-server": "0.8.16",
15
15
  "archiver": "^5.3.0",
16
16
  "chalk": "^4.1.2",
17
17
  "chokidar": "^3.0.1",
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "eeed6c79043020a0be2552fd0b5271866f8d73f9"
48
+ "gitHead": "59dbc8bff2ca377c95e1eea4dcc52389e98ac644"
49
49
  }