fix: override sharp to 0.33.5 for Cloudflare Pages compatibility
Sharp 0.33.5 has prebuilt binaries for linux-x64 while the older 0.32.x version in @xenova/transformers requires native compilation. Using npm overrides to force 0.33.5 throughout the dependency tree. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
ee13540646
commit
139abcb5f2
4
.npmrc
4
.npmrc
|
|
@ -1,5 +1,3 @@
|
|||
legacy-peer-deps=true
|
||||
strict-peer-dependencies=false
|
||||
auto-install-peers=true
|
||||
# Skip optional dependencies to avoid native compilation issues (e.g., sharp in @xenova/transformers)
|
||||
omit=optional
|
||||
auto-install-peers=true
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -73,7 +73,8 @@
|
|||
"tldraw": "^3.15.4",
|
||||
"use-whisper": "^0.0.1",
|
||||
"webcola": "^3.4.0",
|
||||
"webnative": "^0.36.3"
|
||||
"webnative": "^0.36.3",
|
||||
"sharp": "^0.33.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cloudflare/types": "^6.0.0",
|
||||
|
|
@ -94,6 +95,8 @@
|
|||
"node": ">=20.0.0"
|
||||
},
|
||||
"overrides": {
|
||||
"sharp": "0.33.5"
|
||||
"@xenova/transformers": {
|
||||
"sharp": "0.33.5"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue