From b992cf6e27b8b7c6313358270daf6cbb8ea4a184 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Thu, 27 Aug 2026 15:04:00 -0400 Subject: Move the workerd build allowance out of package.json pnpm 11 no longer reads the "pnpm" field in package.json and warns that it ignored onlyBuiltDependencies, which would leave workerd's build script unapproved and unrun on a fresh install. Its new home is pnpm-workspace.yaml, which pnpm accepts without a packages key for a single-package repo. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01PbJ1wy2dNdjk7LpME4ud3J --- package.json | 5 ----- pnpm-workspace.yaml | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 pnpm-workspace.yaml diff --git a/package.json b/package.json index ce25701..f711cf8 100644 --- a/package.json +++ b/package.json @@ -17,11 +17,6 @@ "hono": "^4.6.14", "htmlparser2": "^10.1.0" }, - "pnpm": { - "onlyBuiltDependencies": [ - "workerd" - ] - }, "devDependencies": { "@types/node": "^22.10.2", "prettier": "^3.8.1", diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..de7e99c --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,4 @@ +allowBuilds: + esbuild: false + sharp: false + workerd: true -- cgit v1.3.1