From a3654a7537784a1f379188159705d6aa3576b7b7 Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Wed, 22 Jun 2022 21:15:21 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/add/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/astro/src/core/add/index.ts b/packages/astro/src/core/add/index.ts index f022599120..f66a2006d0 100644 --- a/packages/astro/src/core/add/index.ts +++ b/packages/astro/src/core/add/index.ts @@ -407,7 +407,9 @@ async function getInstallIntegrationsCommand({ .map<[string, string | null][]>((i) => [[i.packageName, null], ...i.dependencies]) .flat(1) .filter((dep, i, arr) => arr.findIndex((d) => d[0] === dep[0]) === i) - .map(([name, version]) => (version === null ? name : `${name}@${version.split(/\s*\|\|\s*/).pop()}`)) + .map(([name, version]) => + version === null ? name : `${name}@${version.split(/\s*\|\|\s*/).pop()}` + ) .sort(); switch (pm.name) {