From ed20fdffa70ab3d1f1de4e5c133ffd49fab073b4 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Fri, 30 Mar 2018 21:23:51 +0200
Subject: [PATCH] refactor: simplify all yarn references in package.json and
 travis.yml

---
 .travis.yml  | 12 ++++++------
 package.json |  4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 664bfba5fe..f61487b6f5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,7 +4,7 @@ notifications:
 language: node_js
 
 node_js:
-  - "8"
+  - "8.11.1"
 
 sudo: false
 
@@ -26,16 +26,16 @@ cache:
     - "node_modules"
 
 script:
-  - yarn run prettier -- --list-different
-  - yarn run lint
-  - yarn run jest --maxWorkers=4
+  - yarn prettier --list-different
+  - yarn lint
+  - yarn jest --maxWorkers=4
 
 after_success:
-  - yarn run codecov
+  - yarn codecov
 
 deploy:
   provider: script
-  script: curl -X POST -d '{}' $NETLIFY_DEPLOY_WEBHOOK && yarn run semantic-release
+  script: curl -X POST -d '{}' $NETLIFY_DEPLOY_WEBHOOK && yarn semantic-release
   skip_cleanup: true
   on:
     branch: master
diff --git a/package.json b/package.json
index 4a0fcebc21..bf780b5412 100644
--- a/package.json
+++ b/package.json
@@ -10,13 +10,13 @@
     "clean-cache": "node bin/clean-cache.js",
     "heroku-push": "git push heroku master",
     "heroku-scheduler": "heroku addons:open scheduler",
-    "jest": "npm run clean-cache && cross-env NODE_ENV=test LOG_LEVEL=fatal jest",
+    "jest": "yarn clean-cache && cross-env NODE_ENV=test LOG_LEVEL=fatal jest",
     "lint-fix": "eslint --fix lib test",
     "lint": "eslint lib test",
     "prettier": "prettier \"**/*.{js,json,md}\" --write",
     "start": "node lib/renovate",
     "test-dirty": "git diff --exit-code",
-    "test": "npm run prettier -- --list-different && npm run lint && npm run jest"
+    "test": "yarn prettier --list-different && yarn lint && yarn jest"
   },
   "repository": {
     "type": "git",
-- 
GitLab