summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2021-04-19 18:41:37 +0000
committerGravatar GitHub Actions <actions@github.com> 2021-04-19 18:41:37 +0000
commit46a6ba609399c0dc1ddcae72207ab313fd9bfd36 (patch)
tree2c90497a4253cccb5be704fd3ad187fe0de93960 /src
parenteb984559a89b4f0b09c42604a18f1198c8d7ecca (diff)
downloadastro-46a6ba609399c0dc1ddcae72207ab313fd9bfd36.tar.gz
astro-46a6ba609399c0dc1ddcae72207ab313fd9bfd36.tar.zst
astro-46a6ba609399c0dc1ddcae72207ab313fd9bfd36.zip
[ci] npm run format
Diffstat (limited to 'src')
-rw-r--r--src/runtime.ts32
1 files changed, 13 insertions, 19 deletions
diff --git a/src/runtime.ts b/src/runtime.ts
index 40fa1dce2..c66f3f114 100644
--- a/src/runtime.ts
+++ b/src/runtime.ts
@@ -302,26 +302,20 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO
export async function createRuntime(astroConfig: AstroConfig, { mode, logging }: RuntimeOptions): Promise<AstroRuntime> {
const resolvePackageUrl = async (pkgName: string) => frontendSnowpack.getUrlForPackage(pkgName);
- const { snowpack: backendSnowpack, snowpackRuntime: backendSnowpackRuntime, snowpackConfig: backendSnowpackConfig } = await createSnowpack(
- astroConfig,
- {
- env: {
- astro: true
- },
- mode,
- resolvePackageUrl
- }
- );
+ const { snowpack: backendSnowpack, snowpackRuntime: backendSnowpackRuntime, snowpackConfig: backendSnowpackConfig } = await createSnowpack(astroConfig, {
+ env: {
+ astro: true,
+ },
+ mode,
+ resolvePackageUrl,
+ });
- const { snowpack: frontendSnowpack, snowpackRuntime: frontendSnowpackRuntime, snowpackConfig: frontendSnowpackConfig } = await createSnowpack(
- astroConfig,
- {
- env: {
- astro: false
- },
- mode
- }
- );
+ const { snowpack: frontendSnowpack, snowpackRuntime: frontendSnowpackRuntime, snowpackConfig: frontendSnowpackConfig } = await createSnowpack(astroConfig, {
+ env: {
+ astro: false,
+ },
+ mode,
+ });
const runtimeConfig: RuntimeConfig = {
astroConfig,