mirror of
https://github.com/ivabus/pantry
synced 2025-06-08 08:20:32 +03:00
Move all build logic to pantry
This commit is contained in:
parent
f6756ac2d0
commit
610eec4338
1 changed files with 1 additions and 10 deletions
|
@ -17,7 +17,7 @@ import useCellar from "hooks/useCellar.ts"
|
|||
import usePantry from "hooks/usePantry.ts"
|
||||
import useCache from "hooks/useCache.ts"
|
||||
import { lvl1 as link } from "prefab/link.ts"
|
||||
import build from "prefab/build.ts"
|
||||
import build from "./build.prefab.ts"
|
||||
import { Package, parsePackageRequirement, semver } from "types"
|
||||
import useFlags from "hooks/useFlags.ts"
|
||||
import usePlatform from "hooks/usePlatform.ts"
|
||||
|
@ -39,15 +39,6 @@ for (const pkgrq of dry) {
|
|||
if (!version) throw "no-version-found"
|
||||
const pkg = { project: pkgrq.project, version }
|
||||
|
||||
const installation = await cellar.isInstalled(pkg)
|
||||
if (installation) {
|
||||
console.log({ cleaning: installation.path })
|
||||
for await (const [path, {name}] of installation.path.ls()) {
|
||||
if (name == 'src') continue
|
||||
path.rm({ recursive: true })
|
||||
}
|
||||
}
|
||||
|
||||
if (group_it) {
|
||||
console.log("::group::", `${pkg.project}@${pkg.version}`)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue