Skip to content

Commit

Permalink
fix(): Set react and react-dom as peer deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Dec 20, 2023
1 parent 49d69c4 commit 5c1865e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
"lucide-react": "^0.298.0",
"postcss": "^8.4.32",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^2.75.6",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-dts": "^4.2.3",
Expand Down Expand Up @@ -109,5 +107,9 @@
"react-hook-form": "^7.49.2",
"tailwind-merge": "^2.1.0",
"tailwindcss-animate": "^1.0.7"
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
}
2 changes: 2 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import commonjs from "@rollup/plugin-commonjs";
import resolve from "@rollup/plugin-node-resolve";
import typescript from "@rollup/plugin-typescript";
import copy from "rollup-plugin-copy";
import peerDepsExternal from "rollup-plugin-peer-deps-external";
import preserveDirectives from "rollup-plugin-preserve-directives";
import { terser } from "rollup-plugin-terser";

Expand All @@ -16,6 +17,7 @@ export default [
},
],
plugins: [
peerDepsExternal(),
// Locate modules using the Node resolution algorithm
resolve(),
// Convert CommonJS modules to ES6.
Expand Down

0 comments on commit 5c1865e

Please sign in to comment.