From 15515989e7d7b4de0e05663b7b4e23cb91eaeced Mon Sep 17 00:00:00 2001 From: Ben Kimpel Date: Tue, 2 Jul 2019 15:23:12 -0500 Subject: [PATCH] Use yarn link in CI --- .circleci/config.yml | 2 +- package.json | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 364c019..f563769 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,7 +28,7 @@ jobs: command: yarn test - run: yarn lint - + - save_cache: paths: - node_modules diff --git a/package.json b/package.json index fceb8a8..03bf4d6 100644 --- a/package.json +++ b/package.json @@ -18,10 +18,11 @@ "module": "src/index.ts", "scripts": { "pretty": "yarn prettier '**/*.*'", - "lint": "yarn pretty --check && yarn eslint .", - "format": "yarn build && yarn pretty --write && yarn eslint --fix .", + "lint": "yarn build && yarn link-plugin && yarn pretty --check && yarn eslint .", + "format": "yarn build && yarn link-plugin && yarn pretty --write && yarn eslint --fix .", "build": "tsc", - "test": "yarn build && jest" + "test": "yarn build && jest", + "link-plugin": "yarn link && yarn link eslint-plugin-jest-formatting" }, "peerDependencies": { "eslint": "5.x"