File tree Expand file tree Collapse file tree 5 files changed +15
-12
lines changed Expand file tree Collapse file tree 5 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export async function handler(args: ArgumentsCamelCase<ProjectDevArgs>) {
117
117
authCommand : uiCommandReference ( 'hs auth' ) ,
118
118
} )
119
119
) ;
120
- process . exit ( EXIT_CODES . SUCCESS ) ;
120
+ process . exit ( EXIT_CODES . ERROR ) ;
121
121
}
122
122
123
123
const defaultAccountIsRecommendedType =
Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ import {
50
50
import { hubspotAccountNamePrompt } from './prompts/accountNamePrompt' ;
51
51
import {
52
52
ProjectConfig ,
53
- ProjectDevTargetAccountPromptResponse ,
54
53
ProjectPollResult ,
55
54
ProjectSubtask ,
56
55
} from '../types/Projects' ;
56
+ import { ProjectDevTargetAccountPromptResponse } from '../types/Prompts' ;
57
57
import { FileResult } from 'tmp' ;
58
58
import { Build } from '@hubspot/local-dev-lib/types/Build' ;
59
59
Original file line number Diff line number Diff line change @@ -17,9 +17,11 @@ import {
17
17
DeveloperTestAccount ,
18
18
FetchDeveloperTestAccountsResponse ,
19
19
} from '@hubspot/local-dev-lib/types/developerTestAccounts' ;
20
- import { PromptChoices } from '../../types/Prompts' ;
20
+ import {
21
+ PromptChoices ,
22
+ ProjectDevTargetAccountPromptResponse ,
23
+ } from '../../types/Prompts' ;
21
24
import { EXIT_CODES } from '../enums/exitCodes' ;
22
- import { ProjectDevTargetAccountPromptResponse } from '../../types/Projects' ;
23
25
24
26
const i18nKey = 'lib.prompts.projectDevTargetAccountPrompt' ;
25
27
Original file line number Diff line number Diff line change 1
1
import { Build , SubbuildStatus } from '@hubspot/local-dev-lib/types/Build' ;
2
2
import { Deploy , SubdeployStatus } from '@hubspot/local-dev-lib/types/Deploy' ;
3
- import { DeveloperTestAccount } from '@hubspot/local-dev-lib/types/developerTestAccounts' ;
4
3
5
4
export type ProjectTemplate = {
6
5
name : string ;
@@ -128,10 +127,3 @@ export type Component<T = GenericComponentConfig> = {
128
127
runnable : boolean ;
129
128
path : string ;
130
129
} ;
131
-
132
- export type ProjectDevTargetAccountPromptResponse = {
133
- targetAccountId : number | null ;
134
- createNestedAccount : boolean ;
135
- parentAccountId ?: number | null ;
136
- notInConfigAccount ?: DeveloperTestAccount | null ;
137
- } ;
Original file line number Diff line number Diff line change
1
+ import { DeveloperTestAccount } from '@hubspot/local-dev-lib/types/developerTestAccounts' ;
2
+
1
3
export type GenericPromptResponse = {
2
4
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3
5
[ key : string ] : any ;
@@ -40,3 +42,10 @@ export type PromptConfig<T extends GenericPromptResponse> = {
40
42
mask ?: string ;
41
43
filter ?: ( input : string ) => string ;
42
44
} ;
45
+
46
+ export type ProjectDevTargetAccountPromptResponse = {
47
+ targetAccountId : number | null ;
48
+ createNestedAccount : boolean ;
49
+ parentAccountId ?: number | null ;
50
+ notInConfigAccount ?: DeveloperTestAccount | null ;
51
+ } ;
You can’t perform that action at this time.
0 commit comments