UNPKG

@reliverse/rse

Version:

@reliverse/rse is your all-in-one companion for bootstrapping and improving any kind of projects (especially web apps built with frameworks like Next.js) — whether you're kicking off something new or upgrading an existing app. It is also a little AI-power

20 lines (19 loc) 656 B
import { relinka } from "@reliverse/relinka"; import { execaCommand } from "execa"; import { lookpath } from "lookpath"; export async function useLanguine(projectPath) { relinka("verbose", `Using: ${projectPath}`); if (!await isLanguineInstalled()) { relinka("info", "Installing the translation addon..."); await execaCommand("bun add -g languine", { stdio: "inherit" }); } relinka( "success", "Please execute the following command: `languine`", "Note: This addon must currently be run manually." ); } async function isLanguineInstalled() { const commandPath = await lookpath("languine"); return commandPath !== void 0; }