docs: install zstd dependency explicitly

using --force --include=optional flags are excessive
This reverts commit e33fd0ed5d &
1b04f7c8f1.
This commit is contained in:
MDLeom 2024-06-11 11:19:32 +00:00
parent 1c9d91b524
commit 30c33c0ad3
No known key found for this signature in database
GPG Key ID: 06C236E63CBC68AA
3 changed files with 16 additions and 5 deletions

View File

@ -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:

3
.npmrc
View File

@ -1,3 +1,2 @@
package-lock=false
optional=true
force=true
optional=false

View File

@ -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
@ -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