Files
tuanwei-uniapp/pnpm-workspace.yaml
b2894lxlx a2f973bd91 fix: 补全 pnpm-workspace packages,兼容 pnpm 10 构建脚本白名单
解决 packages field missing or empty,并声明 onlyBuiltDependencies 以便 esbuild 等依赖可执行安装脚本。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-24 14:55:11 +08:00

16 lines
675 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 单包工程也需要 packages,否则 pnpm 报 packages field missing or empty
packages:
- '.'
# pnpm 12 起,依赖的构建脚本默认「不予执行」,且 strictDepBuilds 默认为 true,
# 会把安装判成非零退出(ERR_PNPM_IGNORED_BUILDS)。这里显式复核这 4 个包。
# 说明(均为 uni-app 官方依赖树的传递依赖):
# esbuild —— vite 的打包器,postinstall 校验平台二进制
# @parcel/watcher—— 原生文件监听(dev watch 用)
# core-js / core-js-pure —— 仅打印赞助信息,无构建产物
allowBuilds:
esbuild: true
'@parcel/watcher': true
core-js: true
core-js-pure: true