yarnpkg/yarn

Yarn does not support setting npm_config env via CLI parameter like NPM

Open

#4,581 建立於 2017年9月28日

在 GitHub 查看
 (5 留言) (25 反應) (0 負責人)JavaScript (2,731 fork)batch import
cat-compatibilityhelp wanted

倉庫指標

Star
 (41,514 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

In NPM's run-scripts, user could set custom NPM env (entry with npm_config prefix) via CLI parameter:

npm run <name> --my_custom

which generate npm_config_my_custom=true for the executed script.

Verifying it easily, I use npm run env with custom parameter:

npm run env --report | grep "my_custom"

This feature is not present with yarn yet. I am wondering if the core team would consider implementing this feature at all.

貢獻者指南