From bc469ab0195f8cbbab900a5a5bdb355d9896e03b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 22 Nov 2025 04:37:16 +0000 Subject: [PATCH] fix: configure pnpm to resolve dependency loading issues - Add shamefully-hoist=true to .npmrc for proper dependency hoisting - Configure pnpm peerDependencyRules to ignore missing sqlite3 - Fixes "Cannot read properties of undefined (reading 'prototype')" error - This ensures chaite's bundled dependencies work correctly with pnpm Co-authored-by: ikechan8370 <21212372+ikechan8370@users.noreply.github.com> --- .npmrc | 3 ++- package.json | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.npmrc b/.npmrc index eafb1b5..43d3f20 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ sharp_libvips_binary_host="https://registry.npmmirror.com/-/binary/sharp-libvips" -nodejieba_binary_host_mirror="https://npm.taobao.org/mirrors/nodejieba" \ No newline at end of file +nodejieba_binary_host_mirror="https://npm.taobao.org/mirrors/nodejieba" +shamefully-hoist=true \ No newline at end of file diff --git a/package.json b/package.json index 7a4e110..e801b3b 100644 --- a/package.json +++ b/package.json @@ -17,5 +17,11 @@ "peerDependencies": { "sqlite3": ">=5.1.6" }, - "pnpm": {} + "pnpm": { + "peerDependencyRules": { + "ignoreMissing": [ + "sqlite3" + ] + } + } }