From 9f13f85cb659890ad946d225edece109018ef285 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Fri, 16 Oct 2020 17:36:24 -0400 Subject: [PATCH] fix: move nyc require to only when needed --- task.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task.js b/task.js index 88acc828..39990b26 100644 --- a/task.js +++ b/task.js @@ -12,7 +12,6 @@ const { includeAllFiles } = require('./task-utils') const { fixSourcePaths } = require('./support-utils') -const NYC = require('nyc') const debug = require('debug')('code-coverage') @@ -188,6 +187,7 @@ const tasks = { debug('calling NYC reporter with options %o', nycReportOptions) debug('current working directory is %s', process.cwd()) + const NYC = require('nyc') const nyc = new NYC(nycReportOptions) const returnReportFolder = () => {