## [ERR-20260429-014] npm run db:seed 在 ts-node 严格类型检查下挂在 iam-seed.ts

**日期**: 2026-04-29
**类别**: 工具 / ts-node
**严重度**: 低（已知绕行）

### 现象

`cd backend && npm run db:seed` 报：

```
TSError: ⨯ Unable to compile TypeScript:
prisma/seeds/iam-seed.ts(194,36): error TS7006: Parameter 'e' implicitly has an 'any' type.
```

`package.json` 里 `db:seed` 定义为 `ts-node prisma/seed.ts`，没带 `--transpile-only`。在严格 `noImplicitAny` 配置下当场挂掉。

### 解决

显式跑 transpile-only：

```bash
npx ts-node --transpile-only prisma/seed.ts
```

或修 `package.json` 的 `db:seed` 加 `--transpile-only`（更彻底，建议下次顺手改）。

### 关联

`.learnings/2026-04-13-ts-node-transpile-only-deprecation.md` 已经记过 testing/contract-check 类似问题，但 seed 这条还没改。

### Metadata
- Reproducible: yes（任何带 implicit-any 的 seed 文件 + 严格 ts-node 配置）
- Related Files: backend/package.json, backend/prisma/seeds/iam-seed.ts
