[ci] format

This commit is contained in:
ematipico 2023-09-25 13:47:26 +00:00 committed by astrobot-houston
parent 008f7647c4
commit 306649c5a4
2 changed files with 8 additions and 9 deletions

View file

@ -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') {

View file

@ -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';