Skip to content

Commit

Permalink
[pigment-css] Make @pigment-css/react as peer dependency (#44498)
Browse files Browse the repository at this point in the history
Co-authored-by: Brijesh Bittu <[email protected]>
  • Loading branch information
brijeshb42 and Brijesh Bittu authored Nov 22, 2024
1 parent a3c15aa commit 5cb317b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ First, install the Material UI wrapper package for Pigment CSS:
<codeblock storageKey="package-manager">

```bash npm
npm install @mui/material-pigment-css
npm install @mui/material-pigment-css @pigment-css/react
```

```bash pnpm
pnpm add @mui/material-pigment-css
pnpm add @mui/material-pigment-css @pigment-css/react
```

```bash yarn
yarn add @mui/material-pigment-css
yarn add @mui/material-pigment-css @pigment-css/react
```

</codeblock>
Expand Down
1 change: 1 addition & 0 deletions examples/material-ui-pigment-css-nextjs-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"@mui/material": "latest",
"@mui/material-pigment-css": "latest",
"@pigment-css/react": "latest",
"next": "latest",
"react": "latest",
"react-dom": "latest"
Expand Down
1 change: 1 addition & 0 deletions examples/material-ui-pigment-css-vite-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"@mui/material": "latest",
"@mui/material-pigment-css": "latest",
"@pigment-css/react": "latest",
"react": "latest",
"react-dom": "latest"
},
Expand Down
6 changes: 4 additions & 2 deletions packages/mui-material-pigment-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@
},
"dependencies": {
"@babel/runtime": "^7.26.0",
"@mui/system": "workspace:*",
"@pigment-css/react": "0.0.27"
"@mui/system": "workspace:*"
},
"peerDependencies": {
"@pigment-css/react": "^0.0.27"
},
"sideEffects": false,
"publishConfig": {
Expand Down

0 comments on commit 5cb317b

Please sign in to comment.