Skip to content

Commit

Permalink
refactor: better exports and removing unused dependencies (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
aversini authored Sep 16, 2024
1 parent 7afd5c9 commit 58808cd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 28 deletions.
12 changes: 2 additions & 10 deletions packages/ui-anchor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build:check": "tsc",
"build:js": "vite build",
Expand Down Expand Up @@ -44,13 +42,7 @@
"@floating-ui/react": "0.26.24",
"@tailwindcss/typography": "0.5.15",
"@versini/ui-button": "workspace:../ui-button",
"@versini/ui-hooks": "workspace:../ui-hooks",
"@versini/ui-icons": "workspace:../ui-icons",
"@versini/ui-private": "workspace:../ui-private",
"clsx": "2.1.1",
"tailwindcss": "3.4.11"
},
"sideEffects": [
"**/*.css"
]
"sideEffects": ["**/*.css"]
}
2 changes: 1 addition & 1 deletion packages/ui-anchor/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { Anchor } from "./Anchor/Anchor";
export * from "./Anchor/Anchor";
11 changes: 6 additions & 5 deletions packages/ui-button/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Button } from "./Button/Button";
import { ButtonIcon } from "./Button/ButtonIcon";
import { ButtonLink } from "./Button/ButtonLink";
import { ButtonSort as ButtonSort_private } from "./private/ButtonSort";
export * from "./Button/Button";
export * from "./Button/ButtonIcon";
export * from "./Button/ButtonLink";
export * from "../common/constants";

export { Button, ButtonIcon, ButtonLink, ButtonSort_private };
import { ButtonSort as ButtonSort_private } from "./private/ButtonSort";
export { ButtonSort_private };
12 changes: 0 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 58808cd

Please sign in to comment.