Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored and astrobot-houston committed Oct 28, 2022
1 parent 641b6d7 commit e35bc26
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions packages/create-astro/src/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit e35bc26

Please sign in to comment.