mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
[ci] format
This commit is contained in:
parent
80d87fb3ef
commit
ad01642517
1 changed files with 2 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue