From 0fa66f275d2dde336322644828fe7ac06599b143 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Sun, 19 Apr 2026 08:34:38 +0300 Subject: [PATCH] feat: add shared/ui and shared barrel exports; add FSD path aliases to tsconfig --- src/shared/index.ts | 2 ++ src/shared/ui/index.ts | 17 +++++++++++++++++ tsconfig.json | 14 +++++++++++++- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 src/shared/index.ts create mode 100644 src/shared/ui/index.ts diff --git a/src/shared/index.ts b/src/shared/index.ts new file mode 100644 index 0000000..1485652 --- /dev/null +++ b/src/shared/index.ts @@ -0,0 +1,2 @@ +export * from './ui' +export * from './lib' diff --git a/src/shared/ui/index.ts b/src/shared/ui/index.ts new file mode 100644 index 0000000..45e7d09 --- /dev/null +++ b/src/shared/ui/index.ts @@ -0,0 +1,17 @@ +export { Badge } from './Badge' +export type { BadgeVariant } from './Badge' + +export { Button } from './Button' +export type { ButtonVariant, ButtonSize } from './Button' + +export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from './Card' +export type { CardBackground } from './Card' + +export { Input, Textarea } from './Input' + +export { Section, Container } from './Section' +export type { SectionBackground, ContainerSize } from './Section' + +export { SectionAccordion } from './SectionAccordion' + +export { TechStackBrick, TechStackGrid } from './TechStack' diff --git a/tsconfig.json b/tsconfig.json index 3a13f90..f19c003 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,7 +19,19 @@ } ], "paths": { - "@/*": ["./*"] + "@/*": ["./*"], + "$shared/*": ["./src/shared/*"], + "$shared": ["./src/shared"], + "$entities/*": ["./src/entities/*"], + "$entities": ["./src/entities"], + "$features/*": ["./src/features/*"], + "$features": ["./src/features"], + "$widgets/*": ["./src/widgets/*"], + "$widgets": ["./src/widgets"], + "$app/*": ["./src/app/*"], + "$app": ["./src/app"], + "$routes/*": ["./src/routes/*"], + "$routes": ["./src/routes"] } }, "include": [