Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix runtime logger dependencies for published CLI (#1198)

Jamie Chicago211a54b24724
diff --git a/__tests__/package-library.test.ts b/__tests__/package-library.test.ts
index c006aa1451..fd9b4640de 100644
--- a/__tests__/package-library.test.ts
+++ b/__tests__/package-library.test.ts
@@ -74,6 +74,17 @@ describe("package library metadata", () => {
expect(violations).toEqual([]);
});
+ it("ships runtime logger dependencies for the published CLI", () => {
+ expect(packageJson.dependencies).toMatchObject({
+ winston: "^3.19.0",
+ "winston-daily-rotate-file": "^5.0.0",
+ });
+ expect(packageJson.devDependencies?.winston).toBeUndefined();
+ expect(
+ packageJson.devDependencies?.["winston-daily-rotate-file"],
+ ).toBeUndefined();
+ });
+
it("uses local dev commands without Docker", () => {
expect(packageJson.scripts.dev).toBe(
"node --env-file-if-exists=.env scripts/dev-with-automation.mjs",
diff --git a/package-lock.json b/package-lock.json
index c5b7d29474..109049eaff 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -54,6 +54,8 @@
"unist-util-visit": "5.1.0",
"uuid": "14.0.0",
"vite": "8.0.10",
+ "winston": "^3.19.0",
+ "winston-daily-rotate-file": "^5.0.0",
"zustand": "5.0.12"
},
"bin": {
@@ -101,9 +103,7 @@
"tailwindcss": "4.2.4",
"typescript": "6.0.3",
"vite-plugin-svgr": "5.2.0",
- "vitest": "4.1.5",
- "winston": "^3.19.0",
- "winston-daily-rotate-file": "^5.0.0"
+ "vitest": "4.1.5"
},
"engines": {
"node": ">=22.12.0"
diff --git a/package.json b/package.json
index f57b673767..dd9ce71ba0 100644
--- a/package.json
+++ b/package.json
@@ -65,6 +65,8 @@
"unist-util-visit": "5.1.0",
"uuid": "14.0.0",
"vite": "8.0.10",
+ "winston": "^3.19.0",
+ "winston-daily-rotate-file": "^5.0.0",
"zustand": "5.0.12"
},
"scripts": {
@@ -153,9 +155,7 @@
"tailwindcss": "4.2.4",
"typescript": "6.0.3",
"vite-plugin-svgr": "5.2.0",
- "vitest": "4.1.5",
- "winston": "^3.19.0",
- "winston-daily-rotate-file": "^5.0.0"
+ "vitest": "4.1.5"
},
"packageManager": "[email protected]",
"volta": {