Skip to content

Commit dec30af

Browse files
committed
docs: remove outdated pnpm deps
Historically, docs instructed users to install this library as a development dependency. This caused the direct dependency to not be installed (as expected) for pnpm. Guidance has changed to install the library as a direct dependency instead. As such, the instructions should be updated.
1 parent 4240f4e commit dec30af

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The Changelog is [available on GitHub](https://github.com/metonym/svelte-highlig
1818
npm i svelte-highlight
1919

2020
# pnpm
21-
pnpm i svelte-highlight highlight.js
21+
pnpm i svelte-highlight
2222

2323
# Bun
2424
bun i svelte-highlight
@@ -27,8 +27,6 @@ bun i svelte-highlight
2727
yarn add svelte-highlight
2828
```
2929

30-
Note that [pnpm](https://github.com/pnpm/pnpm) users must also install `highlight.js`.
31-
3230
## Basic Usage
3331

3432
The `Highlight` component requires two props:

www/components/globals/Index.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</Column>
4949
<Column xlg={6} lg={9}>
5050
<CodeSnippet code="npm i {PKG_NAME}" /><br />
51-
<CodeSnippet code="pnpm i {PKG_NAME} highlight.js" /><br />
51+
<CodeSnippet code="pnpm i {PKG_NAME}" /><br />
5252
<CodeSnippet code="bun add {PKG_NAME}" /><br />
5353
<CodeSnippet code="yarn add {PKG_NAME}" />
5454
</Column>

0 commit comments

Comments
 (0)