Skip to content

Commit ebd26a7

Browse files
updated fixes on codebility bot
1 parent 5f24119 commit ebd26a7

14 files changed

Lines changed: 5784 additions & 3968 deletions

‎.npmrc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
use-lockfile=true
22
shared-workspace-lockfile=true
3-
3+
public-hoist-pattern[]=*@types/react*

‎package.json‎

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@
88
"@codevs/tsconfig": "workspace:*",
99
"@turbo/gen": "^2.1.1",
1010
"@types/minimatch": "^6.0.0",
11-
"@types/react": "19.1.5",
12-
"@types/react-dom": "19.1.5",
11+
"@types/react": "^18.3.3",
12+
"@types/react-dom": "^18.3.0",
1313
"eslint": "^8.57.0",
1414
"prettier": "^3.3.3",
15-
"react": "19.2.0",
16-
"react-dom": "19.2.0",
15+
"react": "^18.3.1",
16+
"react-dom": "^18.3.1",
17+
"rimraf": "^6.0.1",
1718
"turbo": "^2.1.1",
1819
"typescript": "^5.5.4"
1920
},
2021
"scripts": {
2122
"native": "cd apps/expo && pnpm run start",
2223
"web": "cd apps/next && pnpm run next",
23-
"clean": "rm -rf node_modules",
24+
"clean": "rimraf node_modules .turbo .next dist",
2425
"clean:workspaces": "turbo clean",
2526
"dev": "turbo watch dev",
2627
"codebility": "turbo run dev -F codebility...",
@@ -36,13 +37,15 @@
3637
"resolutions": {
3738
"metro": "~0.80.8",
3839
"metro-resolver": "~0.80.8",
39-
"react": "19.1.0",
40-
"react-dom": "19.1.0"
40+
"react": "^18.3.1",
41+
"react-dom": "^18.3.1"
4142
},
4243
"pnpm": {
4344
"overrides": {
44-
"react": "19.1.0",
45-
"react-dom": "19.1.0",
45+
"@types/react": "18.3.3",
46+
"@types/react-dom": "18.3.0",
47+
"react": "^18.3.1",
48+
"react-dom": "^18.3.1",
4649
"react-signature-canvas": "npm:react-signature-canvas@1.1.0-alpha.1",
4750
"reactjs-qr-code-reader": "npm:reactjs-qr-code-reader@1.0.3",
4851
"react-smooth": "npm:react-smooth@4.0.4",
@@ -55,14 +58,17 @@
5558
],
5659
"packageManager": "pnpm@8.11.0",
5760
"dependencies": {
61+
"@radix-ui/react-alert-dialog": "^1.1.1",
5862
"@supabase/ssr": "^0.5.2",
5963
"@supabase/supabase-js": "^2.55.0",
6064
"@tailwindcss/postcss": "^4.1.16",
6165
"axios": "^1.7.3",
6266
"date-fns": "^3.6.0",
6367
"dotenv": "^17.2.3",
68+
"lucide-react": "^0.427.0",
6469
"next": "^16.0.0",
6570
"postcss": "^8",
71+
"react-day-picker": "8.10.1",
6672
"tailwindcss": "^4.1.16"
6773
}
6874
}

‎packages/ui/errors.txt‎

Lines changed: 976 additions & 0 deletions
Large diffs are not rendered by default.

‎packages/ui/package.json‎

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,39 @@
22
"name": "@codevs/ui",
33
"version": "0.1.0",
44
"private": true,
5+
"type": "module",
6+
"main": "./dist/index.js",
7+
"types": "./dist/index.d.ts",
58
"scripts": {
6-
"clean": "rm -rf dist .turbo node_modules",
7-
"ui-add": "pnpm dlx shadcn-ui add",
8-
"dev": "tsc",
9-
"build": "tsc",
9+
"clean": "rimraf dist .turbo node_modules",
10+
"ui-add": "pnpm dlx shadcn@latest add",
11+
"dev": "tsc --watch",
12+
"build": "tsc --project tsconfig.json",
1013
"format": "prettier --check . --ignore-path ../../.gitignore",
1114
"lint": "eslint .",
1215
"typecheck": "tsc --noEmit"
1316
},
1417
"exports": {
1518
".": {
16-
"types": "./dist/src/index.d.ts",
19+
"types": "./dist/index.d.ts",
20+
"import": "./dist/index.js",
1721
"default": "./src/index.ts"
18-
},
19-
"./*": {
20-
"types": "./dist/src/*.d.ts",
21-
"default": "./src/*.tsx"
22-
},
23-
"./sonner-*": {
24-
"types": "./dist/src/sonner/*.d.ts",
25-
"default": "./src/sonner/*.tsx"
2622
}
2723
},
28-
"author": "",
29-
"license": "ISC",
30-
"description": "",
24+
"files": [
25+
"dist",
26+
"src"
27+
],
3128
"devDependencies": {
3229
"@codevs/eslint-config": "workspace:*",
3330
"@codevs/prettier-config": "workspace:*",
3431
"@codevs/tailwind-config": "workspace:*",
3532
"@codevs/tsconfig": "workspace:*",
36-
"@types/react": "19.1.5",
33+
"@types/node": "^20.14.0",
34+
"@types/react": "^18.3.3",
35+
"@types/react-dom": "^18.3.0",
3736
"prettier": "^3.3.3",
37+
"rimraf": "^6.0.1",
3838
"tailwindcss": "^3.4.10",
3939
"typescript": "^5.5.4"
4040
},
@@ -77,9 +77,9 @@
7777
"embla-carousel-react": "^8.0.0",
7878
"input-otp": "^1.2.4",
7979
"lucide-react": "^0.427.0",
80-
"react": "19.1.0",
80+
"react": "^18.3.1",
8181
"react-day-picker": "8.10.1",
82-
"react-dom": "19.1.0",
82+
"react-dom": "^18.3.1",
8383
"react-hook-form": "^7.56.4",
8484
"react-resizable-panels": "^2.1.2",
8585
"sonner": "^1.5.0",
@@ -88,6 +88,10 @@
8888
"vaul": "^0.9.1",
8989
"zod": "^3.23.8"
9090
},
91+
"peerDependencies": {
92+
"react": "^18.0.0",
93+
"react-dom": "^18.0.0"
94+
},
9195
"eslintConfig": {
9296
"root": true,
9397
"extends": [

‎packages/ui/src/alert-dialog.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as React from "react"
44
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
55

66
import { cn } from "@codevs/ui"
7-
import { buttonVariants } from "@codevs/ui/button"
7+
import { buttonVariants } from "./button"
88

99
const AlertDialog = AlertDialogPrimitive.Root
1010

‎packages/ui/src/calendar.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ChevronLeft, ChevronRight } from "lucide-react"
55
import { DayPicker } from "react-day-picker"
66

77
import { cn } from "@codevs/ui"
8-
import { buttonVariants } from "@codevs/ui/button"
8+
import { buttonVariants } from "./button"
99

1010
export type CalendarProps = React.ComponentProps<typeof DayPicker>
1111

‎packages/ui/src/carousel.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import useEmblaCarousel, {
77
import { ArrowLeft, ArrowRight } from "lucide-react"
88

99
import { cn } from "@codevs/ui"
10-
import { Button } from "@codevs/ui/button"
10+
import { Button } from "./button"
1111

1212
type CarouselApi = UseEmblaCarouselType[1]
1313
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>

‎packages/ui/src/command.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Command as CommandPrimitive } from "cmdk"
66
import { Search } from "lucide-react"
77

88
import { cn } from "@codevs/ui"
9-
import { Dialog, DialogContent } from "@codevs/ui/dialog"
9+
import { Dialog, DialogContent } from "./dialog"
1010

1111
const Command = React.forwardRef<
1212
React.ElementRef<typeof CommandPrimitive>,

‎packages/ui/src/drawer.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import * as React from "react"
44
import { Drawer as DrawerPrimitive } from "vaul"
55

6-
import { cn } from "@codevs/ui"
6+
function cn(...classes: Array<string | false | null | undefined>) {
7+
return classes.filter(Boolean).join(" ")
8+
}
79

810
const Drawer = ({
911
shouldScaleBackground = true,

‎packages/ui/src/pagination.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from "react"
22
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"
33

44
import { cn } from "@codevs/ui"
5-
import { ButtonProps, buttonVariants } from "@codevs/ui/button"
5+
import { ButtonProps, buttonVariants } from "./button"
66

77
const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (
88
<nav

0 commit comments

Comments
 (0)