diff --git a/packages/ui/components.json b/packages/ui/components.json index 596dea8..e2ddb2a 100644 --- a/packages/ui/components.json +++ b/packages/ui/components.json @@ -1,11 +1,11 @@ { "$schema": "https://ui.shadcn.com/schema.json", "aliases": { - "components": "@/src/components", - "hooks": "@/src/hooks", - "lib": "@/src/lib", - "ui": "@/src/components/ui", - "utils": "@/src/lib/utils" + "components": "@repo/ui/components", + "hooks": "@repo/ui/hooks", + "lib": "@repo/ui/lib", + "ui": "@repo/ui/components/ui", + "utils": "@repo/ui/lib/utils" }, "rsc": true, "style": "default", diff --git a/packages/ui/src/components/ui/avatar.tsx b/packages/ui/src/components/ui/avatar.tsx index 0801841..ffcf430 100644 --- a/packages/ui/src/components/ui/avatar.tsx +++ b/packages/ui/src/components/ui/avatar.tsx @@ -1,6 +1,6 @@ 'use client'; -import { cn } from '@/src/lib/utils'; import * as AvatarPrimitive from '@radix-ui/react-avatar'; +import { cn } from '@repo/ui/lib/utils'; import * as React from 'react'; const Avatar = React.forwardRef< diff --git a/packages/ui/src/components/ui/button.tsx b/packages/ui/src/components/ui/button.tsx index bac6204..3ed0e17 100644 --- a/packages/ui/src/components/ui/button.tsx +++ b/packages/ui/src/components/ui/button.tsx @@ -1,5 +1,5 @@ -import { cn } from '@/src/lib/utils'; import { Slot } from '@radix-ui/react-slot'; +import { cn } from '@repo/ui/lib/utils'; import { cva, type VariantProps } from 'class-variance-authority'; import * as React from 'react'; diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index 3799017..4edfb2f 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "baseUrl": ".", "paths": { - "@/*": ["./*"] + "@repo/ui/*": ["./src/*"] } }, "include": ["."],