From 97330c072eea7f8070a32f7909025e8b54456604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chuck=20LeDuc=20D=C3=ADaz?= Date: Wed, 22 Apr 2020 10:46:27 +0200 Subject: [PATCH] npm cache of esm is faulty, breaks coverage https://github.com/standard-things/esm/issues/746 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index be16ac7..e2fe393 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,8 @@ "serve": "^11.3.0" }, "scripts": { - "coverage": "nyc --reporter=text --reporter=html --reporter=lcov npm run mocha", - "coveralls": "nyc npm run mocha && nyc report --reporter=text-lcov | coveralls", + "coverage": "rm -rf node_modules/.cache/esm && nyc --reporter=text --reporter=html --reporter=lcov npm run mocha", + "coveralls": "rm -rf node_modules/.cache/esm && nyc npm run mocha && nyc report --reporter=text-lcov | coveralls", "coverage:serve": "npm run coverage && serve coverage", "lint": "eslint ./src ./test", "lint:fix": "eslint ./src ./test --fix",