Skip to content

Commit bdd1317

Browse files
committed
cleanup
1 parent 6ff4da8 commit bdd1317

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

commands/project/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export async function handler(args: ArgumentsCamelCase<ProjectDevArgs>) {
117117
authCommand: uiCommandReference('hs auth'),
118118
})
119119
);
120-
process.exit(EXIT_CODES.SUCCESS);
120+
process.exit(EXIT_CODES.ERROR);
121121
}
122122

123123
const defaultAccountIsRecommendedType =

lib/localDev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ import {
5050
import { hubspotAccountNamePrompt } from './prompts/accountNamePrompt';
5151
import {
5252
ProjectConfig,
53-
ProjectDevTargetAccountPromptResponse,
5453
ProjectPollResult,
5554
ProjectSubtask,
5655
} from '../types/Projects';
56+
import { ProjectDevTargetAccountPromptResponse } from '../types/Prompts';
5757
import { FileResult } from 'tmp';
5858
import { Build } from '@hubspot/local-dev-lib/types/Build';
5959

lib/prompts/projectDevTargetAccountPrompt.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ import {
1717
DeveloperTestAccount,
1818
FetchDeveloperTestAccountsResponse,
1919
} from '@hubspot/local-dev-lib/types/developerTestAccounts';
20-
import { PromptChoices } from '../../types/Prompts';
20+
import {
21+
PromptChoices,
22+
ProjectDevTargetAccountPromptResponse,
23+
} from '../../types/Prompts';
2124
import { EXIT_CODES } from '../enums/exitCodes';
22-
import { ProjectDevTargetAccountPromptResponse } from '../../types/Projects';
2325

2426
const i18nKey = 'lib.prompts.projectDevTargetAccountPrompt';
2527

types/Projects.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Build, SubbuildStatus } from '@hubspot/local-dev-lib/types/Build';
22
import { Deploy, SubdeployStatus } from '@hubspot/local-dev-lib/types/Deploy';
3-
import { DeveloperTestAccount } from '@hubspot/local-dev-lib/types/developerTestAccounts';
43

54
export type ProjectTemplate = {
65
name: string;
@@ -128,10 +127,3 @@ export type Component<T = GenericComponentConfig> = {
128127
runnable: boolean;
129128
path: string;
130129
};
131-
132-
export type ProjectDevTargetAccountPromptResponse = {
133-
targetAccountId: number | null;
134-
createNestedAccount: boolean;
135-
parentAccountId?: number | null;
136-
notInConfigAccount?: DeveloperTestAccount | null;
137-
};

types/Prompts.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { DeveloperTestAccount } from '@hubspot/local-dev-lib/types/developerTestAccounts';
2+
13
export type GenericPromptResponse = {
24
// eslint-disable-next-line @typescript-eslint/no-explicit-any
35
[key: string]: any;
@@ -40,3 +42,10 @@ export type PromptConfig<T extends GenericPromptResponse> = {
4042
mask?: string;
4143
filter?: (input: string) => string;
4244
};
45+
46+
export type ProjectDevTargetAccountPromptResponse = {
47+
targetAccountId: number | null;
48+
createNestedAccount: boolean;
49+
parentAccountId?: number | null;
50+
notInConfigAccount?: DeveloperTestAccount | null;
51+
};

0 commit comments

Comments
 (0)