Skip to content

Commit a9ac7c0

Browse files
committed
docs: record link-install dev workaround for profile integration
1 parent acccca9 commit a9ac7c0

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@ pnpm run typecheck
4141
pnpm run build # tsc 产出 lib/
4242
```
4343

44-
本地联调:`dsh plugin --profile dev add <本仓库>/packages/bundle`,patch 文件受 HMR 监听。
44+
本地联调:`link:` 安装不会把被链接包的依赖装进 profile,需要把 bundle 和插件包**都** add 进去(插件包会报 "declares no dsh.bundle — installed as a plain dependency" 警告,符合预期);npm 正式安装无此问题:
45+
46+
```sh
47+
dsh plugin --profile dev add <本仓库>/packages/bundle
48+
dsh plugin --profile dev add <本仓库>/packages/tool-bailian-kb # 仅 link 联调需要
49+
```
50+
51+
patch 文件受 HMR 监听。
4552

4653
## Known Limitations
4754

0 commit comments

Comments
 (0)