diff options
author | 2022-10-26 18:37:12 +0000 | |
---|---|---|
committer | 2022-10-26 18:37:12 +0000 | |
commit | fc5cb2a51d7ac07b4d5955af4ccbaac07e3615b7 (patch) | |
tree | 49db19ff0c1d51b6818c7817f2866fcc953649c1 | |
parent | 81310b1dde5517af9dee170a938053022465d207 (diff) | |
download | astro-fc5cb2a51d7ac07b4d5955af4ccbaac07e3615b7.tar.gz astro-fc5cb2a51d7ac07b4d5955af4ccbaac07e3615b7.tar.zst astro-fc5cb2a51d7ac07b4d5955af4ccbaac07e3615b7.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/preview/index.ts | 4 |
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 |