From b01079d2446a7b9d57f1018cea184a4dfb6a9e5b Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 26 Sep 2022 16:19:31 -0400 Subject: [PATCH] pass project specs out of sort as we got them --- scripts/sort.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/sort.ts b/scripts/sort.ts index 83318b5a..e6dc04f8 100755 --- a/scripts/sort.ts +++ b/scripts/sort.ts @@ -35,14 +35,17 @@ const wet = await hydrate(dry, async (pkg, dry) => { }) if (Deno.env.get("GITHUB_ACTIONS")) { - const massage = (input: PackageRequirement[]) => + const massage = (input: PackageRequirement[], with_raw = false) => input.map(p => { + if (with_raw && p.constraint.raw) { + return `${p.project}@${p.constraint.raw}` + } let out = pkg.str(p) if (/[<>]/.test(out)) out = `"${out}"` return out }).join(" ") - console.log(`::set-output name=pkgs::${massage(wet.dry)}`) + console.log(`::set-output name=pkgs::${massage(wet.dry, true)}`) console.log(`::set-output name=pre-install::${massage(wet.wet)}`) } else { const gas = wet.dry.map(x => pkg.str(x))