From 6f01e2a4481d7a8479f847d8980346913a0e6c6b Mon Sep 17 00:00:00 2001 From: Sam Tsai Date: Mon, 8 Jun 2020 09:52:11 -0400 Subject: [PATCH 1/2] Add `pretty-format` as devDep Typings use `import {OptionsReceived as PrettyFormatOptions} from 'pretty-format'` Fix #694 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 9c62dcf6..6c03bb85 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ "dtslint": "3.6.9", "kcd-scripts": "^6.2.0", "npm-run-all": "^4.1.5", + "pretty-format": "^25.5.0", "react": "^16.13.1", "react-dom": "^16.13.1", "rimraf": "^3.0.2" From 696d8ab86d69b40f9e5b876f68726b6f8616e474 Mon Sep 17 00:00:00 2001 From: Sam Tsai Date: Mon, 8 Jun 2020 11:15:13 -0400 Subject: [PATCH 2/2] Move `pretty-format` to dependencies Unfortunately as a side-effect of housing typings in this repo, we need to explicitly add `pretty-format` as a dependency since our types rely on it. Note this project source code itself does not explicitly need `pretty-format` but instead just its typings. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6c03bb85..9b4257b3 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,8 @@ "license": "MIT", "dependencies": { "@babel/runtime": "^7.10.2", - "@testing-library/dom": "^7.9.0" + "@testing-library/dom": "^7.9.0", + "pretty-format": "^25.5.0" }, "devDependencies": { "@reach/router": "^1.3.3", @@ -54,7 +55,6 @@ "dtslint": "3.6.9", "kcd-scripts": "^6.2.0", "npm-run-all": "^4.1.5", - "pretty-format": "^25.5.0", "react": "^16.13.1", "react-dom": "^16.13.1", "rimraf": "^3.0.2"