Skip to content

chore: 清理死依赖与残留注释 - #37

Merged
flycran merged 2 commits into
mainfrom
chore/quality-cleanup
Nov 6, 2026
Merged

flycran merged 2 commits into
mainfrom
chore/quality-cleanup

Conversation

@flycran

@flycran flycran commented Nov 6, 2026

Copy link
Copy Markdown
Owner

变更

  • 移除 @dimforge/rapier2d:源码与测试全部从 @dimforge/rapier2d-compat 导入,非 compat 版本没有引用
  • 移除 optionalDependencies 里的 @rollup/rollup-linux-x64-gnu:模板残留,rollup 自身已按平台声明
  • compressionTolerance 注释从“单位 SVG 像素”改为“单位 SVG 坐标单位”,与 README/action.yml 对齐,并补上 CSS 按轴、SMIL 按合成位移的差异
  • 删除 getTextBoundBox 的 @param textPaths / @param param1 / 空 @returns 占位 JSDoc
  • 删除 RenderedContribution 上方未挂到声明的重复注释

验证

  • bun install:lockfile 同步,移除 2 个包
  • bun biome check .、tsc --noEmit 通过
  • bun test:112 pass / 0 fail
  • dist/ 已重建(注释移除后体积略减)

移除源码未引用的 @dimforge/rapier2d(全部使用 -compat)和模板残留的 optionalDependencies;compressionTolerance 单位说明与 README/action.yml 对齐;删除 getTextBoundBox 的占位 JSDoc 与 RenderedContribution 的重复注释。
@flycran
flycran merged commit 8bd2e74 into main Nov 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant