From 306649c5a4321e1558a444d25862bb62fb53797b Mon Sep 17 00:00:00 2001 From: ematipico Date: Mon, 25 Sep 2023 13:47:26 +0000 Subject: [PATCH] [ci] format --- packages/integrations/deno/src/index.ts | 1 - .../netlify/src/integration-functions.ts | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/integrations/deno/src/index.ts b/packages/integrations/deno/src/index.ts index 9740e3027..7f417a264 100644 --- a/packages/integrations/deno/src/index.ts +++ b/packages/integrations/deno/src/index.ts @@ -130,7 +130,6 @@ export default function createIntegration(args?: Options): AstroIntegration { `[@astrojs/deno] Otherwise, this adapter is not required to deploy a static site to Deno.` ); } - }, 'astro:build:setup': ({ vite, target }) => { if (target === 'server') { diff --git a/packages/integrations/netlify/src/integration-functions.ts b/packages/integrations/netlify/src/integration-functions.ts index 81aa8ff2f..33e7bade3 100644 --- a/packages/integrations/netlify/src/integration-functions.ts +++ b/packages/integrations/netlify/src/integration-functions.ts @@ -1,6 +1,6 @@ import type { AstroAdapter, AstroConfig, AstroIntegration, RouteData } from 'astro'; -import { extname, join } from 'node:path'; import { writeFile } from 'node:fs/promises'; +import { extname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; import { generateEdgeMiddleware } from './middleware.js'; import type { Args } from './netlify-functions.js'; @@ -87,13 +87,13 @@ function netlifyFunctions({ }, 'astro:build:done': async ({ routes, dir }) => { const functionsConfig = { - version: 1, - config: { - nodeModuleFormat: "esm" - } - } - const functionsConfigPath = join(fileURLToPath(_config.build.server), "entry.json") - await writeFile(functionsConfigPath, JSON.stringify(functionsConfig)) + version: 1, + config: { + nodeModuleFormat: 'esm', + }, + }; + const functionsConfigPath = join(fileURLToPath(_config.build.server), 'entry.json'); + await writeFile(functionsConfigPath, JSON.stringify(functionsConfig)); const type = builders ? 'builders' : 'functions'; const kind = type ?? 'functions';