diff --git a/packages/db/src/core/cli/commands/execute/index.ts b/packages/db/src/core/cli/commands/execute/index.ts index 66ecdd774b..0537362913 100644 --- a/packages/db/src/core/cli/commands/execute/index.ts +++ b/packages/db/src/core/cli/commands/execute/index.ts @@ -2,6 +2,7 @@ import { existsSync } from 'node:fs'; import type { AstroConfig } from 'astro'; import { green } from 'kleur/colors'; import type { Arguments } from 'yargs-parser'; +import { isDbError } from '../../../../runtime/utils.js'; import { EXEC_DEFAULT_EXPORT_ERROR, EXEC_ERROR, @@ -15,7 +16,6 @@ import { import { bundleFile, importBundledFile } from '../../../load-file.js'; import type { DBConfig } from '../../../types.js'; import { getManagedRemoteToken } from '../../../utils.js'; -import { isDbError } from '../../../../runtime/utils.js'; export async function cmd({ astroConfig, diff --git a/packages/db/src/runtime/utils.ts b/packages/db/src/runtime/utils.ts index 74201957ff..9a979b0627 100644 --- a/packages/db/src/runtime/utils.ts +++ b/packages/db/src/runtime/utils.ts @@ -43,7 +43,7 @@ export class DetailedLibsqlError extends 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) {