Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] pnpm order #42699 #42861

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/data/base/getting-started/quickstart/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ The `next` tag is used to download the latest <b>pre-release</b>, v6 version. Re
npm install @mui/base@next
```

```bash yarn
yarn add @mui/base@next
```

```bash pnpm
pnpm add @mui/base@next
```

```bash yarn
yarn add @mui/base@next
```

</codeblock>

### Peer dependencies
Expand Down
8 changes: 4 additions & 4 deletions docs/data/joy/customization/right-to-left/right-to-left.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ Install the [`stylis-plugin-rtl`](https://github.com/styled-components/stylis-pl
npm install stylis stylis-plugin-rtl
```

```bash yarn
yarn add stylis stylis-plugin-rtl
```

```bash pnpm
pnpm add stylis stylis-plugin-rtl
```

```bash yarn
yarn add stylis stylis-plugin-rtl
```

</codeblock>

#### With Emotion
Expand Down
16 changes: 8 additions & 8 deletions docs/data/joy/getting-started/installation/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ The `next` tag is used to download the latest <b>pre-release</b>, v6 version. Re
npm install @mui/joy@next @emotion/react @emotion/styled
```

```bash yarn
yarn add @mui/joy@next @emotion/react @emotion/styled
```

```bash pnpm
pnpm add @mui/joy@next @emotion/react @emotion/styled
```

```bash yarn
yarn add @mui/joy@next @emotion/react @emotion/styled
```

</codeblock>

### Peer dependencies
Expand Down Expand Up @@ -55,14 +55,14 @@ Run one of the following commands to add Inter through Fontsource to your Joy U
npm install @fontsource/inter
```

```bash yarn
yarn add @fontsource/inter
```

```bash pnpm
pnpm add @fontsource/inter
```

```bash yarn
yarn add @fontsource/inter
```

</codeblock>

Then you can import it in your entry point like this:
Expand Down
8 changes: 4 additions & 4 deletions docs/data/material/components/about-the-lab/about-the-lab.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ The `next` tag is used to download the latest <b>pre-release</b>, v6 version. Re
npm install @mui/lab@next @mui/material@next
```

```bash yarn
yarn add @mui/lab@next @mui/material@next
```

```bash pnpm
pnpm add @mui/lab@next @mui/material@next
```

```bash yarn
yarn add @mui/lab@next @mui/material@next
```

</codeblock>

Note that the lab has a peer dependency on the Material UI components.
Expand Down
8 changes: 4 additions & 4 deletions docs/data/material/components/icons/icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ The `next` tag is used to download the latest <b>pre-release</b>, v6 version. Re
npm install @mui/icons-material@next
```

```bash yarn
yarn add @mui/icons-material@next
```

```bash pnpm
pnpm add @mui/icons-material@next
```

```bash yarn
yarn add @mui/icons-material@next
```

</codeblock>

These components use the Material UI `SvgIcon` component to render the SVG path for each icon, and so have a peer-dependency on `@mui/material`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ The `next` tag is used to download the latest <b>pre-release</b>, v6 version. Re
npm install @mui/icons-material@next @mui/material@next @emotion/styled @emotion/react
```

```bash yarn
yarn add @mui/icons-material@next @mui/material@next @emotion/styled @emotion/react
```

```bash pnpm
pnpm add @mui/icons-material@next @mui/material@next @emotion/styled @emotion/react
```

```bash yarn
yarn add @mui/icons-material@next @mui/material@next @emotion/styled @emotion/react
```

</codeblock>

See the [Installation](/material-ui/getting-started/installation/) page for additional docs about how to make sure everything is set up correctly.
Expand Down
8 changes: 4 additions & 4 deletions docs/data/material/components/typography/typography.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ Add it to your project via Fontsource, or with the Google Fonts CDN.
npm install @fontsource/roboto
```

```bash yarn
yarn add @fontsource/roboto
```

```bash pnpm
pnpm add @fontsource/roboto
```

```bash yarn
yarn add @fontsource/roboto
```

</codeblock>

Then you can import it in your entry point like this:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ Install the [`stylis-plugin-rtl`](https://github.com/styled-components/stylis-pl
npm install stylis stylis-plugin-rtl
```

```bash yarn
yarn add stylis stylis-plugin-rtl
```

```bash pnpm
pnpm add stylis stylis-plugin-rtl
```

```bash yarn
yarn add stylis stylis-plugin-rtl
```

</codeblock>

#### With Emotion
Expand Down
32 changes: 16 additions & 16 deletions docs/data/material/getting-started/installation/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ The `next` tag is used to download the latest <b>pre-release</b>, v6 version. Re
npm install @mui/material@next @emotion/react @emotion/styled
```

```bash yarn
yarn add @mui/material@next @emotion/react @emotion/styled
```

```bash pnpm
pnpm add @mui/material@next @emotion/react @emotion/styled
```

```bash yarn
yarn add @mui/material@next @emotion/react @emotion/styled
```

</codeblock>

### Peer dependencies
Expand All @@ -52,14 +52,14 @@ If you want to use [styled-components](https://styled-components.com/) instead,
npm install @mui/material @mui/styled-engine-sc styled-components
```

```bash yarn
yarn add @mui/material @mui/styled-engine-sc styled-components
```

```bash pnpm
pnpm add @mui/material @mui/styled-engine-sc styled-components
```

```bash yarn
yarn add @mui/material @mui/styled-engine-sc styled-components
```

</codeblock>

Next, follow the [styled-components how-to guide](/material-ui/integrations/styled-components/) to properly configure your bundler to support `@mui/styled-engine-sc`.
Expand All @@ -83,14 +83,14 @@ Add it to your project via Fontsource, or with the Google Fonts CDN.
npm install @fontsource/roboto
```

```bash yarn
yarn add @fontsource/roboto
```

```bash pnpm
pnpm add @fontsource/roboto
```

```bash yarn
yarn add @fontsource/roboto
```

</codeblock>

Then you can import it in your entry point like this:
Expand Down Expand Up @@ -130,14 +130,14 @@ You can do so with npm, or with the Google Web Fonts CDN.
npm install @mui/icons-material
```

```bash yarn
yarn add @mui/icons-material
```

```bash pnpm
pnpm add @mui/icons-material
```

```bash yarn
yarn add @mui/icons-material
```

</codeblock>

### Google Web Fonts
Expand Down
16 changes: 8 additions & 8 deletions docs/data/material/integrations/nextjs/nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ The `next` tag is used to download the latest <b>pre-release</b>, v6 version. Re
npm install @mui/material-nextjs@next @emotion/cache
```

```bash yarn
yarn add @mui/material-nextjs@next @emotion/cache
```

```bash pnpm
pnpm add @mui/material-nextjs@next @emotion/cache
```

```bash yarn
yarn add @mui/material-nextjs@next @emotion/cache
```

</codeblock>

### Configuration
Expand Down Expand Up @@ -165,14 +165,14 @@ Then, run one of the following commands to install the dependencies:
npm install @mui/material-nextjs @emotion/cache @emotion/server
```

```bash yarn
yarn add @mui/material-nextjs @emotion/cache @emotion/server
```

```bash pnpm
pnpm add @mui/material-nextjs @emotion/cache @emotion/server
```

```bash yarn
yarn add @mui/material-nextjs @emotion/cache @emotion/server
```

</codeblock>

### Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ Use the snippet below to update your project (replace the `<version>` with the o
npm install react@<version> react-dom@<version>
```

```bash yarn
yarn add react@<version> react-dom@<version>
```

```bash pnpm
pnpm add react@<version> react-dom@<version>
```

```bash yarn
yarn add react@<version> react-dom@<version>
```

</codeblock>

### Update TypeScript
Expand Down
16 changes: 8 additions & 8 deletions docs/data/system/getting-started/installation/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ Run one of the following commands to add MUI System to your project:
npm install @mui/system@next @emotion/react @emotion/styled
```

```bash yarn
yarn add @mui/system@next @emotion/react @emotion/styled
```

```bash pnpm
pnpm add @mui/system@next @emotion/react @emotion/styled
```

```bash yarn
yarn add @mui/system@next @emotion/react @emotion/styled
```

</codeblock>

### Peer dependencies
Expand Down Expand Up @@ -53,14 +53,14 @@ The `next` tag is used to download the latest <b>pre-release</b>, v6 version. Re
npm install @mui/system@next @mui/styled-engine-sc@next styled-components
```

```bash yarn
yarn add @mui/system@next @mui/styled-engine-sc@next styled-components
```

```bash pnpm
pnpm add @mui/system@next @mui/styled-engine-sc@next styled-components
```

```bash yarn
yarn add @mui/system@next @mui/styled-engine-sc@next styled-components
```

</codeblock>

:::error
Expand Down
8 changes: 4 additions & 4 deletions docs/pages/blog/introducing-base-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ Give Base UI a try today by running one of the following commands:
npm install @mui/base
```

```bash yarn
yarn add @mui/base
```

```bash pnpm
pnpm add @mui/base
```

```bash yarn
yarn add @mui/base
```

</codeblock>

Check out [the docs](/base-ui/getting-started/), play with the components, and be sure to let us know what you think!
Expand Down
8 changes: 4 additions & 4 deletions docs/pages/experiments/docs/codeblock.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ npm install @mui/material @emotion/react @emotion/styled
# `@emotion/react` and `@emotion/styled` are peer dependencies
```

```bash yarn
yarn add @mui/material @emotion/react @emotion/styled
```bash pnpm
pnpm add @mui/material @emotion/react @emotion/styled
# `@emotion/react` and `@emotion/styled` are peer dependencies
```

```bash pnpm
pnpm add @mui/material @emotion/react @emotion/styled
```bash yarn
yarn add @mui/material @emotion/react @emotion/styled
# `@emotion/react` and `@emotion/styled` are peer dependencies
```

Expand Down
Loading