mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
build.ts
needs to link
This commit is contained in:
parent
e3ca0b4f31
commit
2bb2229be6
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue