Files
eip4-web/package.json
zhengwr a2aeeba296 fix(modeler): T1.1 评审收口——bpmn-moddle 显式devDep+$attrs断言+类型声明
评审 I-1 / M-1 / TS7016 收口(承接 8fdfe68):
- I-1 幻影依赖:devDependencies 显式声明 bpmn-moddle ^8.1.0(npm dedupe 到与
  bpmn-js 同一份 8.1.0),保真测试不再依赖传递提升、与 Modeler 运行时同版本。
- M-1 断言意图纠偏:fidelity.test.ts 原注释「未声明时 .get() 返 undefined」实证有误——
  moddle .get() 对未声明属性会回落 $attrs 返原值(已实证:flowable:assignee 未声明时
  .get() 返 "X")。改注释 + 增 `expect($attrs?.['activiti:candidateUsers']).toBeUndefined()`
  直接断言值未落 lax $attrs(=真 typed 化,声明属性确不在 $attrs)。
- TS7016:新增 src/modeler/moddle/bpmn-moddle.d.ts(最小 ambient 声明)消编辑器诊断。

验证:npx vitest run src/modeler 12/12 绿;npx tsc -b 干净(exit 0)。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 09:47:02 +08:00

45 lines
1.2 KiB
JSON

{
"name": "eip4-web",
"private": true,
"version": "0.1.0",
"type": "module",
"description": "EIP4 前端渲染宿主——amis 6.13.0 本地化 SDK 渲染 + 登录/JWT + 待办聚合",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview",
"test": "vitest run"
},
"dependencies": {
"@bpmn-io/properties-panel": "^3.47.0",
"axios": "1.7.9",
"bpmn-js": "^17.11.1",
"bpmn-js-properties-panel": "^5.60.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-router-dom": "6.28.0"
},
"devDependencies": {
"@playwright/test": "^1.60.0",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/node": "22.10.2",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@vitejs/plugin-react": "4.3.4",
"amis": "^6.13.0",
"amis-core": "^6.13.0",
"amis-editor": "^6.13.0",
"amis-formula": "^6.13.0",
"amis-theme-editor-helper": "^6.12.0-ab.1",
"amis-ui": "^6.13.0",
"bpmn-moddle": "^8.1.0",
"i18n-runtime": "^1.0.13",
"jsdom": "^29.1.1",
"typescript": "5.6.3",
"vite": "5.4.11",
"vitest": "^2.1.9"
}
}