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

16 lines (15 loc) 418 B
import fs from "@reliverse/relifso"; const cliConfigTs = ".config/rse.ts"; const cliConfigJsonc = "rse"; export async function hasOnlyRse(directory) { try { const files = await fs.readdir(directory); if (files.length === 0) { return false; } const rseFiles = [cliConfigJsonc, cliConfigTs]; return files.every((file) => rseFiles.includes(file)); } catch (_error) { return false; } }