From 2366f676e2a6fde75e692cc3f07809d20d22b3f4 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Tue, 24 Jan 2017 17:37:04 +0700 Subject: [PATCH] Transpile with source maps before tests So we get useful code coverage reporting --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 2016d85..dca6ea3 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "scripts": { "prebuild": "rm -rf dist", "build": "babel -d dist src", + "prebuild:map": "npm run prebuild", + "build:map": "babel --source-maps=true -d dist src", + "pretest": "npm run build:map", "lint": "xo", "test": "nyc ava", "coverage": "nyc report --reporter=text-lcov | coveralls",