docs: add Bun install command

This commit is contained in:
Eric Liu 2024-11-03 14:04:40 -08:00
commit 5be3da2722
2 changed files with 18 additions and 9 deletions

View file

@ -28,17 +28,18 @@ Other forms of documentation are auto-generated:
## Installation
Install `carbon-components-svelte` as a development dependency.
```sh
# Yarn
yarn add carbon-components-svelte
# npm
npm i carbon-components-svelte
# pnpm
pnpm i carbon-components-svelte
# Yarn
yarn add carbon-components-svelte
# Bun
bun add carbon-components-svelte
```
## Usage
@ -146,17 +147,20 @@ Import components from `carbon-components-svelte` in the `script` tag of your Sv
[carbon-preprocess-svelte](https://github.com/carbon-design-system/carbon-preprocess-svelte) is a collection of Svelte preprocessors for Carbon.
> [!NOTE]
> Using `carbon-preprocess-svelte` is optional and not a prerequisite for this library.
> Using `carbon-preprocess-svelte` is optional and not a prerequisite for this library. It should be installed as a development dependency.
```sh
# Yarn
yarn add -D carbon-preprocess-svelte
# npm
npm i -D carbon-preprocess-svelte
# pnpm
pnpm i -D carbon-preprocess-svelte
# Yarn
yarn add -D carbon-preprocess-svelte
# Bun
bun add -D carbon-preprocess-svelte
```
### `optimizeImports`