From 54d2118ad68a8deaa0baa17c13a8b8b2d6c7da1a Mon Sep 17 00:00:00 2001 From: Maciej Trojan Date: Thu, 24 Jul 2025 11:56:03 +0200 Subject: [PATCH 1/2] BREAKING CHANGE: make lucide-react peer dependency and don't export unnecessary files --- package-lock.json | 9 +++++---- package.json | 2 +- tsup.config.ts | 13 ++----------- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 864710e..91421ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,6 @@ "@radix-ui/react-slot": "^1.1.2", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", - "lucide-react": "^0.474.0", "react-hook-form": "^7.54.2", "tailwind-merge": "^2.6.0", "zod": "^3.24.2" @@ -52,6 +51,7 @@ "vitest": "^3.0.4" }, "peerDependencies": { + "lucide-react": "^0.525.0", "react": "^18 || ^19" } }, @@ -8914,10 +8914,11 @@ "license": "ISC" }, "node_modules/lucide-react": { - "version": "0.474.0", - "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.474.0.tgz", - "integrity": "sha512-CmghgHkh0OJNmxGKWc0qfPJCYHASPMVSyGY8fj3xgk4v84ItqDg64JNKFZn5hC6E0vHi6gxnbCgwhyVB09wQtA==", + "version": "0.525.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.525.0.tgz", + "integrity": "sha512-Tm1txJ2OkymCGkvwoHt33Y2JpN5xucVq1slHcgE6Lk0WjDfjgKWor5CdVER8U6DvcfMwh4M8XxmpTiyzfmfDYQ==", "license": "ISC", + "peer": true, "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } diff --git a/package.json b/package.json index b1e9748..2144fd6 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "author": "Neti", "license": "ISC", "peerDependencies": { + "lucide-react": "^0.525.0", "react": "^18 || ^19" }, "devDependencies": { @@ -70,7 +71,6 @@ "@radix-ui/react-slot": "^1.1.2", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", - "lucide-react": "^0.474.0", "react-hook-form": "^7.54.2", "tailwind-merge": "^2.6.0", "zod": "^3.24.2" diff --git a/tsup.config.ts b/tsup.config.ts index 187202f..a48798e 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -1,22 +1,13 @@ import { defineConfig } from "tsup"; const tsupConfig = defineConfig((options) => ({ - entry: [ - "src/index.ts", - "src/global.css", - "src/**/*.ts", - "src/**/*.tsx", - "!src/**/*.spec.ts", - "!src/**/*.spec.tsx", - "!src/**/*.stories.ts", - "!src/**/*.stories.tsx", - ], + entry: ["src/index.ts", "src/global.css"], dts: true, clean: true, sourcemap: true, minify: !options.watch, treeshake: true, - external: ["react", "react/jsx-runtime"], + external: ["react", "react/jsx-runtime", "lucide-react"], })); export default tsupConfig; From 26ca2efbc6f23f95c17b9fa52ce0142f2c47a98f Mon Sep 17 00:00:00 2001 From: Maciej Trojan Date: Thu, 24 Jul 2025 12:00:10 +0200 Subject: [PATCH 2/2] test: update test snapshots --- src/components/__snapshots__/alert.spec.tsx.snap | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/__snapshots__/alert.spec.tsx.snap b/src/components/__snapshots__/alert.spec.tsx.snap index 3b3cf69..322458a 100644 --- a/src/components/__snapshots__/alert.spec.tsx.snap +++ b/src/components/__snapshots__/alert.spec.tsx.snap @@ -7,6 +7,7 @@ exports[`Button component > renders correctly for variant default 1`] = ` role="alert" >