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); + } } - }); + ); }); }