Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore(shared): Enable knip dep checking & remove unused deps (#14989)

Ben Bacheme075df89db85
diff --git a/knip.jsonc b/knip.jsonc
index ed2541716e..a0c9939a01 100644
--- a/knip.jsonc
+++ b/knip.jsonc
@@ -15,8 +15,18 @@
"namespaceMembers",
"duplicates",
],
+ "packages/shared/**": [
+ "files",
+ "exports",
+ "nsExports",
+ "types",
+ "nsTypes",
+ "enumMembers",
+ "namespaceMembers",
+ "duplicates",
+ ],
},
- "ignoreWorkspaces": ["worker", "packages/shared"],
+ "ignoreWorkspaces": ["worker"],
"workspaces": {
"web": {
// Include runtime JavaScript modules such as src/env.mjs in dependency analysis.
diff --git a/packages/shared/package.json b/packages/shared/package.json
index 0a49c3c3fa..3464fceac0 100644
--- a/packages/shared/package.json
+++ b/packages/shared/package.json
@@ -100,7 +100,6 @@
"@ai-sdk/google": "^4.0.6",
"@ai-sdk/google-vertex": "^5.0.8",
"@ai-sdk/openai": "^4.0.0",
- "@anthropic-ai/tokenizer": "^0.0.4",
"@anthropic-ai/vertex-sdk": "^0.17.1",
"@aws-sdk/client-cloudwatch": "catalog:",
"@aws-sdk/client-lambda": "catalog:",
@@ -164,12 +163,10 @@
"@types/lodash": "^4.17.24",
"@types/node": "^24.3.0",
"@types/nodemailer": "^8.0.1",
- "@types/pg": "^8.11.10",
"@types/react": "19.2.14",
+ "dotenv-cli": "^7.4.4",
"eslint": "^9.39.2",
- "prettier": "^3.8.3",
"prisma": "^6.19.3",
- "tsc-watch": "^6.2.0",
"tsx": "^4.20.5",
"typescript": "catalog:",
"vitest": "^4.1.8"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index aa1d5a8a8c..a35b7cb6df 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -197,9 +197,6 @@ importers:
'@ai-sdk/openai':
specifier: ^4.0.0
version: 4.0.5([email protected])
- '@anthropic-ai/tokenizer':
- specifier: ^0.0.4
- version: 0.0.4
'@anthropic-ai/vertex-sdk':
specifier: ^0.17.1
version: 0.17.1([email protected])
@@ -387,24 +384,18 @@ importers:
'@types/nodemailer':
specifier: ^8.0.1
version: 8.0.1
- '@types/pg':
- specifier: ^8.11.10
- version: 8.15.6
'@types/react':
specifier: 19.2.14
version: 19.2.14
+ dotenv-cli:
+ specifier: ^7.4.4
+ version: 7.4.4
eslint:
specifier: ^9.39.2
version: 9.39.4([email protected])
- prettier:
- specifier: ^3.8.3
- version: 3.8.3
prisma:
specifier: ^6.19.3
- tsc-watch:
- specifier: ^6.2.0
- version: 6.2.0([email protected])
tsx:
specifier: ^4.20.5
version: 4.20.5