Skip to content

Commit

Permalink
Use npm ci instead of install and prune
Browse files Browse the repository at this point in the history
  • Loading branch information
bas080 committed Dec 6, 2021
1 parent 938f061 commit d5dfa71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ We also care about code coverage so we'll use [nyc][8] to generate a coverage
report.

```bash bash -eo pipefail
# Install and prune dependencies
{ npm i && npm prune; } &> /dev/null
# Clean install dependencies.
npm ci &> /dev/null

# Run tests and generate a coverage report
npx nyc npm t | npx tap-nyc
Expand All @@ -597,7 +597,7 @@ npx nyc check-coverage
total: 19
passing: 19
duration: 1.5s
duration: 11.9s
```

Expand Down
4 changes: 2 additions & 2 deletions README.mz
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ We also care about code coverage so we'll use [nyc][8] to generate a coverage
report.

```bash bash -eo pipefail
# Install and prune dependencies
{ npm i && npm prune; } &> /dev/null
# Clean install dependencies.
npm ci &> /dev/null

# Run tests and generate a coverage report
npx nyc npm t | npx tap-nyc
Expand Down

0 comments on commit d5dfa71

Please sign in to comment.