unis-oa/frontend/pnpm-workspace.yaml

21 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# pnpm 的设置。pnpm 11 起不再读 package.json 里的 pnpm 字段,
# 所有设置都搬到这个文件(pinned 版本见 package.json 的 packageManager)。
# 允许跑安装脚本的依赖:esbuild 要装平台二进制、vue-demi 要挑 Vue 3 的入口,
# 少了这两步 vite build 会挂。pnpm 11 默认谁都不让跑,直接报
# ERR_PNPM_IGNORED_BUILDS 让安装失败(与 .npmrc 里 ignore-scripts=false 一致)。
allowBuilds:
esbuild: true
vue-demi: true
# pnpm 10 及更早版本认这个字段,11 起只认上面的 allowBuilds,两边都留着。
onlyBuiltDependencies:
- esbuild
- vue-demi
# ⚠️ 已知问题:package.json 里的 pnpm.overrides(js-cookie / form-data /
# postcss / dompurify 的安全版本钉)pnpm 11 已不再读取,装依赖时会 WARN 并忽略,
# 现有 lockfile 也是在"忽略 overrides"的状态下生成的,所以那几个钉目前不生效。
# 想恢复就在这里补 overrides: 段,然后 pnpm install --lockfile-only 重生成锁文件
# (会顺带带动一批无关小版本升级,需要重新跑一遍 pnpm build 和 pnpm test:run)。