mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
618de283f5
commit
dff04a4b15
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue