From f808a3c05dc53d1ccb2eb9297d9481572deb05c1 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Sun, 29 Mar 2026 02:03:48 -0700 Subject: [PATCH] fix(ui): use extensionless imports + bundler resolution for source-consumed package --- packages/ui/src/index.ts | 30 +++++++++++++++--------------- packages/ui/tsconfig.json | 2 ++ 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts index 21fc0f20..2710e09c 100644 --- a/packages/ui/src/index.ts +++ b/packages/ui/src/index.ts @@ -1,4 +1,4 @@ -export { Button, type ButtonProps } from './components/Button.js'; +export { Button, type ButtonProps } from './components/Button'; export { Toast, ToastProvider, @@ -6,22 +6,22 @@ export { toast, dismissToast, type ToastMessage, -} from './components/Toast.js'; -export { Modal, type ModalProps } from './components/Modal.js'; -export { ConfirmDialog, type ConfirmDialogProps } from './components/ConfirmDialog.js'; -export { Badge, type BadgeProps } from './components/Badge.js'; -export { EmptyState, type EmptyStateProps } from './components/EmptyState.js'; -export { Input, type InputProps } from './components/Input.js'; -export { Textarea, type TextareaProps } from './components/Textarea.js'; -export { Card, CardHeader, CardTitle, CardDescription, type CardProps } from './components/Card.js'; -export { Label, type LabelProps } from './components/Label.js'; -export { Select, type SelectProps } from './components/Select.js'; -export { Separator, type SeparatorProps } from './components/Separator.js'; +} from './components/Toast'; +export { Modal, type ModalProps } from './components/Modal'; +export { ConfirmDialog, type ConfirmDialogProps } from './components/ConfirmDialog'; +export { Badge, type BadgeProps } from './components/Badge'; +export { EmptyState, type EmptyStateProps } from './components/EmptyState'; +export { Input, type InputProps } from './components/Input'; +export { Textarea, type TextareaProps } from './components/Textarea'; +export { Card, CardHeader, CardTitle, CardDescription, type CardProps } from './components/Card'; +export { Label, type LabelProps } from './components/Label'; +export { Select, type SelectProps } from './components/Select'; +export { Separator, type SeparatorProps } from './components/Separator'; export { Sidebar, SidebarItem, type SidebarProps, type SidebarItemProps, -} from './components/Sidebar.js'; -export { StatCard, type StatCardProps } from './components/StatCard.js'; -export { LoadingSpinner, type LoadingSpinnerProps } from './components/LoadingSpinner.js'; +} from './components/Sidebar'; +export { StatCard, type StatCardProps } from './components/StatCard'; +export { LoadingSpinner, type LoadingSpinnerProps } from './components/LoadingSpinner'; diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index b4e95a7c..662ae5e7 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -2,6 +2,8 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "jsx": "react-jsx", + "module": "esnext", + "moduleResolution": "bundler", "outDir": "dist", "rootDir": "src", "declaration": true