From 9afa3f7bbd69dc665fe519709e0ba2bb0c18eab8 Mon Sep 17 00:00:00 2001 From: zenchantlive Date: Sun, 15 Feb 2026 21:22:05 -0800 Subject: [PATCH] fix: add lib/utils.ts for shadcn component imports STORY: shadcn/ui components expect @/lib/utils to exist for the cn() helper. Our project uses src/lib/, but shadcn creates lib/ at root. COLLABORATION: Created lib/utils.ts with the cn() function to satisfy shadcn imports. This coexists with src/lib/utils.ts - both export the same function. VERIFICATION: - npm run typecheck: PASS --- lib/utils.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/utils.ts diff --git a/lib/utils.ts b/lib/utils.ts new file mode 100644 index 0000000..365058c --- /dev/null +++ b/lib/utils.ts @@ -0,0 +1,6 @@ +import { type ClassValue, clsx } from "clsx"; +import { twMerge } from "tailwind-merge"; + +export function cn(...inputs: ClassValue[]) { + return twMerge(clsx(inputs)); +}