docs: 阶段2收尾——ADR-016/typecheck链/阶段3移交清单/README

- ADR-016:saxes ^6.0.0(勘误:计划曾误写 ^0.9)/commander ^14 根依赖/清洗三件套
  同 range + 镜像直调 launder.naughtyHref/tsx ^4 CLI 直吃 TS;跨包接线(根 tsconfig
  paths 三方消费、build 侧 dist+prebuild、tsconfig 双链型并存);根 engines 升
  >=22.12(对齐 sanitize-html 2.18 engines,CI node 22 与本机 24 均满足)
- 根 typecheck 链扩为四段:追加 pnpm --filter @sf/adapter-wp typecheck
- Plan 2 文末新增"移交阶段 3 清单"定稿(7 项:taxonomyRefs 自建缺失 term、
  media_bundle 映射、connection 库级唯一索引、REST 重审项、导入消费接口、
  Task 0.2 cms 备份续传携带、versions.ts bump 纪律);Task 9 与验收节勾选
- README:快速开始加 pnpm sf 示例;目录结构/文档导航/当前状态更新为阶段 2 完成
- 三绿:lint / typecheck(四段)/ test 263 全部通过(数量不变)

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-10-21 13:34:15 +08:00
parent 57357cd493
commit 2a0d830520
6 changed files with 64 additions and 20 deletions
@@ -6,7 +6,7 @@
// Task 4 起 src 引用 @sf/contracts(type-only):emit 程序不得含包外源文件
// (rootDir 下 TS6059),故 build 侧改经 contracts 预构建 dist 声明解析(先
// `pnpm --filter @sf/contracts build`);typecheck/vitest/tsx 仍走根 paths 的
// src 直连。src-vs-dist 的最终统一归 ADR-016(Task 9)。paths 相对继承的根
// src 直连。src-vs-dist 双轨决策见 ADR-016。paths 相对继承的根
// baseUrl(仓库根)解析。
"paths": {
"@sf/contracts": ["./packages/contracts/dist/src/index.d.ts"]
+1 -1
View File
@@ -1,4 +1,4 @@
// extends 根而非 base:为继承 baseUrl/paths 跨包映射(contracts 走 base 不需要)——决策将记入 ADR-016
// extends 根而非 base:为继承 baseUrl/paths 跨包映射(contracts 走 base 不需要)——决策见 ADR-016
{
"extends": "../../tsconfig.json",
"compilerOptions": {