summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jutanium <Jutanium@users.noreply.github.com> 2022-10-26 18:37:12 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-10-26 18:37:12 +0000
commitfc5cb2a51d7ac07b4d5955af4ccbaac07e3615b7 (patch)
tree49db19ff0c1d51b6818c7817f2866fcc953649c1
parent81310b1dde5517af9dee170a938053022465d207 (diff)
downloadastro-fc5cb2a51d7ac07b4d5955af4ccbaac07e3615b7.tar.gz
astro-fc5cb2a51d7ac07b4d5955af4ccbaac07e3615b7.tar.zst
astro-fc5cb2a51d7ac07b4d5955af4ccbaac07e3615b7.zip
[ci] format
-rw-r--r--packages/astro/src/core/preview/index.ts4
1 files changed, 3 insertions, 1 deletions
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