diff --git a/packages/astro/src/core/add/index.ts b/packages/astro/src/core/add/index.ts index f0225991203a..f66a2006d0e0 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) {