diff options
author | 2022-10-28 17:26:22 +0000 | |
---|---|---|
committer | 2022-10-28 17:26:22 +0000 | |
commit | e35bc26186e77f125f649e627c02112caadf7289 (patch) | |
tree | eabdcf4413bcf7a7f258b8aa7ad0ef157d68b22a /packages/create-astro/src | |
parent | 641b6d7d583886fde9529f296846d7e0a50e8624 (diff) | |
download | astro-e35bc26186e77f125f649e627c02112caadf7289.tar.gz astro-e35bc26186e77f125f649e627c02112caadf7289.tar.zst astro-e35bc26186e77f125f649e627c02112caadf7289.zip |
[ci] format
Diffstat (limited to 'packages/create-astro/src')
-rw-r--r-- | packages/create-astro/src/index.ts | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index dcd5c98ab..16ac7e402 100644 --- a/packages/create-astro/src/index.ts +++ b/packages/create-astro/src/index.ts @@ -1,7 +1,6 @@ /* eslint no-console: 'off' */ import { color, generateProjectName, label, say } from '@astrojs/cli-kit'; -import { forceUnicode } from '@astrojs/cli-kit/utils'; -import { random } from '@astrojs/cli-kit/utils'; +import { forceUnicode, random } from '@astrojs/cli-kit/utils'; import { assign, parse, stringify } from 'comment-json'; import { execa, execaCommand } from 'execa'; import fs from 'fs'; @@ -30,7 +29,7 @@ import { TEMPLATES } from './templates.js'; // broke our arg parser, since `--` is a special kind of flag. Filtering for `--` here // fixes the issue so that create-astro now works on all npm version. const cleanArgv = process.argv.filter((arg) => arg !== '--'); -const args = yargs(cleanArgv, { boolean: ['fancy']}); +const args = yargs(cleanArgv, { boolean: ['fancy'] }); prompts.override(args); // Enable full unicode support if the `--fancy` flag is passed @@ -96,16 +95,19 @@ export async function main() { logger.debug('Verbose logging turned on'); if (!args.skipHouston) { - await say([ + await say( [ - 'Welcome', - 'to', - label('astro', color.bgGreen, color.black), - color.green(`v${version}`) + ',', - `${username}!`, + [ + 'Welcome', + 'to', + label('astro', color.bgGreen, color.black), + color.green(`v${version}`) + ',', + `${username}!`, + ], + random(welcome), ], - random(welcome), - ], { hat: args.fancy ? '🎩' : undefined }); + { hat: args.fancy ? '🎩' : undefined } + ); await banner(version); } |