Skip to content

Commit

Permalink
Add yarn scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mattphillips committed Apr 11, 2017
1 parent 47dedb8 commit c7c0b3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: node_js
node_js:
- node
after_success: 'npm run test:coveralls'
after_success: 'yarn test:coveralls'
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
A small library that can deep diff two JavaScript Objects, including nested structures of arrays and objects.

## Installation
```
npm i --save deep-object-diff
```
`yarn add deep-object-diff`

`npm i --save deep-object-diff`

## Functions available:
- [`diff(originalObj, updatedObj)`](#diff)
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
],
"scripts": {
"build": "babel src -d dist --ignore *.spec.js",
"prepublish": "npm run build",
"prepublish": "yarn build",
"test": "jest src/**/*.test.js",
"test:coverage": "jest --coverage",
"test:coveralls": "npm run test:coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"test:watch": "npm test -- --watch"
"test:coverage": "jest src/**/*.test.js --coverage",
"test:coveralls": "yarn test:coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"test:watch": "yarn test -- --watch"
},
"author": "Matt Phillips",
"license": "MIT",
Expand Down

0 comments on commit c7c0b3f

Please sign in to comment.