From 2bb2229be6adfa942110d4a94e9b17c4d34d98d8 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 9 Nov 2022 11:22:30 -0500 Subject: [PATCH] `build.ts` needs to link --- scripts/build.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/build.ts b/scripts/build.ts index 81c1e34b..bb2e7d64 100755 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -15,6 +15,7 @@ args: import { usePantry, useFlags, useCellar, useInventory } from "hooks" import { hydrate, install, link } from "prefab" +import { str as pkgstr } from "utils/pkg.ts" import * as ARGV from "./utils/args.ts" import { panic } from "utils/error.ts" import build from "./build/build.ts" @@ -32,8 +33,9 @@ const wet = await hydrate(dry, async (pkg, dry) => { for (const pkg of wet.wet) { if (!await cellar.has(pkg)) { - const version = await inventory.select(pkg) ?? panic() - await install({ project: pkg.project, version }) + const version = await inventory.select(pkg) ?? panic(`${pkgstr(pkg)} not found`) + const installation = await install({ project: pkg.project, version }) + await link(installation) } }