fix(ci): npm install 加 --legacy-peer-deps,规避 arborist 在 vitest peer 上的 edgesOut 崩溃
Build and Publish Commercial Web / build (push) Successful in 5m3s
Build and Publish Commercial Web / build (push) Successful in 5m3s
This commit is contained in:
@@ -123,12 +123,14 @@ jobs:
|
||||
# 故不使用 pnpm 工作区——core 是独立包,npm install 即可构建
|
||||
npm config set registry https://registry.npmmirror.com || true
|
||||
# @lunar/core:web-commercial 的 file: 依赖与 vite/tsconfig 别名目标
|
||||
# --legacy-peer-deps:npm10 的 arborist 在 vitest 可选 peer 上会
|
||||
# edgesOut 崩溃,跳过 peer 解析即可(构建不需要)
|
||||
cd web/packages/core
|
||||
npm install
|
||||
npm install --legacy-peer-deps
|
||||
npx tsup
|
||||
test -f dist/index.js
|
||||
cd ../../../web-commercial
|
||||
npm install
|
||||
npm install --legacy-peer-deps
|
||||
npx tsc -b
|
||||
npx vite build
|
||||
test -f dist/index.html
|
||||
|
||||
Reference in New Issue
Block a user