@hubspot/cli 6.2.2-experimental.0 → 6.2.2-experimental.1

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 (331) hide show
  1. package/LICENSE +12 -0
  2. package/README.md +71 -0
  3. package/commands/accounts/clean.d.ts +1 -4
  4. package/commands/accounts/clean.js +2 -0
  5. package/commands/accounts/info.d.ts +1 -4
  6. package/commands/accounts/info.js +3 -1
  7. package/commands/accounts/list.d.ts +1 -4
  8. package/commands/accounts/list.js +2 -0
  9. package/commands/accounts/remove.d.ts +1 -4
  10. package/commands/accounts/remove.js +2 -0
  11. package/commands/accounts/rename.d.ts +1 -4
  12. package/commands/accounts/rename.js +2 -0
  13. package/commands/accounts/use.d.ts +1 -4
  14. package/commands/accounts/use.js +2 -0
  15. package/commands/accounts.d.ts +1 -3
  16. package/commands/accounts.js +2 -0
  17. package/commands/auth.d.ts +1 -4
  18. package/commands/auth.js +2 -0
  19. package/commands/cms/convertFields.d.ts +1 -4
  20. package/commands/cms/convertFields.js +2 -0
  21. package/commands/cms/lighthouseScore.d.ts +1 -4
  22. package/commands/cms/lighthouseScore.js +2 -0
  23. package/commands/cms/reactModules.d.ts +1 -4
  24. package/commands/cms/reactModules.js +2 -0
  25. package/commands/cms.d.ts +1 -3
  26. package/commands/cms.js +2 -0
  27. package/commands/config/set.d.ts +1 -4
  28. package/commands/config/set.js +3 -3
  29. package/commands/config.d.ts +1 -3
  30. package/commands/config.js +2 -0
  31. package/commands/create/api-sample.d.ts +1 -13
  32. package/commands/create/api-sample.js +2 -0
  33. package/commands/create/app.d.ts +1 -10
  34. package/commands/create/app.js +2 -0
  35. package/commands/create/function.d.ts +1 -6
  36. package/commands/create/function.js +2 -0
  37. package/commands/create/index.d.ts +1 -109
  38. package/commands/create/index.js +2 -0
  39. package/commands/create/module.d.ts +1 -11
  40. package/commands/create/module.js +2 -0
  41. package/commands/create/react-app.d.ts +1 -9
  42. package/commands/create/react-app.js +2 -0
  43. package/commands/create/template.d.ts +1 -12
  44. package/commands/create/template.js +2 -0
  45. package/commands/create/vue-app.d.ts +1 -9
  46. package/commands/create/vue-app.js +2 -0
  47. package/commands/create/webpack-serverless.d.ts +1 -9
  48. package/commands/create/webpack-serverless.js +2 -0
  49. package/commands/create/website-theme.d.ts +1 -9
  50. package/commands/create/website-theme.js +2 -0
  51. package/commands/create.d.ts +24 -4
  52. package/commands/create.js +4 -1
  53. package/commands/customObject/create.d.ts +1 -4
  54. package/commands/customObject/create.js +2 -0
  55. package/commands/customObject/schema/create.d.ts +1 -4
  56. package/commands/customObject/schema/create.js +2 -0
  57. package/commands/customObject/schema/delete.d.ts +1 -4
  58. package/commands/customObject/schema/delete.js +3 -1
  59. package/commands/customObject/schema/fetch-all.d.ts +1 -4
  60. package/commands/customObject/schema/fetch-all.js +2 -0
  61. package/commands/customObject/schema/fetch.d.ts +1 -4
  62. package/commands/customObject/schema/fetch.js +3 -1
  63. package/commands/customObject/schema/list.d.ts +1 -3
  64. package/commands/customObject/schema/list.js +2 -0
  65. package/commands/customObject/schema/update.d.ts +1 -4
  66. package/commands/customObject/schema/update.js +2 -0
  67. package/commands/customObject/schema.d.ts +1 -3
  68. package/commands/customObject/schema.js +2 -0
  69. package/commands/customObject.d.ts +1 -3
  70. package/commands/customObject.js +2 -0
  71. package/commands/feedback.d.ts +1 -4
  72. package/commands/feedback.js +2 -0
  73. package/commands/fetch.d.ts +1 -4
  74. package/commands/fetch.js +2 -0
  75. package/commands/filemanager/fetch.d.ts +1 -4
  76. package/commands/filemanager/fetch.js +4 -2
  77. package/commands/filemanager/upload.d.ts +1 -4
  78. package/commands/filemanager/upload.js +2 -0
  79. package/commands/filemanager.d.ts +1 -3
  80. package/commands/filemanager.js +2 -0
  81. package/commands/functions/deploy.d.ts +1 -4
  82. package/commands/functions/deploy.js +2 -0
  83. package/commands/functions/list.d.ts +1 -4
  84. package/commands/functions/list.js +13 -2
  85. package/commands/functions/server.d.ts +1 -4
  86. package/commands/functions/server.js +2 -0
  87. package/commands/functions.d.ts +1 -3
  88. package/commands/functions.js +2 -0
  89. package/commands/hubdb/clear.d.ts +1 -4
  90. package/commands/hubdb/clear.js +2 -0
  91. package/commands/hubdb/create.d.ts +1 -4
  92. package/commands/hubdb/create.js +2 -0
  93. package/commands/hubdb/delete.d.ts +1 -4
  94. package/commands/hubdb/delete.js +2 -0
  95. package/commands/hubdb/fetch.d.ts +1 -4
  96. package/commands/hubdb/fetch.js +2 -0
  97. package/commands/hubdb.d.ts +1 -3
  98. package/commands/hubdb.js +2 -0
  99. package/commands/init.d.ts +1 -4
  100. package/commands/init.js +2 -0
  101. package/commands/lint.d.ts +1 -4
  102. package/commands/lint.js +2 -0
  103. package/commands/list.d.ts +1 -4
  104. package/commands/list.js +2 -0
  105. package/commands/logs.d.ts +1 -4
  106. package/commands/logs.js +2 -0
  107. package/commands/module/marketplace-validate.d.ts +1 -4
  108. package/commands/module/marketplace-validate.js +2 -0
  109. package/commands/module.d.ts +1 -3
  110. package/commands/module.js +2 -0
  111. package/commands/mv.d.ts +1 -4
  112. package/commands/mv.js +2 -0
  113. package/commands/open.d.ts +1 -4
  114. package/commands/open.js +2 -0
  115. package/commands/project/add.d.ts +1 -4
  116. package/commands/project/add.js +2 -0
  117. package/commands/project/cloneApp.d.ts +1 -4
  118. package/commands/project/cloneApp.js +2 -0
  119. package/commands/project/create.d.ts +1 -4
  120. package/commands/project/create.js +2 -0
  121. package/commands/project/deploy.d.ts +1 -4
  122. package/commands/project/deploy.js +2 -0
  123. package/commands/project/dev.d.ts +1 -4
  124. package/commands/project/dev.js +3 -0
  125. package/commands/project/download.d.ts +1 -4
  126. package/commands/project/download.js +4 -2
  127. package/commands/project/installDeps.d.ts +1 -6
  128. package/commands/project/installDeps.js +2 -0
  129. package/commands/project/listBuilds.d.ts +1 -4
  130. package/commands/project/listBuilds.js +2 -0
  131. package/commands/project/logs.d.ts +1 -4
  132. package/commands/project/logs.js +2 -0
  133. package/commands/project/migrateApp.d.ts +1 -4
  134. package/commands/project/migrateApp.js +2 -0
  135. package/commands/project/open.d.ts +1 -4
  136. package/commands/project/open.js +2 -0
  137. package/commands/project/upload.d.ts +1 -4
  138. package/commands/project/upload.js +2 -0
  139. package/commands/project/watch.d.ts +1 -4
  140. package/commands/project/watch.js +2 -0
  141. package/commands/project.d.ts +1 -3
  142. package/commands/project.js +2 -0
  143. package/commands/remove.d.ts +1 -4
  144. package/commands/remove.js +2 -0
  145. package/commands/sandbox/create.d.ts +1 -4
  146. package/commands/sandbox/create.js +2 -0
  147. package/commands/sandbox/delete.d.ts +1 -4
  148. package/commands/sandbox/delete.js +2 -0
  149. package/commands/sandbox.d.ts +1 -3
  150. package/commands/sandbox.js +2 -0
  151. package/commands/secrets/addSecret.d.ts +1 -4
  152. package/commands/secrets/addSecret.js +2 -0
  153. package/commands/secrets/deleteSecret.d.ts +1 -4
  154. package/commands/secrets/deleteSecret.js +2 -0
  155. package/commands/secrets/listSecrets.d.ts +1 -4
  156. package/commands/secrets/listSecrets.js +2 -0
  157. package/commands/secrets/updateSecret.d.ts +1 -4
  158. package/commands/secrets/updateSecret.js +2 -0
  159. package/commands/secrets.d.ts +1 -3
  160. package/commands/secrets.js +2 -0
  161. package/commands/theme/generate-selectors.d.ts +1 -4
  162. package/commands/theme/generate-selectors.js +2 -0
  163. package/commands/theme/marketplace-validate.d.ts +1 -4
  164. package/commands/theme/marketplace-validate.js +2 -0
  165. package/commands/theme/preview.d.ts +1 -4
  166. package/commands/theme/preview.js +56 -46
  167. package/commands/theme.d.ts +1 -3
  168. package/commands/theme.js +2 -0
  169. package/commands/upload.d.ts +1 -4
  170. package/commands/upload.js +2 -0
  171. package/commands/watch.d.ts +1 -4
  172. package/commands/watch.js +2 -0
  173. package/lib/DevServerManager.d.ts +1 -35
  174. package/lib/DevServerManager.js +2 -0
  175. package/lib/LocalDevManager.d.ts +1 -41
  176. package/lib/LocalDevManager.js +3 -1
  177. package/lib/accountTypes.d.ts +7 -6
  178. package/lib/accountTypes.js +31 -17
  179. package/lib/buildAccount.d.ts +1 -22
  180. package/lib/buildAccount.js +2 -0
  181. package/lib/commonOpts.d.ts +1 -20
  182. package/lib/commonOpts.js +2 -0
  183. package/lib/configOptions.d.ts +1 -0
  184. package/lib/configOptions.js +110 -0
  185. package/lib/constants.d.ts +84 -83
  186. package/lib/constants.js +23 -40
  187. package/lib/debugInfo.d.ts +1 -3
  188. package/lib/debugInfo.js +2 -0
  189. package/lib/dependencyManagement.d.ts +1 -7
  190. package/lib/dependencyManagement.js +2 -0
  191. package/lib/developerTestAccounts.d.ts +1 -7
  192. package/lib/developerTestAccounts.js +2 -0
  193. package/lib/enums/exitCodes.d.ts +5 -5
  194. package/lib/enums/exitCodes.js +3 -2
  195. package/lib/environment.d.ts +1 -1
  196. package/lib/environment.js +4 -5
  197. package/lib/errorHandlers/index.d.ts +1 -19
  198. package/lib/errorHandlers/index.js +2 -0
  199. package/lib/errorHandlers/suppressError.d.ts +1 -1
  200. package/lib/errorHandlers/suppressError.js +2 -0
  201. package/lib/filesystem.d.ts +2 -2
  202. package/lib/filesystem.js +12 -10
  203. package/lib/generate-selectors.d.ts +1 -6
  204. package/lib/generate-selectors.js +3 -1
  205. package/lib/hasFeature.d.ts +1 -1
  206. package/lib/hasFeature.js +7 -8
  207. package/lib/hasFlag.d.ts +1 -2
  208. package/lib/hasFlag.js +7 -3
  209. package/lib/hublValidate.d.ts +2 -4
  210. package/lib/hublValidate.js +13 -9
  211. package/lib/interpolation.d.ts +1 -10
  212. package/lib/interpolation.js +2 -0
  213. package/lib/interpolationHelpers.d.ts +10 -6
  214. package/lib/interpolationHelpers.js +29 -21
  215. package/lib/lang.d.ts +1 -3
  216. package/lib/lang.js +2 -0
  217. package/lib/links.d.ts +1 -127
  218. package/lib/links.js +2 -0
  219. package/lib/localDev.d.ts +1 -11
  220. package/lib/localDev.js +2 -0
  221. package/lib/marketplace-validate.d.ts +1 -5
  222. package/lib/marketplace-validate.js +2 -0
  223. package/lib/oauth.d.ts +1 -1
  224. package/lib/oauth.js +3 -1
  225. package/lib/polling.d.ts +1 -1
  226. package/lib/polling.js +2 -0
  227. package/lib/process.d.ts +1 -2
  228. package/lib/process.js +2 -0
  229. package/lib/projectLogsManager.d.ts +1 -19
  230. package/lib/projectLogsManager.js +2 -0
  231. package/lib/projectStructure.d.ts +1 -13
  232. package/lib/projectStructure.js +4 -2
  233. package/lib/projects.d.ts +1 -40
  234. package/lib/projects.js +10 -5
  235. package/lib/projectsWatch.d.ts +1 -1
  236. package/lib/projectsWatch.js +8 -3
  237. package/lib/prompts/accountNamePrompt.d.ts +1 -11
  238. package/lib/prompts/accountNamePrompt.js +2 -0
  239. package/lib/prompts/accountsPrompt.d.ts +1 -3
  240. package/lib/prompts/accountsPrompt.js +2 -0
  241. package/lib/prompts/activeInstallConfirmationPrompt.d.ts +1 -1
  242. package/lib/prompts/activeInstallConfirmationPrompt.js +2 -0
  243. package/lib/prompts/cleanUploadPrompt.d.ts +1 -1
  244. package/lib/prompts/cleanUploadPrompt.js +2 -0
  245. package/lib/prompts/cmsFieldPrompt.d.ts +1 -1
  246. package/lib/prompts/cmsFieldPrompt.js +2 -0
  247. package/lib/prompts/createApiSamplePrompt.d.ts +1 -1
  248. package/lib/prompts/createApiSamplePrompt.js +2 -0
  249. package/lib/prompts/createFunctionPrompt.d.ts +1 -1
  250. package/lib/prompts/createFunctionPrompt.js +2 -0
  251. package/lib/prompts/createModulePrompt.d.ts +1 -1
  252. package/lib/prompts/createModulePrompt.js +2 -0
  253. package/lib/prompts/createProjectPrompt.d.ts +1 -1
  254. package/lib/prompts/createProjectPrompt.js +10 -5
  255. package/lib/prompts/createTemplatePrompt.d.ts +1 -1
  256. package/lib/prompts/createTemplatePrompt.js +2 -0
  257. package/lib/prompts/deployBuildIdPrompt.d.ts +1 -1
  258. package/lib/prompts/deployBuildIdPrompt.js +2 -0
  259. package/lib/prompts/downloadProjectPrompt.d.ts +1 -1
  260. package/lib/prompts/downloadProjectPrompt.js +3 -1
  261. package/lib/prompts/feedbackPrompt.d.ts +1 -2
  262. package/lib/prompts/feedbackPrompt.js +2 -0
  263. package/lib/prompts/folderOverwritePrompt.d.ts +1 -1
  264. package/lib/prompts/folderOverwritePrompt.js +2 -0
  265. package/lib/prompts/installPublicAppPrompt.d.ts +1 -1
  266. package/lib/prompts/installPublicAppPrompt.js +2 -0
  267. package/lib/prompts/personalAccessKeyPrompt.d.ts +1 -69
  268. package/lib/prompts/personalAccessKeyPrompt.js +2 -0
  269. package/lib/prompts/previewPrompt.d.ts +1 -2
  270. package/lib/prompts/previewPrompt.js +2 -0
  271. package/lib/prompts/projectAddPrompt.d.ts +1 -1
  272. package/lib/prompts/projectAddPrompt.js +2 -0
  273. package/lib/prompts/projectDevTargetAccountPrompt.d.ts +1 -4
  274. package/lib/prompts/projectDevTargetAccountPrompt.js +2 -0
  275. package/lib/prompts/projectNamePrompt.d.ts +1 -1
  276. package/lib/prompts/projectNamePrompt.js +2 -0
  277. package/lib/prompts/projectsLogsPrompt.d.ts +1 -5
  278. package/lib/prompts/projectsLogsPrompt.js +2 -0
  279. package/lib/prompts/promptUtils.d.ts +1 -2
  280. package/lib/prompts/promptUtils.js +2 -0
  281. package/lib/prompts/sandboxesPrompt.d.ts +1 -2
  282. package/lib/prompts/sandboxesPrompt.js +2 -0
  283. package/lib/prompts/secretPrompt.d.ts +1 -1
  284. package/lib/prompts/secretPrompt.js +2 -0
  285. package/lib/prompts/selectPublicAppPrompt.d.ts +1 -5
  286. package/lib/prompts/selectPublicAppPrompt.js +3 -1
  287. package/lib/prompts/setAsDefaultAccountPrompt.d.ts +1 -1
  288. package/lib/prompts/setAsDefaultAccountPrompt.js +2 -0
  289. package/lib/prompts/uploadPrompt.d.ts +1 -1
  290. package/lib/prompts/uploadPrompt.js +2 -0
  291. package/lib/regex.d.ts +1 -1
  292. package/lib/regex.js +3 -4
  293. package/lib/sandboxSync.d.ts +1 -8
  294. package/lib/sandboxSync.js +3 -1
  295. package/lib/sandboxes.d.ts +1 -40
  296. package/lib/sandboxes.js +2 -0
  297. package/lib/schema.d.ts +3 -2
  298. package/lib/schema.js +20 -18
  299. package/lib/serverlessLogs.d.ts +1 -8
  300. package/lib/serverlessLogs.js +3 -1
  301. package/lib/ui/SpinniesManager.d.ts +1 -61
  302. package/lib/ui/SpinniesManager.js +2 -0
  303. package/lib/ui/git.d.ts +1 -1
  304. package/lib/ui/git.js +2 -0
  305. package/lib/ui/index.d.ts +1 -36
  306. package/lib/ui/index.js +2 -0
  307. package/lib/ui/serverlessFunctionLogs.d.ts +1 -1
  308. package/lib/ui/serverlessFunctionLogs.js +2 -0
  309. package/lib/ui/spinniesUtils.d.ts +1 -60
  310. package/lib/ui/spinniesUtils.js +2 -0
  311. package/lib/ui/supportHyperlinks.d.ts +1 -3
  312. package/lib/ui/supportHyperlinks.js +3 -1
  313. package/lib/ui/supportsColor.d.ts +1 -13
  314. package/lib/ui/supportsColor.js +3 -1
  315. package/lib/ui/table.d.ts +1 -2
  316. package/lib/ui/table.js +2 -0
  317. package/lib/upload.d.ts +1 -1
  318. package/lib/upload.js +4 -2
  319. package/lib/usageTracking.d.ts +1 -6
  320. package/lib/usageTracking.js +2 -0
  321. package/lib/validation.d.ts +1 -16
  322. package/lib/validation.js +2 -0
  323. package/package.json +15 -9
  324. package/commands/config/set/allowUsageTracking.d.ts +0 -4
  325. package/commands/config/set/allowUsageTracking.js +0 -45
  326. package/commands/config/set/defaultMode.d.ts +0 -4
  327. package/commands/config/set/defaultMode.js +0 -48
  328. package/commands/config/set/httpTimeout.d.ts +0 -4
  329. package/commands/config/set/httpTimeout.js +0 -33
  330. package/lib/getFunctionArrays.d.ts +0 -1
  331. package/lib/getFunctionArrays.js +0 -17
package/LICENSE ADDED
@@ -0,0 +1,12 @@
1
+ Copyright 2019 HubSpot, Inc.
2
+ Licensed under the Apache License, Version 2.0 (the "License");
3
+ you may not use this file except in compliance with the License.
4
+ You may obtain a copy of the License at
5
+
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+
8
+ Unless required by applicable law or agreed to in writing, software
9
+ distributed under the License is distributed on an "AS IS" BASIS,
10
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ See the License for the specific language governing permissions and
12
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # @hubspot/cli
2
+
3
+ [![Official Release](https://img.shields.io/npm/v/@hubspot/cli/latest?label=Official%20Release)](https://www.npmjs.com/package/@hubspot/cli) [![Latest Version](https://img.shields.io/github/v/tag/hubspot/hubspot-cli?label=Latest%20Version)](https://www.npmjs.com/package/@hubspot/cli?activeTab=versions)
4
+
5
+ A CLI for HubSpot developers to enable local development and automation. [Learn more about building on HubSpot](https://developers.hubspot.com).
6
+
7
+ ## Contributing
8
+
9
+ For more information on developing, see the [Contributing Guide](CONTRIBUTING.md).
10
+
11
+ ## Getting started
12
+
13
+ For more information on using these tools, see [Local Development Tooling: Getting Started](https://developers.hubspot.com/docs/cms/guides/getting-started-with-local-development)
14
+
15
+ ### Installation
16
+
17
+ ```bash
18
+ npm install -g @hubspot/cli
19
+ ```
20
+
21
+ ### Configuring
22
+
23
+ Once the `@hubspot/cli` has been added to a project, a config file named [hubspot.config.yml](../../docs/HubspotConfigFile.md) will also be needed. It is recommended that the config file is kept in your `$HOME` directory.
24
+
25
+ ```bash
26
+ cd ~
27
+ hs init
28
+ ```
29
+
30
+ #### Auto Completion
31
+
32
+ You can set up command autocompletion by running
33
+
34
+ ```bash
35
+ hs completion
36
+ ```
37
+
38
+ and copying the output to either your `.bashrc` or `.zshrc`, and then sourcing that file `source ~/.bashrc` `source ~/.zshrc` or restarting your terminal.
39
+
40
+ ## Commands
41
+
42
+ A full breakdown of the commands can be found on the [local development tools reference page](https://developers.hubspot.com/docs/cms/developer-reference/local-development-cli).
43
+
44
+ **Note:** When `@hubspot/cli` is installed local to a project, the commands need to be prefixed with either `yarn` if using `yarn` or `npx` if using `npm`.
45
+
46
+ ## Authentication
47
+
48
+ There are two ways that the tools can authenticate with HubSpot.
49
+
50
+ ### Personal Access Key (recommended)
51
+
52
+ 1. Run `hs init` or `hs auth personalaccesskey` and follow the instructions
53
+
54
+ ### OAuth2
55
+
56
+ 1. [Create a developer app](https://developers.hubspot.com/docs/faq/how-do-i-create-an-app-in-hubspot)
57
+ 2. Run `hs auth oauth2`
58
+ 3. Select `OAuth2` and follow the steps
59
+
60
+ _**Note:** The Account ID used should be the Test Account ID (not the developer app ID). Client ID and Client Secret are from the developer app._
61
+ ### Exit Codes
62
+
63
+ The CLI will exit with one of the following exit codes:
64
+ - `0`: A successful run
65
+ - `1`: There was a config problem or an internal error
66
+ - `2`: There are warnings or validation issues
67
+
68
+
69
+ ## Changelog
70
+
71
+ The best way to stay up to date is to check out the [Github Releases](https://github.com/HubSpot/hubspot-cli/releases) and also follow our [developer changelog posts](https://developers.hubspot.com/changelog) for an easier to read breakdown of major changes.
@@ -1,4 +1 @@
1
- export const command: "clean";
2
- export const describe: any;
3
- export function handler(options: any): Promise<never>;
4
- export function builder(yargs: any): any;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { logger } = require('@hubspot/local-dev-lib/logger');
3
5
  const { accessTokenForPersonalAccessKey, } = require('@hubspot/local-dev-lib/personalAccessKey');
4
6
  const { trackCommandUsage } = require('../../lib/usageTracking');
@@ -1,4 +1 @@
1
- export const describe: any;
2
- export const command: "info [--account]";
3
- export function handler(options: any): Promise<void>;
4
- export function builder(yargs: any): any;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { logger } = require('@hubspot/local-dev-lib/logger');
3
5
  const { getAccountConfig } = require('@hubspot/local-dev-lib/config');
4
6
  const { getAccessToken } = require('@hubspot/local-dev-lib/personalAccessKey');
@@ -11,7 +13,7 @@ exports.describe = i18n(`${i18nKey}.describe`);
11
13
  exports.command = 'info [--account]';
12
14
  exports.handler = async (options) => {
13
15
  await loadAndValidateOptions(options);
14
- let accountId = getAccountId(options);
16
+ const accountId = getAccountId(options);
15
17
  const config = getAccountConfig(accountId);
16
18
  // check if the provided account is using a personal access key, if not, show an error
17
19
  if (config.authType === 'personalaccesskey') {
@@ -1,4 +1 @@
1
- export const command: "list";
2
- export const describe: any;
3
- export function handler(options: any): Promise<void>;
4
- export function builder(yargs: any): any;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { logger } = require('@hubspot/local-dev-lib/logger');
3
5
  const { getConfig, getConfigPath } = require('@hubspot/local-dev-lib/config');
4
6
  const { getTableContents, getTableHeader } = require('../../lib/ui/table');
@@ -1,4 +1 @@
1
- export const command: "remove [--account]";
2
- export const describe: any;
3
- export function handler(options: any): Promise<void>;
4
- export function builder(yargs: any): any;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { logger } = require('@hubspot/local-dev-lib/logger');
3
5
  const { getConfig, getConfigPath, deleteAccount, getConfigDefaultAccount, getAccountId: getAccountIdFromConfig, updateDefaultAccount, } = require('@hubspot/local-dev-lib/config');
4
6
  const { trackCommandUsage } = require('../../lib/usageTracking');
@@ -1,4 +1 @@
1
- export const command: "rename <accountName> <newName>";
2
- export const describe: any;
3
- export function handler(options: any): Promise<void>;
4
- export function builder(yargs: any): any;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { logger } = require('@hubspot/local-dev-lib/logger');
3
5
  const { renameAccount } = require('@hubspot/local-dev-lib/config');
4
6
  const { addConfigOptions, addAccountOptions, getAccountId, } = require('../../lib/commonOpts');
@@ -1,4 +1 @@
1
- export const command: "use [--account]";
2
- export const describe: any;
3
- export function handler(options: any): Promise<void>;
4
- export function builder(yargs: any): any;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { logger } = require('@hubspot/local-dev-lib/logger');
3
5
  const { getConfig, getConfigPath, updateDefaultAccount, getAccountId: getAccountIdFromConfig, } = require('@hubspot/local-dev-lib/config');
4
6
  const { trackCommandUsage } = require('../../lib/usageTracking');
@@ -1,3 +1 @@
1
- export const command: "accounts";
2
- export const describe: any;
3
- export function builder(yargs: any): any;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { addConfigOptions, addAccountOptions } = require('../lib/commonOpts');
3
5
  const { i18n } = require('../lib/lang');
4
6
  const list = require('./accounts/list');
@@ -1,4 +1 @@
1
- export const command: "auth [type] [--account]";
2
- export const describe: any;
3
- export function handler(options: any): Promise<never>;
4
- export function builder(yargs: any): any;
1
+ export {};
package/commands/auth.js CHANGED
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { checkAndWarnGitInclusion } = require('../lib/ui/git');
3
5
  const { logger } = require('@hubspot/local-dev-lib/logger');
4
6
  const { OAUTH_AUTH_METHOD, PERSONAL_ACCESS_KEY_AUTH_METHOD, } = require('@hubspot/local-dev-lib/constants/auth');
@@ -1,4 +1 @@
1
- export const command: "convert-fields";
2
- export const describe: any;
3
- export function handler(options: any): Promise<void>;
4
- export function builder(yargs: any): any;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const path = require('path');
3
5
  const fs = require('fs');
4
6
  const { createIgnoreFilter } = require('@hubspot/local-dev-lib/ignoreRules');
@@ -1,4 +1 @@
1
- export const command: "lighthouse-score [--theme]";
2
- export const describe: false;
3
- export function handler(options: any): Promise<never>;
4
- export function builder(yargs: any): any;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const SpinniesManager = require('../../lib/ui/SpinniesManager');
3
5
  const { addAccountOptions, addConfigOptions, addUseEnvironmentOptions, getAccountId, } = require('../../lib/commonOpts');
4
6
  const { logger } = require('@hubspot/local-dev-lib/logger');
@@ -1,4 +1 @@
1
- export const command: "get-react-module [--name] [--dest]";
2
- export const describe: any;
3
- export function handler(options: any): Promise<void>;
4
- export function builder(yargs: any): any;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const fs = require('fs');
3
5
  const { logger } = require('@hubspot/local-dev-lib/logger');
4
6
  const { retrieveDefaultModule } = require('@hubspot/local-dev-lib/cms/modules');
package/commands/cms.d.ts CHANGED
@@ -1,3 +1 @@
1
- export const command: "cms";
2
- export const describe: any;
3
- export function builder(yargs: any): any;
1
+ export {};
package/commands/cms.js CHANGED
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { i18n } = require('../lib/lang');
3
5
  const { addConfigOptions, addAccountOptions } = require('../lib/commonOpts');
4
6
  const lighthouseScore = require('./cms/lighthouseScore');
@@ -1,4 +1 @@
1
- export const command: "set";
2
- export const describe: any;
3
- export function handler(options: any): Promise<never>;
4
- export function builder(yargs: any): any;
1
+ export {};
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { loadAndValidateOptions } = require('../../lib/validation');
3
5
  const { i18n } = require('../../lib/lang');
4
6
  const { getAccountId } = require('../../lib/commonOpts');
5
7
  const { trackCommandUsage } = require('../../lib/usageTracking');
6
8
  const { promptUser } = require('../../lib/prompts/promptUtils');
7
9
  const { EXIT_CODES } = require('../../lib/enums/exitCodes');
8
- const { setDefaultMode } = require('./set/defaultMode');
9
- const { setHttpTimeout } = require('./set/httpTimeout');
10
- const { setAllowUsageTracking } = require('./set/allowUsageTracking');
10
+ const { setDefaultMode, setHttpTimeout, setAllowUsageTracking, } = require('../../lib/configOptions');
11
11
  const i18nKey = 'commands.config.subcommands.set';
12
12
  exports.command = 'set';
13
13
  exports.describe = i18n(`${i18nKey}.describe`);
@@ -1,3 +1 @@
1
- export const command: "config";
2
- export const describe: any;
3
- export function builder(yargs: any): any;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { addConfigOptions, addAccountOptions } = require('../lib/commonOpts');
3
5
  const { i18n } = require('../lib/lang');
4
6
  const set = require('./config/set');
@@ -1,13 +1 @@
1
- export let hidden: boolean;
2
- export function dest({ dest }: {
3
- dest: any;
4
- }): any;
5
- export function validate({ name }: {
6
- name: any;
7
- }): boolean;
8
- export function execute({ dest, name, assetType, options }: {
9
- dest: any;
10
- name: any;
11
- assetType: any;
12
- options: any;
13
- }): Promise<void>;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { createApiSamplePrompt, } = require('../../lib/prompts/createApiSamplePrompt');
3
5
  const { folderOverwritePrompt, } = require('../../lib/prompts/folderOverwritePrompt');
4
6
  const { logger } = require('@hubspot/local-dev-lib/logger');
@@ -1,10 +1 @@
1
- export let hidden: boolean;
2
- export function dest({ name, assetType }: {
3
- name: any;
4
- assetType: any;
5
- }): any;
6
- export function execute({ options, dest, assetType }: {
7
- options: any;
8
- dest: any;
9
- assetType: any;
10
- }): Promise<boolean>;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { cloneGithubRepo } = require('@hubspot/local-dev-lib/github');
3
5
  module.exports = {
4
6
  hidden: true,
@@ -1,6 +1 @@
1
- export function dest({ name }: {
2
- name: any;
3
- }): any;
4
- export function execute({ dest }: {
5
- dest: any;
6
- }): Promise<void>;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { createFunction } = require('@hubspot/local-dev-lib/cms/functions');
3
5
  const { createFunctionPrompt, } = require('../../lib/prompts/createFunctionPrompt');
4
6
  const { logError } = require('../../lib/errorHandlers/index');
@@ -1,109 +1 @@
1
- declare const _exports: {
2
- 'api-sample': {
3
- hidden: boolean;
4
- dest: ({ dest }: {
5
- dest: any;
6
- }) => any;
7
- validate: ({ name }: {
8
- name: any;
9
- }) => boolean;
10
- execute: ({ dest, name, assetType, options }: {
11
- dest: any;
12
- name: any;
13
- assetType: any;
14
- options: any;
15
- }) => Promise<void>;
16
- };
17
- app: {
18
- hidden: boolean;
19
- dest: ({ name, assetType }: {
20
- name: any;
21
- assetType: any;
22
- }) => any;
23
- execute: ({ options, dest, assetType }: {
24
- options: any;
25
- dest: any;
26
- assetType: any;
27
- }) => Promise<boolean>;
28
- };
29
- function: {
30
- dest: ({ name }: {
31
- name: any;
32
- }) => any;
33
- execute: ({ dest }: {
34
- dest: any;
35
- }) => Promise<void>;
36
- };
37
- module: {
38
- dest: ({ dest }: {
39
- dest: any;
40
- }) => any;
41
- validate: ({ name }: {
42
- name: any;
43
- }) => boolean;
44
- execute: ({ name, dest, getInternalVersion }: {
45
- name: any;
46
- dest: any;
47
- getInternalVersion: any;
48
- }) => Promise<void>;
49
- };
50
- 'react-app': {
51
- dest: ({ name, assetType }: {
52
- name: any;
53
- assetType: any;
54
- }) => any;
55
- execute: ({ options, dest, assetType }: {
56
- options: any;
57
- dest: any;
58
- assetType: any;
59
- }) => Promise<boolean>;
60
- };
61
- template: {
62
- dest: ({ dest }: {
63
- dest: any;
64
- }) => any;
65
- validate: ({ name }: {
66
- name: any;
67
- }) => boolean;
68
- execute: ({ name, dest }: {
69
- name: any;
70
- dest: any;
71
- }) => Promise<{
72
- templateType: any;
73
- }>;
74
- };
75
- 'vue-app': {
76
- dest: ({ name, assetType }: {
77
- name: any;
78
- assetType: any;
79
- }) => any;
80
- execute: ({ options, dest, assetType }: {
81
- options: any;
82
- dest: any;
83
- assetType: any;
84
- }) => Promise<boolean>;
85
- };
86
- 'webpack-serverless': {
87
- dest: ({ name, assetType }: {
88
- name: any;
89
- assetType: any;
90
- }) => any;
91
- execute: ({ options, dest, assetType }: {
92
- options: any;
93
- dest: any;
94
- assetType: any;
95
- }) => Promise<boolean>;
96
- };
97
- 'website-theme': {
98
- dest: ({ name, assetType }: {
99
- name: any;
100
- assetType: any;
101
- }) => any;
102
- execute: ({ dest, assetType, options }: {
103
- dest: any;
104
- assetType: any;
105
- options: any;
106
- }) => Promise<void>;
107
- };
108
- };
109
- export = _exports;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  module.exports = {
3
5
  'api-sample': require('./api-sample'),
4
6
  app: require('./app'),
@@ -1,11 +1 @@
1
- export function dest({ dest }: {
2
- dest: any;
3
- }): any;
4
- export function validate({ name }: {
5
- name: any;
6
- }): boolean;
7
- export function execute({ name, dest, getInternalVersion }: {
8
- name: any;
9
- dest: any;
10
- getInternalVersion: any;
11
- }): Promise<void>;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { logger } = require('@hubspot/local-dev-lib/logger');
3
5
  const { createModule } = require('@hubspot/local-dev-lib/cms/modules');
4
6
  const { i18n } = require('../../lib/lang');
@@ -1,9 +1 @@
1
- export function dest({ name, assetType }: {
2
- name: any;
3
- assetType: any;
4
- }): any;
5
- export function execute({ options, dest, assetType }: {
6
- options: any;
7
- dest: any;
8
- assetType: any;
9
- }): Promise<boolean>;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { cloneGithubRepo } = require('@hubspot/local-dev-lib/github');
3
5
  module.exports = {
4
6
  dest: ({ name, assetType }) => name || assetType,
@@ -1,12 +1 @@
1
- export function dest({ dest }: {
2
- dest: any;
3
- }): any;
4
- export function validate({ name }: {
5
- name: any;
6
- }): boolean;
7
- export function execute({ name, dest }: {
8
- name: any;
9
- dest: any;
10
- }): Promise<{
11
- templateType: any;
12
- }>;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { createTemplate } = require('@hubspot/local-dev-lib/cms/templates');
3
5
  const { logger } = require('@hubspot/local-dev-lib/logger');
4
6
  const { logError } = require('../../lib/errorHandlers/index');
@@ -1,9 +1 @@
1
- export function dest({ name, assetType }: {
2
- name: any;
3
- assetType: any;
4
- }): any;
5
- export function execute({ options, dest, assetType }: {
6
- options: any;
7
- dest: any;
8
- assetType: any;
9
- }): Promise<boolean>;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { cloneGithubRepo } = require('@hubspot/local-dev-lib/github');
3
5
  module.exports = {
4
6
  dest: ({ name, assetType }) => name || assetType,
@@ -1,9 +1 @@
1
- export function dest({ name, assetType }: {
2
- name: any;
3
- assetType: any;
4
- }): any;
5
- export function execute({ options, dest, assetType }: {
6
- options: any;
7
- dest: any;
8
- assetType: any;
9
- }): Promise<boolean>;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { cloneGithubRepo } = require('@hubspot/local-dev-lib/github');
3
5
  module.exports = {
4
6
  dest: ({ name, assetType }) => name || assetType,
@@ -1,9 +1 @@
1
- export function dest({ name, assetType }: {
2
- name: any;
3
- assetType: any;
4
- }): any;
5
- export function execute({ dest, assetType, options }: {
6
- dest: any;
7
- assetType: any;
8
- options: any;
9
- }): Promise<void>;
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
2
4
  const { cloneGithubRepo } = require('@hubspot/local-dev-lib/github');
3
5
  const { getIsInProject } = require('../../lib/projects');
4
6
  const PROJECT_BOILERPLATE_BRANCH = 'cms-boilerplate-developer-projects';