0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
Anton Begehr 2024-12-11 12:24:49 +00:00 committed by astrobot-houston
parent 618de283f5
commit dff04a4b15
2 changed files with 2 additions and 2 deletions

View file

@ -2,6 +2,7 @@ import { existsSync } from 'node:fs';
import type { AstroConfig } from 'astro'; import type { AstroConfig } from 'astro';
import { green } from 'kleur/colors'; import { green } from 'kleur/colors';
import type { Arguments } from 'yargs-parser'; import type { Arguments } from 'yargs-parser';
import { isDbError } from '../../../../runtime/utils.js';
import { import {
EXEC_DEFAULT_EXPORT_ERROR, EXEC_DEFAULT_EXPORT_ERROR,
EXEC_ERROR, EXEC_ERROR,
@ -15,7 +16,6 @@ import {
import { bundleFile, importBundledFile } from '../../../load-file.js'; import { bundleFile, importBundledFile } from '../../../load-file.js';
import type { DBConfig } from '../../../types.js'; import type { DBConfig } from '../../../types.js';
import { getManagedRemoteToken } from '../../../utils.js'; import { getManagedRemoteToken } from '../../../utils.js';
import { isDbError } from '../../../../runtime/utils.js';
export async function cmd({ export async function cmd({
astroConfig, astroConfig,

View file

@ -43,7 +43,7 @@ export class DetailedLibsqlError extends LibsqlError {
} }
export function isDbError(err: unknown): err is LibsqlError { export function isDbError(err: unknown): err is LibsqlError {
return err instanceof LibsqlError || (err instanceof Error && (err as any).libsqlError === true) return err instanceof LibsqlError || (err instanceof Error && (err as any).libsqlError === true);
} }
function slash(path: string) { function slash(path: string) {