[ci] format

This commit is contained in:
natemoo-re 2022-06-22 21:15:21 +00:00 committed by github-actions[bot]
parent 921d9a27e2
commit a3654a7537

View file

@ -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) {