Skip to content

Commit 7e54afe

Browse files
committed
Merge pull request #81 from jvanoostveen/fix-coverage-output
Put the require of the istanbul-threshold-checker before requiring istanbul.
2 parents b961835 + 21a67a0 commit 7e54afe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
var through = require('through2').obj;
44
var path = require('path');
5+
var checker = require('istanbul-threshold-checker');
6+
// Make sure istanbul is `require`d after the istanbul-threshold-checker to use the istanbul version
7+
// defined in this package.json instead of the one defined in istanbul-threshold-checker.
58
var istanbul = require('istanbul');
69
var gutil = require('gulp-util');
710
var _ = require('lodash');
811
var Report = istanbul.Report;
912
var Collector = istanbul.Collector;
1013
var PluginError = gutil.PluginError;
11-
var checker = require('istanbul-threshold-checker');
1214

1315
var PLUGIN_NAME = 'gulp-istanbul';
1416
var COVERAGE_VARIABLE = '$$cov_' + new Date().getTime() + '$$';

0 commit comments

Comments
 (0)