Skip to content

Commit 54d2118

Browse files
committed
BREAKING CHANGE: make lucide-react peer dependency and don't export unnecessary files
1 parent df858ea commit 54d2118

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"author": "Neti",
3131
"license": "ISC",
3232
"peerDependencies": {
33+
"lucide-react": "^0.525.0",
3334
"react": "^18 || ^19"
3435
},
3536
"devDependencies": {
@@ -70,7 +71,6 @@
7071
"@radix-ui/react-slot": "^1.1.2",
7172
"class-variance-authority": "^0.7.1",
7273
"clsx": "^2.1.1",
73-
"lucide-react": "^0.474.0",
7474
"react-hook-form": "^7.54.2",
7575
"tailwind-merge": "^2.6.0",
7676
"zod": "^3.24.2"

tsup.config.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
import { defineConfig } from "tsup";
22

33
const tsupConfig = defineConfig((options) => ({
4-
entry: [
5-
"src/index.ts",
6-
"src/global.css",
7-
"src/**/*.ts",
8-
"src/**/*.tsx",
9-
"!src/**/*.spec.ts",
10-
"!src/**/*.spec.tsx",
11-
"!src/**/*.stories.ts",
12-
"!src/**/*.stories.tsx",
13-
],
4+
entry: ["src/index.ts", "src/global.css"],
145
dts: true,
156
clean: true,
167
sourcemap: true,
178
minify: !options.watch,
189
treeshake: true,
19-
external: ["react", "react/jsx-runtime"],
10+
external: ["react", "react/jsx-runtime", "lucide-react"],
2011
}));
2112

2213
export default tsupConfig;

0 commit comments

Comments
 (0)