gui/electron/libs/pantry.ts
Neil 6ad452331b
flatten repo: remove pnpm workspace + merge workspaces (#688)
* remove unused components

* remove pnpm

* implementation of local dev pantry setup (#689)
2023-06-30 10:33:39 +08:00

8 lines
359 B
TypeScript

import { hooks } from "@teaxyz/lib";
// Fetches the details for a package from the local pantry
export async function getPantryDetails(full_name: string) {
const packageYml = await hooks.usePantry().project(full_name).yaml();
const { ["display-name"]: display_name, entrypoint, provides } = packageYml;
return { display_name, entrypoint, provides };
}