From f98d1667d2412af4c4773dcd18ee63389993955a Mon Sep 17 00:00:00 2001 From: kagura-agent Date: Sun, 21 Jun 2026 17:38:14 +0800 Subject: [PATCH] fix: include cli/package.json in published npm files The CLI has been broken since v0.17.0 because cli/src/index.ts imports `../package.json` (resolved relative to cli/build/index.js), but cli/package.json was not listed in the root package.json `files` array and therefore excluded from the published npm tarball. This caused ERR_MODULE_NOT_FOUND when users ran the CLI from a directory where `../package.json` exists relative to their CWD (triggering the fs.existsSync fallback path to use the module-relative import). Fixes #1503 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8330ebd8f..6e7a57149 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "client/dist", "server/build", "server/static", - "cli/build" + "cli/build", + "cli/package.json" ], "workspaces": [ "client",