From c7c0b3f3eb48198875298ca81c699c6d92afdbea Mon Sep 17 00:00:00 2001 From: Matt Phillips Date: Tue, 11 Apr 2017 21:19:15 +0100 Subject: [PATCH] Add yarn scripts --- .travis.yml | 2 +- README.md | 6 +++--- package.json | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 685f50e..bc854eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ language: node_js node_js: - node -after_success: 'npm run test:coveralls' +after_success: 'yarn test:coveralls' diff --git a/README.md b/README.md index 906d5a8..563f883 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/package.json b/package.json index cc27e1c..8f78b7e 100644 --- a/package.json +++ b/package.json @@ -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",