Skip to content

Commit

Permalink
chore: adjust yarn warning [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 9, 2020
1 parent bccae16 commit 4c542d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
3 changes: 2 additions & 1 deletion scripts/checkYarn.js
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 4c542d5

Please sign in to comment.