0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00

[ci] format

This commit is contained in:
Nate Moore 2024-01-22 19:38:14 +00:00 committed by astrobot-houston
parent 80d87fb3ef
commit ad01642517

View file

@ -5,12 +5,7 @@ import { getPackage } from '../install-package.js';
export async function db({ flags }: { flags: Arguments }) {
const logger = createLoggerFromFlags(flags);
const getPackageOpts = { skipAsk: flags.yes || flags.y, cwd: flags.root };
const dbPackage = await getPackage<any>(
'@astrojs/db',
logger,
getPackageOpts,
[]
);
const dbPackage = await getPackage<any>('@astrojs/db', logger, getPackageOpts, []);
if (!dbPackage) {
logger.error(
@ -22,6 +17,6 @@ export async function db({ flags }: { flags: Arguments }) {
const { cli } = dbPackage;
const [command, ...args] = flags._.slice(3).map(v => v.toString());
const [command, ...args] = flags._.slice(3).map((v) => v.toString());
await cli(command, args);
}