From d6bf806f1a5ae74675f6297e3715cf5b7de84e67 Mon Sep 17 00:00:00 2001 From: alphinus_biosdesk Date: Fri, 13 Mar 2026 08:36:53 +0100 Subject: [PATCH] fix: bundle workspace dependencies for npm registry installs Workspace packages (@gsd/pi-agent-core, @gsd/pi-ai, @gsd/pi-coding-agent, @gsd/pi-tui) are included in the published tarball via the "files" field but are not resolvable by Node because npm does not recreate workspace symlinks when installing from the registry. This causes "ERR_MODULE_NOT_FOUND: Cannot find package '@gsd/pi-coding-agent'" on fresh installs. Add workspace packages to both "dependencies" and "bundleDependencies" so npm packs them into node_modules/ within the tarball and installs them correctly. Co-Authored-By: Claude Opus 4.6 --- package-lock.json | 11 +++++++++++ package.json | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/package-lock.json b/package-lock.json index a2edc9226..8c0f55287 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,12 @@ "": { "name": "gsd-pi", "version": "2.7.0", + "bundleDependencies": [ + "@gsd/pi-agent-core", + "@gsd/pi-ai", + "@gsd/pi-coding-agent", + "@gsd/pi-tui" + ], "hasInstallScript": true, "license": "MIT", "workspaces": [ @@ -14,6 +20,10 @@ ], "dependencies": { "@clack/prompts": "^1.1.0", + "@gsd/pi-agent-core": "*", + "@gsd/pi-ai": "*", + "@gsd/pi-coding-agent": "*", + "@gsd/pi-tui": "*", "picocolors": "^1.1.1", "playwright": "^1.58.2" }, @@ -3550,6 +3560,7 @@ "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz", "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", "license": "MIT", + "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/package.json b/package.json index 4b5459ffb..467381192 100644 --- a/package.json +++ b/package.json @@ -53,9 +53,19 @@ }, "dependencies": { "@clack/prompts": "^1.1.0", + "@gsd/pi-agent-core": "*", + "@gsd/pi-ai": "*", + "@gsd/pi-coding-agent": "*", + "@gsd/pi-tui": "*", "picocolors": "^1.1.1", "playwright": "^1.58.2" }, + "bundleDependencies": [ + "@gsd/pi-agent-core", + "@gsd/pi-ai", + "@gsd/pi-coding-agent", + "@gsd/pi-tui" + ], "devDependencies": { "@types/node": "^22.0.0", "typescript": "^5.4.0"