Skip to content

Commit

Permalink
docs: install zstd dependency explicitly
Browse files Browse the repository at this point in the history
using --force --include=optional flags are excessive
This reverts commit e33fd0e &
1b04f7c.
  • Loading branch information
curbengh committed Jun 11, 2024
1 parent 1c9d91b commit 30c33c0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ jobs:
key: ${{ runner.os }}-npm-cache
restore-keys: ${{ runner.os }}-npm-cache
- name: Install Dependencies
run: npm install --include=optional
run: |
npm install
npm install @mongodb-js/zstd-linux-x64-musl \
@mongodb-js/zstd-win32-x64-msvc \
@mongodb-js/zstd-darwin-arm64
- name: Test
run: npm run test
env:
Expand Down
3 changes: 1 addition & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
package-lock=false
optional=true
force=true
optional=false
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Yet Another Minifier for Hexo. Minify HTML, JS, CSS, SVG, XML and JSON. Compress
## Installation

```bash
$ npm install hexo-yam --save --include=optional --force
$ npm install --save hexo-yam
```

## Options
Expand Down Expand Up @@ -270,7 +270,15 @@ minify:

### Cannot find module '@mongodb-js/zstd-linux-x64-gnu'

`npm install --include=optional --force`
`npm install --save @mongodb-js/zstd-linux-x64-gnu`

- @mongodb-js/zstd-darwin-arm64 (Apple Silicon)
- @mongodb-js/zstd-darwin-x64 (Intel Mac)
- @mongodb-js/zstd-linux-arm64-gnu
- @mongodb-js/zstd-linux-arm64-musl (Alpine)
- @mongodb-js/zstd-linux-x64-gnu
- @mongodb-js/zstd-linux-x64-musl (Alpine)
- @mongodb-js/zstd-win32-x64-msvc

## Globbing

Expand Down

0 comments on commit 30c33c0

Please sign in to comment.