chore: fix shadcn imports again

This commit is contained in:
afiqzudinhadi 2025-06-20 23:12:56 +08:00
parent 614ace11b0
commit 0039016707
23 changed files with 425 additions and 112 deletions

View file

@ -7,7 +7,7 @@ import {
} from "@remix-run/react";
import { Analytics } from "@vercel/analytics/react";
import "@repo/ui/styles/styles.css";
import "@repo/ui/globals.css";
import "@repo/ui/styles/global.css";
export function Layout({ children }: { children: React.ReactNode }) {
return (

View file

@ -1,5 +1,5 @@
import { CounterButton } from "@repo/ui/counter-button/index.mjs";
import { Link } from "@repo/ui/link/index.mjs";
import { CounterButton } from "@repo/ui/counter-button";
import { Link } from "@repo/ui/link";
export default function Index() {
return (

View file

@ -1,11 +1,11 @@
import { Button } from "@repo/ui/components/button.mjs";
import { Button } from "@repo/ui/components/button";
import {
Card,
CardContent,
CardHeader,
CardTitle,
} from "@repo/ui/components/card.mjs";
import { Link } from "@repo/ui/link/index.mjs";
} from "@repo/ui/components/card";
import { Link } from "@repo/ui/link";
export default function Index() {
return (

View file

@ -11,6 +11,7 @@
"lint": "eslint app/ --max-warnings 0"
},
"dependencies": {
"@radix-ui/react-slot": "^1.2.3",
"@remix-run/node": "^2.15.2",
"@remix-run/react": "^2.15.2",
"@remix-run/server-runtime": "^2.15.2",

View file

@ -6,7 +6,8 @@
"module": "ESNext",
"skipLibCheck": true,
"paths": {
"~/*": ["./app/*"]
"~/*": ["./app/*"],
"@repo/ui/*": ["../../packages/ui/src/*"]
},
// Vite takes care of building everything, not tsc.