Skip to content

Commit

Permalink
ci: add check for unnessary duplicates in package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Dec 4, 2021
1 parent c145cd4 commit fca4520
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 46 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -67,6 +67,12 @@ jobs:
- name: Check that package-lock.json is in sync with package.json
run: git diff --exit-code package-lock.json

- name: Run npm dedupe
run: npm dedupe

- name: Check that package-lock.json doesn't contain unnecessary duplicates
run: git diff --exit-code package-lock.json

- name: Check that package-lock.json doesn't have conflicts
run: npm ls --depth 999

Expand Down
52 changes: 6 additions & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fca4520

Please sign in to comment.