Skip to content

Commit 13103d9

Browse files
chore(prettier): fix formatting errors
close #234
1 parent bbc7ec9 commit 13103d9

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

packages/cli/src/commands/create/generate-hosting-config.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,13 @@ export async function generateHostingConfig(dest: string, flags: CreateOptions)
2727

2828
if (provider === 'skip') {
2929
prompts.log.message(
30-
`${chalk.blue(
31-
'hosting provider config [skip]'
32-
)} You can configure hosting provider settings manually later.`
30+
`${chalk.blue('hosting provider config [skip]')} You can configure hosting provider settings manually later.`,
3331
);
3432

3533
return provider;
3634
}
3735

38-
prompts.log.info(
39-
`${chalk.blue('Hosting Configuration')} Setting up configuration for ${provider}`
40-
);
36+
prompts.log.info(`${chalk.blue('Hosting Configuration')} Setting up configuration for ${provider}`);
4137

4238
const resolvedDest = path.resolve(dest);
4339

@@ -50,10 +46,7 @@ export async function generateHostingConfig(dest: string, flags: CreateOptions)
5046

5147
switch (provider) {
5248
case 'Vercel': {
53-
config =
54-
typeof vercelConfigRaw === 'string'
55-
? vercelConfigRaw
56-
: JSON.stringify(vercelConfigRaw, null, 2);
49+
config = typeof vercelConfigRaw === 'string' ? vercelConfigRaw : JSON.stringify(vercelConfigRaw, null, 2);
5750
filename = 'vercel.json';
5851
break;
5952
}
@@ -77,6 +70,7 @@ export async function generateHostingConfig(dest: string, flags: CreateOptions)
7770
task: async () => {
7871
const filepath = path.join(resolvedDest, filename);
7972
fs.writeFileSync(filepath, config);
73+
8074
return `Added ${filepath}`;
8175
},
8276
});

0 commit comments

Comments
 (0)