feat: add blocks showcase and restructure app

This commit is contained in:
Anmoldeep Singh
2026-03-16 17:20:51 +05:30
parent 94628a5143
commit d7d8dbe3ab
108 changed files with 4298 additions and 648 deletions

View File

@@ -0,0 +1,11 @@
import fs from "fs";
import path from "path";
const SRC_DIR = process.cwd();
export function getBlockFileSource(registryPath: string): string {
const filePath = path.join(SRC_DIR, registryPath);
const source = fs.readFileSync(filePath, "utf-8");
return source.replace(/@\/registry\/map/g, "@/components/ui/map");
}