From 5f5176b2448a42d4a3d2ab88bd2a9389c574cf0a Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Tue, 2 Apr 2024 20:08:38 +0000 Subject: [PATCH] [ci] format --- packages/db/src/core/integration/vite-plugin-db.ts | 4 ++-- packages/db/test/fixtures/static-remote/db/seed.ts | 4 ++-- .../db/test/fixtures/static-remote/src/pages/index.astro | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/db/src/core/integration/vite-plugin-db.ts b/packages/db/src/core/integration/vite-plugin-db.ts index 9d9d50ca120e..76f37473696f 100644 --- a/packages/db/src/core/integration/vite-plugin-db.ts +++ b/packages/db/src/core/integration/vite-plugin-db.ts @@ -1,10 +1,10 @@ import { fileURLToPath } from 'node:url'; +import type { AstroConfig } from 'astro'; import { normalizePath } from 'vite'; import { SEED_DEV_FILE_NAME } from '../../runtime/queries.js'; import { DB_PATH, RUNTIME_CONFIG_IMPORT, RUNTIME_IMPORT, VIRTUAL_MODULE_ID } from '../consts.js'; import type { DBTables } from '../types.js'; import { type VitePlugin, getDbDirectoryUrl, getRemoteDatabaseUrl } from '../utils.js'; -import type { AstroConfig } from 'astro'; const WITH_SEED_VIRTUAL_MODULE_ID = 'astro:db:seed'; @@ -154,7 +154,7 @@ export function getStudioVirtualModContents({ }) { function appTokenArg() { if (isBuild) { - if(output === 'server') { + if (output === 'server') { // In production build, always read the runtime environment variable. return 'process.env.ASTRO_STUDIO_APP_TOKEN'; } else { diff --git a/packages/db/test/fixtures/static-remote/db/seed.ts b/packages/db/test/fixtures/static-remote/db/seed.ts index 7d88d1ec410a..2c86f02a1004 100644 --- a/packages/db/test/fixtures/static-remote/db/seed.ts +++ b/packages/db/test/fixtures/static-remote/db/seed.ts @@ -3,7 +3,7 @@ import { User, db } from 'astro:db'; export default async function () { await db.insert(User).values([ { - name: 'Houston' - } + name: 'Houston', + }, ]); } diff --git a/packages/db/test/fixtures/static-remote/src/pages/index.astro b/packages/db/test/fixtures/static-remote/src/pages/index.astro index 7956b482cc6b..849e65d18fd7 100644 --- a/packages/db/test/fixtures/static-remote/src/pages/index.astro +++ b/packages/db/test/fixtures/static-remote/src/pages/index.astro @@ -3,6 +3,7 @@ import { User, db } from 'astro:db'; const users = await db.select().from(User); --- + Testing @@ -12,9 +13,7 @@ const users = await db.select().from(User);

Users