From f206bde0ff81cccf7bdb2fcd20922789c7d42135 Mon Sep 17 00:00:00 2001 From: matthewp Date: Wed, 30 Aug 2023 14:09:54 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/cli/install-package.ts | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/astro/src/cli/install-package.ts b/packages/astro/src/cli/install-package.ts index e51c46f20f..f6af1d346c 100644 --- a/packages/astro/src/cli/install-package.ts +++ b/packages/astro/src/cli/install-package.ts @@ -43,15 +43,19 @@ export async function getPackage( function tryResolve(packageName: string, cwd: string) { return new Promise((resolve, reject) => { - resolvePackage(packageName, { - basedir: cwd, - }, (err) => { - if(err) { - reject(err); - } else { - resolve(0); + resolvePackage( + packageName, + { + basedir: cwd, + }, + (err) => { + if (err) { + reject(err); + } else { + resolve(0); + } } - }); + ); }); }