diff options
Diffstat (limited to 'packages/create-astro/src/messages.ts')
-rw-r--r-- | packages/create-astro/src/messages.ts | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/packages/create-astro/src/messages.ts b/packages/create-astro/src/messages.ts index 898c9c728..17fffbed7 100644 --- a/packages/create-astro/src/messages.ts +++ b/packages/create-astro/src/messages.ts @@ -1,7 +1,7 @@ import { exec } from 'node:child_process'; import { stripVTControlCharacters } from 'node:util'; /* eslint no-console: 'off' */ -import { color, say as houston, label, spinner as load } from '@astrojs/cli-kit'; +import { color, say as houston, label } from '@astrojs/cli-kit'; import { align, sleep } from '@astrojs/cli-kit/utils'; import { shell } from './shell.js'; @@ -34,15 +34,6 @@ export async function say(messages: string | string[], { clear = false, hat = '' return houston(messages, { clear, hat, tie, stdout }); } -export async function spinner(args: { - start: string; - end: string; - onError?: (error: any) => void; - while: (...args: any) => Promise<any>; -}) { - await load(args, { stdout }); -} - export const title = (text: string) => align(label(text), 'end', 7) + ' '; export const getName = () => @@ -99,12 +90,6 @@ export const error = async (prefix: string, text: string) => { } }; -export const typescriptByDefault = async () => { - await info(`No worries!`, 'TypeScript is supported in Astro by default,'); - log(`${' '.repeat(9)}${color.dim('but you are free to continue writing JavaScript instead.')}`); - await sleep(1000); -}; - export const nextSteps = async ({ projectDir, devCmd }: { projectDir: string; devCmd: string }) => { const max = stdout.columns; const prefix = max < 80 ? ' ' : ' '.repeat(9); |