Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: check for missing production dependencies #1426

Merged
merged 4 commits into from
Jan 6, 2024

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Dec 29, 2023

Runs the dep-check command twice - once omitting dev deps and only checking non-test code, then again but only testing test code.

depcheck is a bit wonky in that it doesn't support whitelisting files to check, only blacklisting so we pass a configurable list of ignore patterns that exclude known test files while checking prod deps and then a list of known prod files while checking dev deps.

Should prevent future bugs similar to ipfs/helia-ipns#159

BREAKING CHANGE: previously undetected missing or unused deps will cause the dep-check command to fail

Runs the dep-check command twice - once omitting dev deps and only
checking non-test code, then again but only testing test code.

Should prevent future bugs similar to ipfs/helia-ipns#159
achingbrain added a commit to libp2p/js-libp2p that referenced this pull request Dec 30, 2023
Remove extra/add missing deps shown by ipfs/aegir#1426

Depends on #2339
@achingbrain achingbrain changed the title fix: check for missing production dependencies fix!: check for missing production dependencies Dec 31, 2023
@achingbrain achingbrain merged commit a66384a into master Jan 6, 2024
21 checks passed
@achingbrain achingbrain deleted the fix/check-for-missing-production-dependencies branch January 6, 2024 08:43
github-actions bot pushed a commit that referenced this pull request Jan 6, 2024
## [42.0.0](v41.3.5...v42.0.0) (2024-01-06)

### ⚠ BREAKING CHANGES

* previously undetected missing or unused deps will cause the dep-check command to fail

### Bug Fixes

* check for missing production dependencies ([#1426](#1426)) ([a66384a](a66384a))
achingbrain added a commit to libp2p/js-libp2p that referenced this pull request Jan 6, 2024
Remove extra/add missing deps shown by ipfs/aegir#1426

Upgrades aegir to 42.x.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant