最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

yarnpkg - How to use Yarn PnP Zero-Installs in CI when platform-specific packages are required? - Stack Overflow

programmeradmin1浏览0评论

I'm changing a project to use Zero-Installs (where .yarn/cache is committed). It works on local because the process is yarn and it builds the .yarn/cache and runs the post-install scripts necessary to create the platform-specific unplugged dependencies.

However, I've found no way to force CI to generate the unplugged dependencies without doing a full yarn install. I've tried yarn install --immutable-cache hoping that it wouldn't make network requests, but it still does. Is there an alternate command that can be run to force all the post-install scripts in deps to run?

The necessity to yarn in CI defeats the entire purpose of zero-installs.

发布评论

评论列表(0)

  1. 暂无评论