yarnpkg/yarn

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

Open

#4581 aperta il 28 set 2017

Vedi su GitHub
 (5 commenti) (25 reazioni) (0 assegnatari)JavaScript (2731 fork)batch import
cat-compatibilityhelp wanted

Metriche repository

Star
 (41.514 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor