AndersDJohnson / use-yarn

Force users to use yarn instead of npm.
https://andersdjohnson.github.io/use-yarn/
ISC License
50 stars 12 forks source link

Feat: environment variable override #4

Closed jimthedev closed 6 years ago

jimthedev commented 6 years ago

Is it possible to offer an environment variable to override this check? For example I want end-users to use yarn but now.sh installs using both. It isn't a problem but being able to have the check for people who are cloning but to override in specific scenarios would be handy.

AndersDJohnson commented 6 years ago

@jimthedev Good idea. Yes, we can easily support that. Something like NO_USE_YARN=true, or what would you prefer?

jimthedev commented 6 years ago

DISABLE_USE_YARN=true?

AndersDJohnson commented 6 years ago

@jimthedev Sure. I may have time to implement this tonight. Or a PR is welcome of course.