Skip to content

Commit

Permalink
error out when user tries to use NPM to install dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Molly Lloyd committed Feb 18, 2017
1 parent f902254 commit 17c739e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Expand Up @@ -11,7 +11,6 @@ xcode-select --install

Install [node.js](https://nodejs.org/) version 4 or greater
```bash
brew update
brew install node
```
Install [yarn](https://yarnpkg.com/en/)
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -126,6 +126,7 @@
"test-flow": "flow .",
"test-cov": "nyc --require=flow-remove-types/register --reporter=text-summary --reporter=lcov --cache run-s test-unit test-render test-query",
"prepublish": "in-publish && run-s build-dev build-min || not-in-publish",
"preinstall": "node -e 'if(!/yarn\\.js$/.test(process.env.npm_execpath))throw new Error(\"NPM not supported, please use Yarn to install dependencies ($ yarn install).\")'",
"postinstall": "cd src/style-spec && yarn || npm install"
}
}

0 comments on commit 17c739e

Please sign in to comment.