Skip to content

Commit c7c0b3f

Browse files
committed
Add yarn scripts
1 parent 47dedb8 commit c7c0b3f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
language: node_js
22
node_js:
33
- node
4-
after_success: 'npm run test:coveralls'
4+
after_success: 'yarn test:coveralls'

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
A small library that can deep diff two JavaScript Objects, including nested structures of arrays and objects.
99

1010
## Installation
11-
```
12-
npm i --save deep-object-diff
13-
```
11+
`yarn add deep-object-diff`
12+
13+
`npm i --save deep-object-diff`
1414

1515
## Functions available:
1616
- [`diff(originalObj, updatedObj)`](#diff)

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
],
1010
"scripts": {
1111
"build": "babel src -d dist --ignore *.spec.js",
12-
"prepublish": "npm run build",
12+
"prepublish": "yarn build",
1313
"test": "jest src/**/*.test.js",
14-
"test:coverage": "jest --coverage",
15-
"test:coveralls": "npm run test:coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
16-
"test:watch": "npm test -- --watch"
14+
"test:coverage": "jest src/**/*.test.js --coverage",
15+
"test:coveralls": "yarn test:coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
16+
"test:watch": "yarn test -- --watch"
1717
},
1818
"author": "Matt Phillips",
1919
"license": "MIT",

0 commit comments

Comments
 (0)