From c8cbcddcc12636103469afc1d11e4605b7e6ba8d Mon Sep 17 00:00:00 2001 From: mac-s-g Date: Sun, 24 Jan 2021 14:05:49 -0800 Subject: [PATCH] remove coverage info from production build --- .babelrc | 12 +++++++++--- package.json | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.babelrc b/.babelrc index c948dc8..356c6ac 100644 --- a/.babelrc +++ b/.babelrc @@ -3,7 +3,13 @@ "plugins": [ "@babel/plugin-syntax-class-properties", "@babel/plugin-syntax-jsx", - "react-html-attrs", - "istanbul" - ] + "react-html-attrs" + ], + "env": { + "test": { + "plugins": [ + "istanbul" + ] + } + } } \ No newline at end of file diff --git a/package.json b/package.json index a2e528b..d6ca7c4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-json-view", "description": "Interactive react component for displaying javascript arrays and JSON objects.", - "version": "1.20.2", + "version": "1.20.3", "main": "dist/main.js", "dependencies": { "flux": "^4.0.1",