Skip to content

Commit 85bc612

Browse files
committed
chore(ci): add dependency checks and reorganize tangled dependencies
This adds a dep check using `knip`. We use `depcheck` in Compass but this is deprecated and knip is recommend instead. This adds a basic configuration and then uses it to untangle some of our dependencies. This includes: - Moving dependencies into dev dependencies, most notably `mongodb`! which we actually only use for types in the code itself at the moment. - Moving certain types, consts into helper utils as they are only relevant there. This seems like a useful feature and allows us to avoid mixing up our scripting or testing code with production.
1 parent 430f427 commit 85bc612

20 files changed

+758
-298
lines changed

knip.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"entry": [
3+
"src/index.ts!",
4+
"src/lib.ts!",
5+
"tests/**/*.ts",
6+
"scripts/**/*.ts",
7+
"eslint-rules/*.js"
8+
],
9+
"ignore": ["tests/integration/fixtures/curl.mjs", "tests/vitest.d.ts"],
10+
"ignoreExportsUsedInFile": true
11+
}

0 commit comments

Comments
 (0)