-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Clean workspace dev dependencies #1340
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
base: main
Are you sure you want to change the base?
Clean workspace dev dependencies #1340
Conversation
|
Greptile OverviewGreptile SummaryCleaned up root workspace
Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Root as Root Workspace
participant Core as packages/core
participant Evals as packages/evals
Note over Root: Before: 26 devDependencies
Root->>Core: Move @types/adm-zip, @types/node, adm-zip, chalk, esbuild
Root->>Evals: Move braintrust, string-comparison
Note over Root: Remove 19 unused deps<br/>(langchain, cheerio, express, etc.)
Note over Root: After: 9 devDependencies
Note over Core: +5 devDependencies
Note over Evals: +2 devDependencies
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 files reviewed, no comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 4 files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 issues found across 4 files
Prompt for AI agents (all 3 issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="packages/evals/package.json">
<violation number="1" location="packages/evals/package.json:24">
P1: `braintrust` is required at runtime (imported by the eval runner and AISDK wrapper) but was added as a devDependency, so consumers will miss it and the CLI will fail to start.</violation>
<violation number="2" location="packages/evals/package.json:25">
P1: `chalk` is used by the runtime CLI but was added under devDependencies, so running the CLI outside the workspace will fail due to the missing module.</violation>
<violation number="3" location="packages/evals/package.json:26">
P1: `string-comparison` powers runtime scoring utilities but is declared as a devDependency, so downstream installs will miss it and runtime imports will throw.</violation>
</file>
Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR
| "devDependencies": { | ||
| "braintrust": "^0.4.7", | ||
| "chalk": "^5.4.1", | ||
| "string-comparison": "^1.3.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P1: string-comparison powers runtime scoring utilities but is declared as a devDependency, so downstream installs will miss it and runtime imports will throw.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/evals/package.json, line 26:
<comment>`string-comparison` powers runtime scoring utilities but is declared as a devDependency, so downstream installs will miss it and runtime imports will throw.</comment>
<file context>
@@ -21,6 +21,9 @@
"devDependencies": {
+ "braintrust": "^0.4.7",
+ "chalk": "^5.4.1",
+ "string-comparison": "^1.3.0",
"tsx": "^4.10.5"
}
</file context>
| }, | ||
| "devDependencies": { | ||
| "braintrust": "^0.4.7", | ||
| "chalk": "^5.4.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P1: chalk is used by the runtime CLI but was added under devDependencies, so running the CLI outside the workspace will fail due to the missing module.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/evals/package.json, line 25:
<comment>`chalk` is used by the runtime CLI but was added under devDependencies, so running the CLI outside the workspace will fail due to the missing module.</comment>
<file context>
@@ -21,6 +21,9 @@
},
"devDependencies": {
+ "braintrust": "^0.4.7",
+ "chalk": "^5.4.1",
+ "string-comparison": "^1.3.0",
"tsx": "^4.10.5"
</file context>
| "zod": "^4.1.8" | ||
| }, | ||
| "devDependencies": { | ||
| "braintrust": "^0.4.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P1: braintrust is required at runtime (imported by the eval runner and AISDK wrapper) but was added as a devDependency, so consumers will miss it and the CLI will fail to start.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/evals/package.json, line 24:
<comment>`braintrust` is required at runtime (imported by the eval runner and AISDK wrapper) but was added as a devDependency, so consumers will miss it and the CLI will fail to start.</comment>
<file context>
@@ -21,6 +21,9 @@
"zod": "^4.1.8"
},
"devDependencies": {
+ "braintrust": "^0.4.7",
+ "chalk": "^5.4.1",
+ "string-comparison": "^1.3.0",
</file context>
why
These dev dependencies don't belong here. Some are no longer used, some should go into their respective packages
what changed
Moved dev dependencies to respective packages and removed unused ones
test plan
Summary by cubic
Moved dev dependencies from the workspace root into the packages that use them and removed unused ones. This reduces install bloat and clarifies ownership of tools.
Why:
What:
Test Plan:
Written for commit c0b94c0. Summary will update automatically on new commits.