Skip to content

Commit db7b88f

Browse files
committed
made it much easier to import the components by adding them as exports in the package json
1 parent b1609b6 commit db7b88f

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

.changeset/beige-taxis-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@lambdacurry/forms": minor
3+
---
4+
5+
Made it easier to import components

packages/components/package.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,32 @@
33
"version": "0.0.2",
44
"main": "./index.ts",
55
"types": "./index.ts",
6+
"exports": {
7+
"./button": "./src/ui/button.tsx",
8+
"./calendar": "./src/ui/calendar.tsx",
9+
"./checkbox": "./src/ui/checkbox.tsx",
10+
"./date-picker": "./src/ui/date-picker.tsx",
11+
"./dropdown-menu-select": "./src/ui/dropdown-menu-select.tsx",
12+
"./dropdown-menu": "./src/ui/dropdown-menu.tsx",
13+
"./form": "./src/ui/form.tsx",
14+
"./input-otp": "./src/ui/input-otp.tsx",
15+
"./input": "./src/ui/input.tsx",
16+
"./label": "./src/ui/label.tsx",
17+
"./popover": "./src/ui/popover.tsx",
18+
"./radio-group": "./src/ui/radio-group.tsx",
19+
"./switch": "./src/ui/switch.tsx",
20+
"./text-field": "./src/ui/text-field.tsx",
21+
"./remix-checkbox": "./src/ui/remix/checkbox.tsx",
22+
"./remix-date-picker": "./src/ui/remix/date-picker.tsx",
23+
"./remix-dropdown-menu-select": "./src/ui/remix/dropdown-menu-select.tsx",
24+
"./remix-form": "./src/ui/remix/form.tsx",
25+
"./remix-input-otp": "./src/ui/remix/input-otp.tsx",
26+
"./remix-input": "./src/ui/remix/input.tsx",
27+
"./remix-label": "./src/ui/remix/label.tsx",
28+
"./remix-radio-group": "./src/ui/remix/radio-group.tsx",
29+
"./remix-switch": "./src/ui/remix/switch.tsx",
30+
"./remix-text-field": "./src/ui/remix/text-field.tsx"
31+
},
632
"scripts": {
733
"lint": "biome check .",
834
"lint:fix": "biome check --apply .",

0 commit comments

Comments
 (0)