]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: adjust yarn warning [ci skip]
authorEvan You <yyx990803@gmail.com>
Tue, 9 Jun 2020 21:39:48 +0000 (17:39 -0400)
committerEvan You <yyx990803@gmail.com>
Tue, 9 Jun 2020 21:39:48 +0000 (17:39 -0400)
.github/contributing.md
scripts/checkYarn.js

index 9f595f28c13aa8030b260294ccd86ac815d0cda5..f890f31c2dddc2a3b550122300800e2ee04b9962 100644 (file)
@@ -39,7 +39,7 @@ Hi! I'm really excited that you are interested in contributing to Vue.js. Before
 
 ## Development Setup
 
-You will need [Node.js](http://nodejs.org) **version 10+**, and [Yarn](https://yarnpkg.com/en/docs/install).
+You will need [Node.js](http://nodejs.org) **version 10+**, and [Yarn 1.x](https://yarnpkg.com/en/docs/install).
 
 After cloning the repo, run:
 
index 19d9f5157fb44e4bd55cd328803034732c749282..26a385e06bd2365cbe3269e6cb7f98077d166bb3 100644 (file)
@@ -1,5 +1,6 @@
 if (!/yarn\.js$/.test(process.env.npm_execpath || '')) {
   console.warn(
-    "\u001b[33mYou don't seem to be using yarn. This could produce unexpected results.\u001b[39m"
+    '\u001b[33mThis repository requires Yarn 1.x for scripts to work properly.\u001b[39m\n'
   )
+  process.exit(1)
 }