Skip to content

Commit a09e906

Browse files
committed
Update README and package.json to use yarn instead of npm
1 parent cef80fc commit a09e906

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,32 +162,32 @@ Our mutation type then creates the `introduceShip` field using the return value
162162
After cloning this repo, ensure dependencies are installed by running:
163163

164164
```sh
165-
npm install
165+
yarn install
166166
```
167167

168168
This library is written in ES6 and uses [Babel](http://babeljs.io/) for ES5 transpilation and [Flow](http://flowtype.org/) for type safety. Widely consumable JavaScript can be produced by running:
169169

170170
```sh
171-
npm run build
171+
yarn build
172172
```
173173

174-
Once `npm run build` has run, you may `import` or `require()` directly from node.
174+
Once `yarn build` has run, you may `import` or `require()` directly from node.
175175

176176
After developing, the full test suite can be evaluated by running:
177177

178178
```sh
179-
npm test
179+
yarn test
180180
```
181181

182182
While actively developing, we recommend running
183183

184184
```sh
185-
npm run watch
185+
yarn watch
186186
```
187187

188188
in a terminal. This will watch the file system run lint, tests, and type checking automatically whenever you save a js file.
189189

190-
To lint the JS files and run type interface checks run `npm run lint`.
190+
To lint the JS files and run type interface checks run `yarn lint`.
191191

192192
## License
193193

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"scripts": {
3030
"prepublish": "./resources/prepublish.sh",
31-
"test": "npm run lint && npm run check && npm run testonly",
31+
"test": "yarn lint && yarn check && yarn testonly",
3232
"testonly": "babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha",
3333
"lint": "eslint src",
3434
"check": "flow check",

0 commit comments

Comments
 (0)