Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiebuilds/a6540f42a19d2ac8927f08ce5666309b to your computer and use it in GitHub Desktop.
Save jamiebuilds/a6540f42a19d2ac8927f08ce5666309b to your computer and use it in GitHub Desktop.
When I need to make sure that people are on the same build tool for a project
"scripts": {
"preinstall": "if [[ '$npm_config_user_agent' != *'yarn'* ]]; then echo 'Use Yarn!'; exit 0; fi"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment