mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
[ci] format
This commit is contained in:
parent
2e4958c8a7
commit
52fba64cb2
6 changed files with 8 additions and 8 deletions
|
@ -11,7 +11,7 @@ import { type ManagedAppToken, getManagedAppTokenOrExit } from '../tokens.js';
|
|||
import { type VitePlugin, getDbDirectoryUrl } from '../utils.js';
|
||||
import { fileURLIntegration } from './file-url.js';
|
||||
import { typegen } from './typegen.js';
|
||||
import { type LateTables, vitePluginDb, type LateSeedFiles } from './vite-plugin-db.js';
|
||||
import { type LateSeedFiles, type LateTables, vitePluginDb } from './vite-plugin-db.js';
|
||||
import { vitePluginInjectEnvTs } from './vite-plugin-inject-env-ts.js';
|
||||
|
||||
function astroDBIntegration(): AstroIntegration {
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import type { AstroConfig, AstroIntegration } from 'astro';
|
||||
import { build as esbuild } from 'esbuild';
|
||||
import { existsSync } from 'node:fs';
|
||||
import { unlink, writeFile } from 'node:fs/promises';
|
||||
import { createRequire } from 'node:module';
|
||||
import { fileURLToPath, pathToFileURL } from 'node:url';
|
||||
import type { AstroConfig, AstroIntegration } from 'astro';
|
||||
import { build as esbuild } from 'esbuild';
|
||||
import { CONFIG_FILE_NAMES, VIRTUAL_MODULE_ID } from './consts.js';
|
||||
import { INTEGRATION_TABLE_CONFLICT_ERROR } from './errors.js';
|
||||
import { errorMap } from './integration/error-map.js';
|
||||
import { getConfigVirtualModContents } from './integration/vite-plugin-db.js';
|
||||
import { dbConfigSchema, type AstroDbIntegration } from './types.js';
|
||||
import { type AstroDbIntegration, dbConfigSchema } from './types.js';
|
||||
import { getDbDirectoryUrl } from './utils.js';
|
||||
|
||||
const isDbIntegration = (integration: AstroIntegration): integration is AstroDbIntegration =>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import type { AstroIntegration } from 'astro';
|
||||
import { SQL } from 'drizzle-orm';
|
||||
import { SQLiteAsyncDialect } from 'drizzle-orm/sqlite-core';
|
||||
import { type ZodTypeDef, z } from 'zod';
|
||||
import { SERIALIZED_SQL_KEY, type SerializedSQL } from '../runtime/types.js';
|
||||
import { errorMap } from './integration/error-map.js';
|
||||
import type { AstroIntegration } from 'astro';
|
||||
|
||||
export type MaybePromise<T> = T | Promise<T>;
|
||||
export type MaybeArray<T> = T | T[];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { defineDB } from 'astro:db';
|
||||
import { menu } from './shared';
|
||||
import { defineDB } from 'astro:db';
|
||||
|
||||
export default defineDB({
|
||||
tables: {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { asDrizzleTable } from '@astrojs/db/utils';
|
||||
import { db } from 'astro:db';
|
||||
import { menu } from './shared';
|
||||
import { db } from 'astro:db';
|
||||
|
||||
export default async function () {
|
||||
const table = asDrizzleTable('menu', menu);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineTable, column } from 'astro:db';
|
||||
import { column, defineTable } from 'astro:db';
|
||||
|
||||
export const menu = defineTable({
|
||||
columns: {
|
||||
|
|
Loading…
Add table
Reference in a new issue