开源贡献
本地调试包
有两种方案可以链接到本地包
第一种使用 dir 路径符号链接
# bytedance @ C02D36ZHMD6R in ~/Project/myProject/taro3.5.7 on git:master x [19:40:29]
$ pnpm link "/Users/bytedance/Project/myProject/taro/packages/taro-tt"
dependencies:
+ @tarojs/plugin-platform-tt 3.5.7 <- ../taro/packages/taro-tt
第二种 global 硬链接 先把包链接到全局再从项目里链接
# bytedance @ C02D36ZHMD6R in ~/Project/myProject/taro/packages/taro-cli on git:next x [16:19:40]
$ pnpm link --global
WARN undefined has no binaries
/Users/bytedance/Library/pnpm/global/5:
+ @tarojs/cli 3.5.7 <- ../../../../Project/myProject/taro/packages/taro-cli
Progress: resolved 1, reused 1, downloaded 0, added 0, done
# bytedance @ C02D36ZHMD6R in ~/Project/myProject/taro3.5.7 on git:master x [16:42:21]
$ pnpm link --global "@tarojs/cli"
/Users/bytedance/Library/pnpm/global/5:
+ @tarojs/cli 3.5.7 <- ../../../../Project/myProject/taro/packages/taro-cli
/Users/bytedance/Library/pnpm/global/5:
- @tarojs/cli 3.5.7