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
chore: remove depcheck #820
base: main
Are you sure you want to change the base?
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @boneskull and the rest of your teammates on Graphite |
An "orphan" is a file that isn't referenced by any other file. I think we can create exceptions for many of these esp in core |
also I neglected to run any tests so I'm not surprised I broke it |
bfb0fd8
to
a70cfdc
Compare
OK, I've got it down to a single warning. ❯ npm run lint:deps
> lavamoat-monorepo@0.0.0 lint:deps
> depcruise -c ./.config/dependency-cruiser.js packages scripts
info optional-deps-used: packages/node/test/prepare.js → node_modules/corepack/package.json
warn no-orphans: packages/tofu/src/referenceTracker.js
✘ 2 dependency violations (0 errors, 1 warnings). 339 modules, 574 dependencies cruised. This orphan file ( |
"2 dependency violations" is rather misleading, since the first one is not a violation at all. |
375697a
to
268aab4
Compare
b932edb
to
4144cbb
Compare
4144cbb
to
94f5e4c
Compare
7ade82f
to
f7e9092
Compare
f7e9092
to
642284e
Compare
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/depcheck@1.4.7 |
bb20afd
to
9bdc0e5
Compare
e51063e
to
25a65b4
Compare
25a65b4
to
7c0dce2
Compare
7c0dce2
to
69d96e4
Compare
9bdc0e5
to
d5d4a3c
Compare
d76bb3c
to
bed4301
Compare
bed4301
to
7ec24e4
Compare
7ec24e4
to
fdc7d1c
Compare
This adds [dependency-cruiser](https://npm.im/dependency-cruiser) to replace [depcheck](https://npm.im/depcheck), which does a _very_ thorough check of all referenced packages throughout the codebase. To support this, I needed to create quite a few exceptions, as we often reference non-existent packages in our tests.
fdc7d1c
to
58e066b
Compare
This adds dependency-cruiser to replace depcheck, which does a very thorough check of all referenced packages throughout the codebase.
After configuration, I went through and fixed the problems it highlighted (of which there were many).
Closes #793
Reviewers
You'll want to look at everything here, as there were numerous problems. Hopefully I split it up in a way that makes sense.