From fc5cb2a51d7ac07b4d5955af4ccbaac07e3615b7 Mon Sep 17 00:00:00 2001 From: Jutanium Date: Wed, 26 Oct 2022 18:37:12 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/preview/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/astro/src/core/preview/index.ts b/packages/astro/src/core/preview/index.ts index fb09bb630..9bdd302b4 100644 --- a/packages/astro/src/core/preview/index.ts +++ b/packages/astro/src/core/preview/index.ts @@ -33,7 +33,9 @@ export default async function preview( throw new Error(`[preview] No adapter found.`); } if (!settings.adapter.previewEntrypoint) { - throw new Error(`[preview] The ${settings.adapter.name} adapter does not support the preview command.`); + throw new Error( + `[preview] The ${settings.adapter.name} adapter does not support the preview command.` + ); } // We need to use require.resolve() here so that advanced package managers like pnpm // don't treat this as a dependency of Astro itself. This correctly resolves the